The Depends Statement
Multiple job blocks can be included in a single translation unit (a PDS file and any included PDS files), and by default, they run sequentially. It is also possible to define jobs that run based on the completion or failure of other jobs using the depends statement within a job block. For example, the job containing the following code runs if firstjob succeeds, if secondjob fails, and following thirdjob in either case:
depends
firstjob succeeds
secondjob fails
thirdjob succeeds or fails
end