Paula Teotonio wrote:
I was just asked by a programmer, the following question:Is there a way of knowing in a COBOL program if it was invoked from a Batch or CICS environment? Thanks in advance Paula Teotónio Banco BPI
If you are running z/OS 1.8, you can use the nifty new LE callable service, CEE3INF; it returns, among othere things, a hex value such as: x'80000000' - running under CICS x'40000000' - running under CICS_PIPI x'04000000' - running under batch <ad> This is covered in our three day course "Using LE Services in z/OS"; check out: http://www.trainersfriend.com/Language_Environment_courses/m512descr.htm </ad> Kind regards, -Steve Comstock The Trainer's Friend, Inc. http://www.trainersfriend.com ---------------------------------------------------------------------- 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

