JCL JOB Card Parameters with Examples
JOB Card or Statement in JCL is the first statement which indicates the starting of that JOB. Operating system identifies the beginning of the job using this statement and also it tells the OS on how the job should be processed. This Card can be coded with 20 different Parameters to instruct the operating system on how to process this particular JOB where it is coded. This Topic covers different JC Parameters with examples.
JOB Card Parameters:
//<jobname> JOB <Accounting Info>,<other parameters> ….
- Jobname –> It gives a name to the job, it can be any name with a maximum length of 8 characters.
- JOB –> This is a constant and should be specified for all the JOBs.
- Accounting Info Contains Account number and other accounting related details. Here account information can be multiple values where as account number is a single value.
JOB Card parameters can be divided into Positional and Keyword parameters.
Positional JOB Card Parameters:
There are Two positional parameters that can be coded in the JOB card.
1) Accounting Information:
This is an important parameter Using which the resource Usage chargers are applied against that account. Generally if there are multiple projects in a company, each project is provide with a separate account info to charge against. Maximum allowed value here is 142 characters and usually this is a number. But this is not a Mandatory field to code and there JCL wont abend if we omit it. But according the installation standards, JOBs running in production are generally provided with this info.
This can be a Single value or multiple values. If multiple values are given, they should be separated by a comma and included inside parentheses.
//ACNTJB1 JOB (990A5), 'Mahender',MSGCLASS=D,CLASS=A,TIME=10
Here 990A5 is the single value accounting info
//ACNTJB1 JOB (990A5,'19/02/11',ACNTCR), 'Mahender',MSGCLASS=D,CLASS=A,TIME=10
Here (990A5,’19/02/11′,ACNTCR) is the accounting info. Along with account number there 2 other parameters so these are separated by a comma and enclosed in parentheses. If any of the parameters contain any special characters other than hyphen, then enclose that in apostrophes as shown above for 19/02/11. Above one can also be coded as ‘9905A,19/02/11,ACNTCR’.
II) Programmer’s Name:
It is to provide the programmer’s name in the JOB. This is not a Mandatory field as without which job does not abend. Generally this is the Individual Name or Group Name responsible for that job.
//ACNTJB1 JOB (990A5), 'Mahender'....
Here Mahender is the programmer name
If Account Information is to be omitted then it should be coded as below
//ACNTJB1 JOB ,'Mahender'.....
- As a JCL standard, JOB card also starts with ‘//’.
- JOB card can be spread across multiple lines and there is no need of coding any continuation character.
- All 20 Parameters are not necessary to code in every JOB card, only required parameters can be coded.
- JOB Parameters coded are applied to all the Steps.
- If accounting information is omitted and Programmer Name is to given then there should be a comma before the programmer Name parameter as these are the positional parameters.
- If both are Omitted then no need of any Comma.
Keyword JOB Card Parameters:
There are around 20 Keyword parameters that can be coded on the job card but only few of them are frequently used. Below are the ones which are used frequently.
Below are the other parameters which are not frequently used
Example of a Typical JOB Card:
----+----1----+----2----+----3----+----4----+----5----+----6- //JBNAME1 JOB (828C-9,'19/01/12'),MAHY, // MSGLEVEL=(1,1),MSGCLASS=D,CLASS=A,TIME=10, // REGION=0M,TYPRUN=SCAN,NOTIFY=MG00T2
To continue JOB parameters put a comma on the last parameter in that line and continue with the next line. In the above example Programmer’s name(MAHY) is separated by a comma and other parameters are coded in the next line.