Hi guys!
I have the following problem: I have a JCL which has 2 variables: &DB and &TS, which is passed by the PROC that calls it.
Now I need to call a REXX program, passing these variables &DB and &TS so the program will create a member with this information on it.
However, I do not know how to call the REXX, since the examples I found have the paramenter between quotes, and if I put something like
//STEP1 EXEC PGM=IRXJCL,PARM='MYEXEC &DB &TS'
it won't recognize &DB and &TS as variables, not replacing the text with the values itself.
Can anyone help me?
1 //RLSTEST JOB (10100000),RSAMPLE,CLASS=S,MSGCLASS=8
//* RESTART=STEP13,COND=(0,LE)
//*
2 // SET DB=XYZ
3 // SET TS=ABCDEFG
4 //STEP1 EXEC PGM=IEFBR14,
// PARM='MYEXEC &DB &TS'
IEFC653I SUBSTITUTION JCL - PGM=IEFBR14,PARM='MYEXEC XYZ ABCDEFG'