× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Or just put it in a non-executing IF/END-IF block:

if 0 = 1;

--skipped code

endif;

*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx> /

Buck wrote:
Karen: Something we just thought of was: Now, how do you un-comment
 > these lines when you want to start using the code again?


By hand.

A different method would have been to insert a different comment, like //*. Then, un-doing it would have been easier.

My preference is the compiler define, but a trick I used years ago was to put the block of code in a subroutine and condition the EXSR on an external indicator like NU1. Leave U1 off (i.e. normally) and all the code executes as always. CHGJOB SWS(10000000) then CALL mypgm, and the block of code doesn't run. You can flip it on the fly without re-compiling.
   --buck


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.