CLASS Parameter Example


Assumption - CLASS parameter values definition (Assumption)

CLASS parameter value Description Duration
A Shortest running jobs 10 Seconds
B Shortest running jobs 30 Seconds
..... ..... .....
Z Medium time running jobs 2 hours
..... ..... .....
8 Longest running jobs More than 24 hours
9 System default if not coded Any time

Scenario1 - Assume that the below jobs are using same files for processing.

JOB1 -

//MTHUSERC JOB (MTH1234),'PAWAN Y',CLASS=B,NOTIFY=&SYSUID 

JOB2 -

//MTHUSERC JOB (MTH1234),'PAWAN Y',CLASS=Z,NOTIFY=&SYSUID 

What will happen if both jobs are submitted at the same time?

JOB1 starts executing first, and JOB2 will be on hold. Once JOB1 execution is completed, JOB2 starts execution.

Scenario2 - Assume that the below jobs are using same files for processing.

JOB1 -

//MTHUSERC JOB (MTH1234),'PAWAN Y',CLASS=B,NOTIFY=&SYSUID 

JOB2 -

//MTHUSERC JOB (MTH1234),'PAWAN Y',CLASS=Z,NOTIFY=&SYSUID 

What will happen if both jobs are submitted at different time?

No dependency between jobs and the job submitted first will complete first.

Scenario3 - No class parameter.

Code -

//MTHUSERC JOB (MTH1234),'PAWAN Y',NOTIFY=&SYSUID 

System assigns the default class value defined which is set during the system installation by the administrator.