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
 
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: 2086
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
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
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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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