On Thu, 25 Jun 2009 10:35:07 +0200, Michael Knigge
<[email protected]> wrote:

>All,
>
>
>is it possible to control the steps to be executed by a IF-Statement, i.
>e. with a variable?
>
>Like this:
>
>// SET SWITCH1=YES
>// SET SWITCH2=NO
>//*
>//* EXECUTE ONLY IF SWITCH1 IS SET TO YES
>//IF SWITCH1=YES
>//STEP01  EXEC PGM=IEBGENER
>//... more stuff
>//ENDIF
>//*
>//* EXECUTE ONLY IF SWITCH2 IS SET TO YES
>//IF SWITCH2=YES
>//STEP02  EXEC PGM=IEBGENER
>//... more stuff
>//ENDIF
>//*
>
>
>If I've understood the JCL docs corretly there are only some predefined
>variables (like "RC") that can be checked... I wonder if there is a way...
>
>

Maybe this example of my SMFDUMP PROC would be helpful.  I think
it is what you are looking for.

http://bama.ua.edu/cgi-bin/wa?A2=ind0904&L=ibm-main&D=1&amp;O=D&P=71964

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[email protected]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

----------------------------------------------------------------------
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