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: 10256
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: 10256
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm


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