IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

RC of REXX exec for batch mode


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
autobox

New User


Joined: 19 Aug 2005
Posts: 51

PostPosted: Sat Apr 30, 2011 2:18 pm
Reply with quote

Hi all,
If a REXX exec is invoked by batch, how to pass its return code to the batch JOB? EXIT rc? or RETURN rc?

I tried the batch job with IKJEFT01/1A/1B, though the REXX ended with non-zero, the job always show MAXCC=0.

My REXX is invoked via:
Code:
//SYSTSIN  DD *                             
 ISPSTART CMD(%MYREXX 'INPUT.PARM')
/*


Thanks in advance!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Apr 30, 2011 2:20 pm
Reply with quote

what happened when You tested both alternatives ?

what does the manual say about EXIT and RETURN ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Apr 30, 2011 2:34 pm
Reply with quote

why not post the complete info to start with! icon_evil.gif

You are not invoking rexx

You are invoking ISPF which in turn invokes Your rexx

a double jump is involved !

REXX will pass via exit/return the return code to ISPF

what You ask is hiw to make ISPF exit/return with a return code

look at the ispf manuals for the ZISPFRC use

see here
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A370/3.19?SHELF=IKJ4BK90&DT=20060626210253#SPTREF311
and here
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A370/3.6?SHELF=IKJ4BK90&DT=20060626210253

for the difference between EXIT and RETURN
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 51

PostPosted: Sat Apr 30, 2011 2:42 pm
Reply with quote

Hi enrico-sorichetti,

ZIPSFRC works. Thanks again!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top