JCL doesn't allow any symbol substitution in names or operation.  You can,
however, use anything in the wide wide world of programming to generate the
JCL and submit it.

But here's a nice, simple way to do it:
// SET &TNO=99
//SUBMIT EXEC PGM=IEBEDIT
//SYSPRINT DD ...
//SYSIN DD DUMMY
//SYSUT1 DD DATA,SYMBOLS=JCLONLY
//? JOB
//? EXEC
//TB&TNO.DAT DD ...
//
/*
//SYSUT2 DD SYSOUT=(A,INTRDR)
//

None of JCL's symbol rules apply, as it's just data when the symbols are
processed.

sas

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to