Hi,
I can suggest you to look for SDSF itself, any PANEL you have there you can see the REXX can do the same,
just type RGEN.
other way is create a file which you will read from your script with return code, guarantee always run to update the RC.
Regards
------------------------------
Joao Bertuzzi
------------------------------
Original Message:
Sent: Mon October 09, 2023 09:51 AM
From: Jayesh Patel
Subject: How to check return code of completed job on MVS from USS script?
Hi,
I am dynamically generating a job from a script on USS and submitting the same on MVS using 'submit j <Jobpath/jclfile.jcl>' command. I am able to validate that the job is submitted successfully from within the script.
I need to check the return code of this job before I proceed with further operations in the script. Can anyone suggest how to get the return code of this completed job from SDSF spool from within the script?
------------------------------
Jayesh Patel
------------------------------