Also, all references to symbols are evaluated before execution of the first step.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Wendell Lovewell [[email protected]] Sent: Thursday, November 11, 2021 1:56 PM To: [email protected] Subject: Re: conditional JCL - Reinvent the wheel? Billy's example explains it very well. A) "IF" cannot be the first step, thus his IEFBR14 call B) "IF" only allows numerics. // IF (&DOTHIS="YES") will not work like you want, but // IF (&DOTHIS=1) or // IF (&DOTHIS=0) will work. I don't know how high of a value you can check, but I've used up to 5 (for day-of-the-week) successfully. Wendell ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
