IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Passing RC from REXX to JCL


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Sat Mar 14, 2009 9:37 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top