On Thu, 25 Feb 2021, at 14:34, Paul Gilmartin wrote:
> On Thu, 25 Feb 2021 09:02:38 -0500, Joseph Reichman wrote:
 
> signal on NOVALUE
> do CheckRC = 1
>     Address TSO “LISTBC” 
>     If rc == 0 then  Address tso “submit *”
>                Else address SYSCALL sleep 10
> End CheckRC
> 
> Have to check the Rexx syntax


Sorry, replying out of sequence...

The thing that worries me most about this is why it's thought that rc=0  
from LISTBC tells you anything useful.

If the purpose is to submit one job when the preceding one has ended, 
would it not be better at least to be able to tell if the preceding one ran
ok or not?

A simple solution is to create a flagfile, unique to each job, before that job
is submitted.  Delete the job's flagfile in its final step.  Better, use several
trailing steps and conditional jcl (so that only one of them runs) to rename
that flagfile to indicate if the job ran ok, or had bad step CCs, or abended.

Alternatively have each step append information into the flagfile, and that
way you can (also) record when the job started to run, what it did etc.

-- 
Jeremy Nicoll - my opinions are my own.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to