Joined: 01 Sep 2006 Posts: 2104 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.
"execio * diskr filein (finis stem in."
if rc <> 0 then