Please, I am trying to use an OPC variable for the return code of a JCL and I am not able to find it.
Could you help me to find it?
I send you an example of my JCL , but my Temp Variable doesn't works
The variable TRC is defined in TWS as default value = 0, but always give as result 12.
//CADENAY JOB ('ACCOUNT INFO'),'SISTEMAS',
//PASO002 EXEC PGM=IKJEFT01,PARM='%CODE 90'
//EXEC DD DISP=SHR,DSN=FERRONA.ISPEXEC
//SYSTSPRT DD DUMMY
//SYSTSIN DD DUMMY
//*%OPC SETVAR TRC=90
The other JCL is:
//CADENAYY JOB ('ACCOUNT INFO'),'SISTEMAS',
IF TRC = 90 THEN GOTO PASO0010 ELSE EXIT 69
//PASO0010 EXEC PGM=IEFBR14
//DD1 DD DUMMY
This JCL cancel with misplaced DD in the IF line
Thank you very much.