Today, I 'll discuss the JOB STATEMENT (i.e. JOB CARD in JCL) and various keyword parameters and positional parameters. Let's begin with the tutorial.
The JOB, EXEC and DD statements have many parameters to allow the user to specify instructions and information. Describing them all would fill an entire book (such as the IBM publication, z/OS JCL Reference).
This section provides only a brief description of a few of the more commonly used parameters for the JOB, EXEC, and DD statements.
JOB Parameters
The JOB statement //MYJOB JOB 999 has a job name MYJOB. The 999 is an accounting field that can be subject to system exits that might be used for charging system users.
![]() |
JOB Parameters
|
Two positional parameters
//RC01AR JOB 99222,'RC JACK'
Keyword Parameter isn’t interpreted based on its position in the parameters field. Instead, you identify the parameter by coding a keyword followed by an equals sign (=) and a value. When you code a JCL statement that has more than one keyword parameter, you can code the parameters in any order you wish.
Two keyword parameters
//CUSTMAST DD DSNAME=RC01.CUST.MAST.FLE,DISP=SHR
- REGION = Requests specific memory resources to be allocated to the job
- NOTIFY = Sends notification of job completion to a particular user, such as the submitter of the job.
- USER = Specifies that the job is to assume the authority of the user ID specified.
- CLASS = Directs a JCL statement to execute on a particular input queue.
- MSGCLASS = Directs job output to a particular output queue.
- MSGLEVEL = Controls the number of system messages to be received.
JCL JOB CARD Syntax
//JOBNAME JOB [ accounting-information ] [,programmer-name ][ ,MSGCLASS=class ]
[ ,MSGLEVEL=(stmt,msg) ]
[ ,NOTIFY=user-id ]
Example: JCL JOB CARD with keyword and positional parameters.
//
//RC01RP JOB 99912,'R ROGGER',MSGCLASS=X,MSGLEVEL=(1,1)
//***********************************************************
//* Prepare past-due reports from SALARY file *
//***********************************************************
//SR7200 EXEC PGM=SR7200
//INFILE DD ................//***********************************************************
//* Prepare past-due reports from SALARY file *
//***********************************************************
//SR7200 EXEC PGM=SR7200
//
No comments:
Post a comment