Page 1 of 1

How to get the REXX RC to JCL.

PostPosted: Fri Feb 14, 2014 12:16 pm
by Sohail_s
Hi ,

I have JCL step in which rexx program REXXPGM is executed as below.

//STEP01 EXEC PGM=IKJEFT01,DYNAMNBR=20,PARM='REXPGM %%BPPL'
//SYSTSPRT DD SYSOUT=*
//SYSPROC DD DSN=AAA.BBB.CCC.REXX,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD DUMMY

My rexx program is failing with RC>4 but JCL step STEP01 is giving RC=0.
If rexx is failing SETP01 should abend with the same return code. Is there any wany to get the REXX return code in jcl and check.

Thanks
Sohail

Re: How to get the REXX RC to JCL.

PostPosted: Fri Feb 14, 2014 9:23 pm
by steve-myers
Try changing the EXEC statement to PGM=IKJEFT1A. See Executing the terminal monitor program in TSO/E Customization for your z/OS release.