In cobol we can set system variable RETURN-CODE which in turn populates that value in LASTCC/MAXCC variable in JCL and in turn decides the execution of the steps of JCL.
Similarly RC is the variable in the rexx for setting the return codes. Can we set the LASTCC/MAXCC variables from rexx ??
I am running my rexx through batch job using utility IKJEFT01. If any error in rexx it sets the RC variable to non-zero value but the step in the JCL still runs fine with return code equals to zero. All i want is set the condition code of step calling rexx in JCL to non-aero value in case of any rexx failure.
Can someone help in this regard ??
Anks