Howdy,
Seeing an interesting behavior with instream variable substitution. My 10 step 
test job:

...
//E01 EXPORT SYMLIST=(MYFY)
//S01 SET    MYFY=2021
//*
//STEP1   EXEC PGM=IEBGENER,REGION=1024K
//SYSPRINT DD SYSOUT=G
//SYSUDUMP DD SYSOUT=G
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=G
//SYSUT1 DD *,SYMBOLS=EXECSYS
FY=&MYFY SYS=&SYSNAME
...
//*
//STEP10   EXEC PGM=IEBGENER,REGION=1024K
//SYSPRINT DD SYSOUT=G
//SYSUDUMP DD SYSOUT=G
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=G
//SYSUT1 DD *,SYMBOLS=EXECSYS
FY=&MYFY SYS=&SYSNAME

Output from the job shows variables MYFY (exported) and SYSNAME (system) 
accurate for 4 steps:
FY=2021  SYS=A

At STEP5 and after, the variables are lost/cleared:
FY=&MYFY SYS=&SYSNAME

Not seeing anything online. Has anyone experienced this before, and has 
input/explanation?

Thanks!

James Lund | Chief Systems Engineer
Mainframe and Enterprise Backup Service | Division of Information Technology
Texas A&M University
3363 TAMU | College Station, TX 77843-3363
ph: 979.845.8410 | fax: 979.845.2074 | 
[email protected]<mailto:[email protected]>
- - - - - - - - - - - - - - - - - - - - - - - -

IT.tamu.edu




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

Reply via email to