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



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

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

Postby golemis » Thu Nov 03, 2022 5:19 pm

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
golemis
 
Posts: 34
Joined: Wed Apr 04, 2018 8:13 pm
Location: London, UK
Has thanked: 10 times
Been thanked: 0 time

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

Postby sergeyken » Thu Nov 03, 2022 10:01 pm

Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
sergeyken
 
Posts: 315
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 5 times
Been thanked: 30 times

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

Postby willy jensen » Fri Nov 04, 2022 3:18 am

I think you need to set the ZISPFRC like:
zispfrc=2
address ispexec "vput zispfrc"
according to a sample I have.

These users thanked the author willy jensen for the post:
golemis (Fri Nov 04, 2022 1:24 pm)
willy jensen
 
Posts: 397
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 57 times

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

Postby willy jensen » Fri Nov 04, 2022 3:21 am

@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.
willy jensen
 
Posts: 397
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 57 times

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

Postby willy jensen » Fri Nov 04, 2022 4:06 am

you may have to do
address ispexec "vput zispfrc shared"
according to the manual

These users thanked the author willy jensen for the post:
golemis (Fri Nov 04, 2022 1:24 pm)
willy jensen
 
Posts: 397
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 57 times

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

Postby golemis » Fri Nov 04, 2022 2:19 pm

willy jensen wrote:you may have to do
address ispexec "vput zispfrc shared"
according to the manual


Worked fine, thanks Willy :)
golemis
 
Posts: 34
Joined: Wed Apr 04, 2018 8:13 pm
Location: London, UK
Has thanked: 10 times
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post