On Thu, 13 Jan 2011 08:06:05 -0600, Mark Hammack wrote: >I always wanted a more powerful "IF/THEN/ELSE" statement in JCL. Something >that would let me test things like the value of a substitution value (i.e. >from a SET statement). Wound up getting around that with INCLUDE and >include members using names derived from the SET statement. Kludgy, but >works OK for me. > I wish first that IBM would clean up the documentation of the existing "IF/THEN/ELSE" statement:
Title: z/OS V1R12.0 MVS JCL Reference Document Number: SA22-7597-14 Build Date: 07/01/10 ... 17.1.4.5 Relational-Expression Keywords The following keywords are the only keywords supported by IBM and recommended for use in relational-expressions. Any other keywords, even if accepted by the system, are not intended or supported keywords. ... Rather, a programmer's use of constructs which are "not intended or supported" should result in JCL errors. Other constructs, presumably intended and supported should be documented as such. It's irresponsibie; it appears that even the authors and implementors couldn't agree on or understand the semantics of the feature. -- gil ---------------------------------------------------------------------- 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