I agree with Paul, why do you call this a problem. As Paul indicates, the substituted values would be those in effect when the step (EXEC as Paul said) is reached. If you have a SET for a variable name prior to step 1 and then a SET for the same variable name prior to step 2, isn't the intention to have different values available to the step?
What I would like to see is something similar to the "environment" in the PC world. One would SET various variables to required values and then, programmatically, access the "environment" and retrieve a variable's value. That is, in effect, what a SYSIN DD would/could be used for, but, unfortunately, symbolics can't be used in SYSIN, or more generically, DD *, input. Chuck -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Paul Gilmartin Sent: Friday, September 18, 2009 10:41 AM To: IBM-MAIN@bama.ua.edu Subject: Re: Reading DD card information On Fri, 18 Sep 2009 16:37:19 +0200, Gilbert Saint-Flour wrote: >Frank Swarbrick wrote: > >On 9/17/2009 at 2:13 PM, Kirk Wolf wrote: >>> Not to drudge up old threads, but wouldn't it be nice if JCL PROC and >>> SET variables were not thrown away by the converter/interpreter and >>> instead placed in an ASASYMB-style symbol table by the initiator? >>> This would be useful in so many ways.... > >That could be more complicated that the system-wide symbol table. >One problem is probably that a variable can be set to several different values >in a given job. > I would expect that the values passed to each job step would be the values of the JCL symbols in effect at the point of the EXEC statement. Why do you call this a problem? This parallels the behavior of symbolic substitution in PARM, DD statements, etc. -- 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 ---------------------------------------------------------------------- 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