Professional Documents
Culture Documents
JCL Training Class 001
JCL Training Class 001
www.mainframes-online-training.weebly.com
Introduction on JCL
1. JOB Statement.
2. EXEC Statement.
3.
DD Statement.
4. Null Statement.
JOB : Execution of one or more programs is knows as a job
JCL Statements
Syntax:
JCL Statements
contd..
EXEC Statement: This statement is used to identify the step name and
program name. A maximum we can write 255 statements in a single
JOB.
Syntax:
//STEP1 EXEC PGM=PROG NAME
Syntax:
//DDNAME DD PARAMETERS
JCL Parameter
There are two kinds of parameters in the operand field :POSITIONAL and KEYWORD parameters.
Ex: TIME,CLASS,NOTIFY..etc.
Positional Parameter
RESTART = STEPNAME
COND=(RC.OPERATOR,STEPNAME),
If the COND is true them the particular step is bypassed and executes when
failed.
EVEN Specifies that the job step is to be executed if any preceding step
abended and no other RC tests mentioned here are satisfied:
Note: If you dont code Even or Only, then a previous step that
abends will cause all subsequent steps not to be performed.
ONLY Execute this step only if a previous step abended and no RC tests
specified here are satisfied.
COND=ONLY/EVEN
PARM Parameter
01 LK-DATA.
05 LK-LENGTH PIC S9(04) COMP.
05 LK-VARIABLE PIC X(08).
Thank You
www.mainframes-online-training.weebly.com