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
 

 

Passing RC from REXX to JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Marlon

New User


Joined: 28 Jun 2007
Posts: 11
Location: Los Angeles

PostPosted: Sat Mar 14, 2009 3:07 am    Post subject: Passing RC from REXX to JCL
Reply with quote

i found out this thread, and I badly need this solution

1) If I'll be using ISPSTART CMD, where will I code it is it on my rexx or my jcl?

2) if I'll be using;
ZISPFRC = Your_return_code
Address ISPEXEC "VPUT (ZISPFRC)"

This is my code in my rexx script

...
...
"execio * diskr filein (finis stem in."
if rc <> 0 then
call error_rtn
exit

error_rtn:
say err_dec
retcode = rc
Address ISPEXEC "VPUT (retcode)"

how will I pass retcode parameter inside my JCL? Sorry for this stupid question I'm just confuse. Hope someone can explain this to me.
Back to top
View user's profile Send private message

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2038
Location: Silicon Valley

PostPosted: Sat Mar 14, 2009 9:37 am    Post subject: Reply to: Passing RC from REXX to JCL
Reply with quote

Your error routine is using retcode, but you should use ZISPFRC instead if you are using ISPF.

Your subject is about passing RC from REXX to JCL, but you do not need ISPF to do that. Instead of getting ISPF involved, I think your rexx should just pass back a return code on the RETURN instruction.

Code:
"execio * diskr filein (finis stem in."
if rc <> 0 then
 return RC
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 -> CLIST & REXX 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 REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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