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: 10210
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: 10210
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. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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