@Tom's got it. Thanks. EXPORT works in a PROC and so forth but must come before the definition of the symbols it exports. (Again, seems kind of backwards, but what do I know?)
I think I could have done //jobname JOB ... // EXPORT SYMLIST=* //procname PROC ... But I have never coded a started PROC with a JOB (and I know you can, but it was just a wormhole I did not want to go down at this moment) so I did more or less what Tom suggests. //procname PROC PARM1=value1,PARM2=value2 // EXPORT SYMLIST=* // SET $PARM1=PARM1 // SET $PARM2=PARM2 ... //MYPARMDD DD *,SYMBOLS=JCLONLY $PARM1,$PARM2,... And it is all working. Gosh some better doc AND SOME MEANINGFUL EXAMPLES would be appreciated. Thanks all here for the help. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Tom Marchant Sent: Thursday, February 14, 2019 11:16 AM To: [email protected] Subject: Re: PARMDD and Symbols in a Started PROC On Thu, 14 Feb 2019 11:01:44 -0800, Charles Mills <[email protected]> wrote: >> // EXPORT gets specified first before any // SET stmts > >How do I do that in a PROC where the SETs are implicit in the PROC >statement, which is the very first statement? > >//procname PROC PARM1=value,PARM2=value Try this: //procname PROC PARM1=value,PARM2=value // EXPORT SYMLIST=* // SET PARM1=&PARM1 // SET PARM2=&PARM2 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
