Page 1 of 1

RC's when running a REXX exec under ISPSTART in Batch

PostPosted: Thu Nov 03, 2022 5:19 pm
by golemis
Hi team,

I am running a REXX exec under Batch invocation of ISPSTART.

In this REXX there are several cases where I have to abort using RCs > 0! But unfortunately, they are not reflected in the JOB as it always ends with RC=0

READY
  ISPSTART CMD(%BIT E PDSUPP DA(*))
ISPD117
The initially invoked CLIST ended with a return code = 12
READY
END


How can I make the Batch TSO session which starts ISPSART, sense the RCs of the REXX ?

Thank you, George

Re: RC's when running a REXX exec under ISPSTART in Batch

PostPosted: Thu Nov 03, 2022 10:01 pm
by sergeyken

Re: RC's when running a REXX exec under ISPSTART in Batch

PostPosted: Fri Nov 04, 2022 3:18 am
by willy jensen
I think you need to set the ZISPFRC like:
zispfrc=2
address ispexec "vput zispfrc"
according to a sample I have.

Re: RC's when running a REXX exec under ISPSTART in Batch

PostPosted: Fri Nov 04, 2022 3:21 am
by willy jensen
@sergeyken: ZISPFRC is actually described in the section 'An example using the ZISPFRC return code' of the 'ISPF Dialog Developer's Guide and Reference' manual.

Re: RC's when running a REXX exec under ISPSTART in Batch

PostPosted: Fri Nov 04, 2022 4:06 am
by willy jensen
you may have to do
address ispexec "vput zispfrc shared"
according to the manual

Re: RC's when running a REXX exec under ISPSTART in Batch

PostPosted: Fri Nov 04, 2022 2:19 pm
by golemis
willy jensen wrote:you may have to do
address ispexec "vput zispfrc shared"
according to the manual


Worked fine, thanks Willy :)