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',
// CLASS=X,MSGCLASS=X,
// COND=(90,EQ)
//*%OPC SCAN
//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',
// CLASS=A,MSGCLASS=X
//*%OPC SCAN
IF TRC = 90 THEN GOTO PASO0010 ELSE EXIT 69
LABEL PASO0010
//PASO0010 EXEC PGM=IEFBR14
//DD1 DD DUMMY
This JCL cancel with misplaced DD in the IF line
Thank you very much.