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


Thanks....

Bye,
Michael

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

Reply via email to