Summary -
In this topic, we described about the TYPERUN with detailed example.
TYPRUN is used request for a special job processing like scanning JOB for syntax errors etc. TYPRUN is optional parameter. TYPRUN used to specify for the JOBs which are not started. If the TYPRUN specified for the submitted JOB, the JOB will fail.
Syntax -
TYPRUN= {SCAN } {HOLD } {JCLHOLD} {COPY }
Scan | SCAN used to check the syntax errors without executing the JOB. SCAN just check for syntax errors without allocating devices. SCAN used to check for:
|
COPY & JCLHOLD | RUN & JCLHOLD is the options available in JES2 only. |
Hold | Requests the system to hold the JOB until the operator releases the JOB. JOB will be in held until the operator explicitly releases it. HOLD option is very useful when testing series of JOBs. By default, the job will take it as RUN. |
Example 1:
//MTHEXMP1 JOB (META007),'PAWAN Y', TYPRUN=SCAN
Once the job submitted, it will scan all the syntactical errors first. If any errors detected, the JOB fails with errors.
Example 2:
Job A:
//MTHEXMP1 JOB (META007),'PAWAN Y' //STEP01 EXEC PROG=A //DD01 DD MTH.INPUT.DATA,DISP=SHR
Job B:
//MTHEXMP2 JOB (META007),'PAWAN Y', TYPRUN=HOLD //STEP01 EXEC PROG=B //DD01 DD MTH.INPUT.DATA,DISP=SHR
JOB A and JOB B submitted at the same time for execution. Both jobs are using the same input. But JOB B needs to use the DD01 file after JOB A completes. So JOB A submitted directly without any TYPRUN parameter and JOB B with TYPRUN=HOLD to put the job in HOLD. Once the JOB A completed, the operator should release the JOB B for execution.