In the job control language you may here the following names. My intention is before you start learning more just go through these things.
//NAME OPERATION OPERAND,OPERAND,OPERAND COMMENTS | name field | operation field | operand field | comment field
Name field – identifies the statement so that other statements or the system can refer to it. The name field must begin immediately after the second slash. It can range from 1 to 8 characters in length, and can contain any alphanumeric (A to Z) or national (@ $ #) characters.
operation field – specifies the type of statement: JOB, EXEC, DD, or an operand command.
operand field – contains parameters separated by commas. Parameters are composites of prescribed words (keywords) and variables for which information must be substituted.
comments field – optional. Comments can be extended through column 80, and can only be coded if there is an operand field.
General JCL Rules:
- Must begin with // (except for the /* statement) in columns 1 and 2
- Is case-sensitive (lower-case is just not permitted)
- NAME field is optional
- must begin in column 3 if used
- must code one or more blanks if omitted
- OPERATION field must begin on or before column 16
- OPERATION field stands alone
- OPERANDS must end before column 72
- OPERANDS are separated by commas
- All fields, except for the operands, must be separated by one blank.
CONTINUATION OF JCL STATEMENTS
//LABEL OPERATION OPERAND, OPERAND, // OPERAND,OPERAND, // OPERAND, // OPERAND
When the total length of the fields on a control statement exceeds 71 columns, continue the fields onto one or more following statements.
- Interrupt the field after a complete operand (including the comma that follows it) at or before column 71
- Code // in columns 1 and 2 of the following line
- Continue the interrupted statement beginning anywhere in columns 4 to 16.
//* THIS IS A COMMENT LINE
JCL should be commented as you would any programming language. The comments statement contains //* in columns 1 to 3, with the remaining columns containing any desired comments. They can be placed before or after any JCL statements following the JOB statement to help document the JCL. Comments can also be coded on any JCL statement by leaving a blank field after the operand field.