Joined: 21 Nov 2005 Posts: 31 Topics: 10 Location: Orange County, California
Posted: Tue Dec 12, 2006 4:38 pm Post subject: Using 'SET' paramaters for JCL OVERRIDES
Our shop recently started expanding the use of the SET paramater for symbolic overrides to jcl. It works wonderfully for datasets, but I was wondering if it can also be used for symbolic overrides on instream data such as IDCAMS DELETE/DEFINES or input for DB2 programs. See examples below:
Code:
// SET SYS=TF,
// DB2=DB2T
//*
...
//STEP0180 EXEC PGM=IKJEFT1B,DYNAMNBR=20
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(&DB2)
RUN PROGRAM(RCOB270B) PLAN(FODBPLAN)
END
/*
It would really simplify testing. _________________ Thanks,
PCMOONBEAM
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Tue Dec 12, 2006 6:23 pm Post subject:
symbolics that are part of instream data will not resolve. Instead, suggest that you create members of a parm library containing what you want, and use the symbolics to resolve the dd statement pointing to the systsin dsn(mem(s).. remember, you can concatonate, so:
Then, concatenate this file as first file in SYSTSIN.
Symbol | is used for newline split.
If you exceed 100-byte PARM length, just add another step to MOD more lines, if needed.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum