Every JCL should be start with a JOBCARD. Job card is the controller of a JCL like identify the job and tell the MVS type and priority of the job , how the output will be or in notification to the user etc,
A job card is look like below:
//jobname JOB (ACCT INFO),’Label’,
// CLASS=class, MSGCLASS=output-class,
// MSGLEVEL=(stmt,msg),PRTY=15,TIME=1440 min,
// REGION=12MB, TYPERUN=SCAN/RUN/HOLD,
- First all Z/OS identifies the job by the job name. then job supplies account information to Z/OS followed by programmer details, so that zOS gets who is responsible for the job.
Label: It holds some information about the job.
CLASS: Class parameter is used to categorize the job.
This parameter specifies the output class for system output data sets referencing the // OUTPUT statement containing the parameter. For example, we might have CLASS=S for small jobs, CLASS=D for medium jobs, and CLASS=C for long-running jobs. This helps z/OS pick up jobs for execution.
MSGCLASS: Generally SYSOUT datasets contain z/OS system messages, JCL listing and JES messages are produced. The MSGCLASS parameter specifies the output class for the SYSOUT datasets. In a particular system there may be various output classes. For example MSGCLASS=P might mean that the output will be transferred to a particular printer or it will just be held in the JES spool.
MSGLEVEL: MSGLEVEL parameter is used to specify JCL and allocation messages which will be recorded on the output device specified in MSGCLASS.
MSGLEVEL parameter is look like MSGLEVEL=(2,0)
In the first position value can be 0 or 1 or 2.
0 à Only JOB statement
1 à All input & procedure statements
2 à Only input JCL statements
In the second position valid value could be 0 or 1.
0 à Allocation/termination messages being output if the job terminates abnormally.
1 à Allocation/termination messages being output if the job terminates normally/ abnormally.
PRTY: JES selects a job for execution based on its priority (PRTY). It is in decreasing manner means higher number means higher priority, i.e. job with a higher PRTY number will be executed sooner than the job with lower PRTY number.
TIME: This parameter helps to limit the job execution time. It used to provide CPU kill time to the Z/OS.
NOTIFY: Notify the user about the job status. If we will not specify this parameter job will be completed(or abended) without notifying any user.
RESTART: Using this parameter we can restart the job from any step.