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...
golemis
Posts: 34
Joined: Wed Apr 04, 2018 8:13 pm
Skillset: z/OS, REXX, DB2, CICS, MQ, ISPF, DFSMS
Referer: google
Location: London, UK

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

Code: Select all

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

User avatar
sergeyken
Posts: 458
Joined: Wed Jul 24, 2019 10:12 pm
Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
Referer: Internet search

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.

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

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.

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

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: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

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

golemis
Posts: 34
Joined: Wed Apr 04, 2018 8:13 pm
Skillset: z/OS, REXX, DB2, CICS, MQ, ISPF, DFSMS
Referer: google
Location: London, UK

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 :)


  • Similar Topics
    Replies
    Views
    Last post