How to get the REXX RC to JCL.



IBM's Command List programming language & Restructured Extended Executor

How to get the REXX RC to JCL.

Postby Sohail_s » Fri Feb 14, 2014 12:16 pm

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
Sohail_s
 
Posts: 2
Joined: Fri Aug 17, 2012 7:58 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to get the REXX RC to JCL.

Postby steve-myers » Fri Feb 14, 2014 9:23 pm

Try changing the EXEC statement to PGM=IKJEFT1A. See Executing the terminal monitor program in TSO/E Customization for your z/OS release.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post