Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

RC of REXX exec for batch mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Sat Apr 30, 2011 2:18 pm    Post subject: RC of REXX exec for batch mode
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Sat Apr 30, 2011 2:20 pm    Post subject: Reply to: RC of REXX exec for batch mode
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Sat Apr 30, 2011 2:34 pm    Post subject: Reply to: RC of REXX exec for batch mode
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
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A370/3.19?SHELF=IKJ4BK90&DT=20060626210253#SPTREF311
and here
http://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: 48

PostPosted: Sat Apr 30, 2011 2:42 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us