JCL Positional Parameters Example


Accounting Information -

Scenario1 - JOB (@MTHJOB) with accounting information.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//@MTHJOB  JOB (ACCT123),'PAWAN Y',NOTIFY=&SYSUID

Explaining Example -

In the above example: ACCT123 is the accounting information to which the billing addded when the job is submitted.

Scenario2 - JOB with multiple accounting information.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//@MTHJOB  JOB (ACCT123,ACCT789),'PAWAN Y',NOTIFY=&SYSUID

Explaining Example -

In the above example: ACCT123, ACCT789 are the accounting information.

Scenario3 - JOB with no accounting information.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//@MTHJOB  JOB NOTIFY=&SYSUID

Explaining Example -

In the above example: the JOB statement has not passed the accounting information. In this case, the billing routes to the default account.

Programmer Name -

Scenario1 - JOB with programmer name.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//@MTHJOB  JOB (ACCT123),'PAWAN Y',NOTIFY=&SYSUID

Explaining Example -

In the above example: PAWAN Y is the programmer responsible for the job.

Scenario2 - JOB with multiple programmer names.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//@MTHJOB  JOB (ACCT123),'MTHUSR1,MTHUSR2',NOTIFY=&SYSUID

Explaining Example -

In the above example: MTHUSR1 and MTHUSR2 are the programmers responsible for the job.