On Tue, 9 Apr 2013 07:45:18 -0400, Peter Relson wrote:
>
>>Should I infer from this that only symbol substitution by instream data
>>set processing occurs, and if the PARMDD data set is not instream
>>no symbol processing is possible?
>
>Yes you should. There is no intrinsic support in "GET" to ask for and/or
>get symbol substitution; it is only in JES instream data set processing
>(not a great state of affairs, in my opinion)
> 
I may have been elliptical.  I meant to ask whether symbol substitution
is performed if the data set referenced by the PARMDD parameter on
the EXEC statement  is other than an instream data set and contains
substitutable symbols such as "&SYSUID".

>>[S]hortly before the jobstep program
>>attach" sounds far too late for JES JCL symbol substitution.
>
>Perhaps I am missing something. Why would it be "too late"? It is before
>the program gets control. It is after the JCL symbol values are known.
> 
I was (mis-)led to that assumption by the frequent discussion in these
lists of the unavailability of JCL symbols to the program being run.  The
informed opinion seemed to be that it could not easily be done because
reader/converter converts JCL to internal text, performing substitutions
so the symbol names no longer exist.  But perhaps shortly before the
program gets control they're still available.

I have an "outlying case" to test my understanding:

//  SET  FOO='&WOM'
//  SET  BAR=BAT
//  SET  WOMBAT='SDB=YES'
//*
//STEP     EXEC PGM=IEBGENER,PARMDD=SYSUT1
//SYSUT2    DD  SYSOUT=(,)
//SYSUT1    DD  *,SYMBOLS=JCL
&FOO&BAR
//SYSIN     DD  DUMMY
//SYSPRINT  DD  SYSOUT=(,)

Since symbols are substituted when SYSUT1 is created and GET
performs no further transformation, the line written to SYSUT2
is "&WOMBAT".  I'm pretty confident of that.

But when SYSUT1 is processed as PARMDD, are symbols also
resolved by the initiator, since "the JCL symbol values are known"
and it's not too late, so the PARM passed to IEBGENER is
"SDB=YES"?

Thanks,
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to