|
MURALI DHAR wrote:
Hi all, Given the follwoing code excerpt: 0395.00 ************************************************ 0396.00 * 0397.00 C *IN44 WHENEQ *ON 0398.00 C Z-ADD D2RRN SFLRCD 0399.00 C MOVEL(P) 'D3SC' #SDFMT #SDFMT what can I do to use overlay function to comment out lines 397 to 399 without changing the remaining code? I really couldnt understand this at ll...Please help me... Regards&Thanks, Murali
If you are on a recent enough release, you can code it as follows: 0395.00 ************************************************ 0396.00 * ....... /IF DEFINED(XXX) 0397.00 C *IN44 WHENEQ *ON 0398.00 C Z-ADD D2RRN SFLRCD 0399.00 C MOVEL(P) 'D3SC' #SDFMT #SDFMT ....... /ENDIF In other words, the statements between the /IF and /ENDIF are compiled only if name XXX is defined. This way, you don't have to worry about star'ing out intervening statements, and you don't have to worry about comments within that block. Cheers! Hans
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.