Imagine there is a PGM=SORT step in a job that ends with RC=8 after execution,
I need to send that RC value (or last CC) through a parameter to a COBOL program in the next step.
How can I use/send the RC?
I’ve tried:
//Step2 EXEC PGM=MYPROG,PARM=&RC
Also
// SET MYRC=RC
//Step2 EXEC PGM=MYPROG,PARM=&MYRC
And they didn’t work.
New contributor
Mohamad Heydari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.