Hi,
I vaguely remember such a requirement. The code went something like this :

#IF RUNNING-IN-CICS
#    EXEC CICS LINK UTILPROG
#END-IF

#IF RUNNING-IN-BATCH
#   CALL UTILPROG
#END-IF

The main program was some sort of generic driver type of program which required invocation of UTILPROG. They even had a home-grown pre-compiler that would strip off the # and insert proper code. I never delved into the details; but, the scheme worked.

As mentioned by someone earlier, perhaps it makes sense to have selective execution than selective compilation.

Regards,
Nags.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to