#/ ---------------------------------------------------------------------------------
#/ This template supports a -nojobsubmit install, and generates a job step to
#/ submit the next job in the install job chain. For a normal install, it generates
#/ the job step but it is commented out. This allows the user to easily recover
#/ from a job failure that is correctable. They can simply un-comment the chain
#/ steps in the failing job and all subsequent jobs, and resubmit the failing job
#/ after correcting the cause of the failure.
#/ ---------------------------------------------------------------------------------
#/
#/ If -nojobchain was specified or was set by the presence of -jobsubmit, then the
#/ step is turned into a comment block. The only exception is the PROMOTnn jobs, where
#/ the chain step should be left intact in the -jobsubmit case. The reason is that
#/ the PROMOTnn jobs should be chained so that the behavior is similar to how the
#/ jobs run automatically when submitted by the code.
#/
#SET [COM]
#IFEQ [CHAINJOBS] TRUE #THEN DOCHAIN
#IFNOTEQ [SUBMITJOBS] TRUE #THEN NOCHAIN
#IFEQ [PROMOTE] TRUE #THEN DOCHAIN
#NOCHAIN
#SET [COM] *
#DOCHAIN
//*
//* Submit the next job in the install chain. This step is commented out
//* if either -nojobchain or -jobsubmit is specified on the setup.rexx or
//* sasdm.rexx invocation.
//*
//[COM]CHAIN   EXEC PGM=IEBGENER,COND=(0,LT)
//[COM]SYSPRINT DD  SYSOUT=[SYSOUT]
//[COM]SYSUT1   DD  DISP=SHR,
//[COM]       DSN=[CNTLDSN](%NEXTJOB.)
//[COM]SYSUT2   [INTREADR]
//[COM]SYSIN    DD  DUMMY
//
