How to add a predecessor and successor using ESP IJ and IW commands
There are two ways to accomplish this:
Example-#1: Application Monitor
- Enter IJ command in "Application Monitor" Next to a job you want to insert NEWJOB2 job.
Specify the NXTJOB1 as a PRED to NEWJOB2.
Enter 'Y' in the panel to complete the insert.
Do another IJ command in "Application Monitor" to insert the NXTJOB1 job.
Specify the NEWJOB2 as a SUCCESSOR to this NXTJOB1.
Enter a 'Y' in the panel to complete the insert.
Example-#2: CSF
- Enter IW command in CSF to Insert a WOB (workload object) in freeform. Code it like a normal Application adding the RELEASE and RUN statements.
In order to add a predecessors and successors you need the Application to be defined first.
Example: (Lets say you want to insert two jobs A and B with A releasing B in APPL JOBX)
- Enter IJ command for JOB A in "Application Monitor" on HOLD with (More inserts = 'Y')
Define job B with PRED of job A (More inserts = 'N').
Specify job A
Process Actions.
This is what it would look like:
APPL JOBX
JOB A
RUN ANY
RELEASE B
ENDJOB
JOB B
RUN ANY
ENDJOB