TYPERUN Parameter Example


Scenario1 - TYPRUN=SCAN.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (META007),'PAWAN Y',TYPRUN=SCAN

Explaining Example -

Once the job is submitted, it first scans all the syntactical errors. If any errors are detected, the job fails with errors.

Scenario2 - TYPRUN=HOLD.

Job1 -

//MTHEXMP1 JOB (META007),'PAWAN Y' 
//STEP01   EXEC PRG=A
//DD01     DD   MTH.INPUT.DATA,DISP=SHR

Job2 -

//MTHEXMP2 JOB (META007),'PAWAN Y',TYPRUN=HOLD
//STEP01   EXEC PRG=B
//DD01     DD   MTH.INPUT.DATA,DISP=SHR

Explaining Example -

Job1 submitted directly without any TYPRUN parameter and job2 with TYPRUN=HOLD. So job1 starts running immediately, but job2 is on hold, and the operator should release it for execution.

Scenario3 - No TYPERUN.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (META007),'PAWAN Y'

Explaining Example -

System defined default TYPERUN parameter value applied. TYPERUN=SCAN in most of the cases.