View previous topic :: View next topic
|
Author |
Message |
Marlon
New User
Joined: 28 Jun 2007 Posts: 11 Location: Los Angeles
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
|