Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10326
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: 10326
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us