Professional Documents
Culture Documents
Day 1
Course Plan
• VSAM file-handling
IBM Online
manuals
Job statement
Syntax
Parameters
Exec statement
Syntax
Parameters
COND parameter
JES commands, JCL errors & Abends
J C L
• Why JCL?
JES
interprets
Determine Create Submit JCL and
the the the passes it
job JCL JOB to
MVS
JES
collects
the output
User and information
Views and about
Copyright © 2005, Infosys 11
Interprets ER/CORP/CRS/OS02/003
Technologies Ltd Version No: 1.0 the JOB
output
Various stages of JCL execution
• Input
• Conversion
• Execution
• Output
• Hard copy
• Purge
MVS INPUT
SPOOL
JES JCL
SYSIN
SPOOL
MVS
JCL
JES SYSIN
PROCLIB
PROC
PAY INTERPRETER
JCL
PAY
CONTROL
BLOCKS
JES2 INITIATOR
ADDRESS ADDRESS
SPACE SPACE
Copyright © 2005, Infosys 15 ER/CORP/CRS/OS02/003
Technologies Ltd Version No: 1.0
CONVERSION
PAY
JCL
INTERPRETER
PAY
CONTROL
BLOCKS
JES3 INITIATOR
ADDRESS ADDRESS
SPACE SPACE
Copyright © 2005, Infosys 16 ER/CORP/CRS/OS02/003
Technologies Ltd Version No: 1.0
EXECUTION, OUTPUT, HARDCOPY and PURGE
• Execution:
– JES selects a job for execution , based upon job CLASS and
job selection PRTY
– Allocation of datasets
– SYSIN and SYSOUT
INPUT
STREAM JES2 / SPOOL
JES3
JCL
SYSIN
SYSOUT
JCL INITIATION
STEP INITIATION
JCL
SYSIN ALLOCATION
STEP TERMINATION
JOB TERMINATION
ACCT CLASS
NAME NOTIFY
MSGLEVEL
TYPRUN MSGCLASS
PRTY COND
RESTART USER
REGION PASSWORD
PERFORM TIME
b) Account Information
c) Name
CLASS
• CLASS specifies the job class that is the nature of the job.
Installation will specify which of the 36 possible classes to use
which is from A to Z and 0 to 9 .
Class Characteristics
A Execute within 15 min of submission
B Execute within 30 min of submission
C Execute within 60 min of submission
D Execute Overnight
H Will be held until released by operator
L Execute within 15 min of submission
T Requires Tape Processing
MSGCLASS
MSGLEVEL
• EX: MSGLEVEL(0,1) will print only JOB statement, and all the
allocation, JES, SMS and operator messages
• By default it is MSGLEVEL(1,1)
• TYPRUN checks the JCL and holds the job in the input queue.
• TYPRUN = SCAN checks the JCL for syntax errors and suppresses execution
of the job
• TYPRUN = HOLD holds the JCL in the input queue for later execution.It is held
until the operator releases it.
• TYPRUN = COPY(JES2 only) lists or duplicates the lines placed in the JOB
statement to the class assigned in the MSGCLASS parameter and suppresses
execution.
Copyright © 2005, Infosys 29 ER/CORP/CRS/OS02/003
Technologies Ltd Version No: 1.0
SOME OTHER Keyword JOB PARAMETERS
TIME=(min,sec) : signifies how much CPU time the JOB can take to
run.
PGM COND
PROC PARM
ACCT REGION
ADDRSPC TIME
PERFORM
PARM
ADDRSPC
By default it is virtual.
RC comparison Condition
code
(0 - 4095)
EVEN : step will be executed even if previous steps
terminate abnormally
• Job terminates
TIME
REGION
PERFORM
COND
ADDRSPC
ACCT
JES2 / JES3
JES2 or JES3 statements can be
included to communicate with JES concerning...
• INPUT
• OUTPUT
• PROCESSING
• Logic error
• Resource unavailability
• Exceeding limits (Time or Space on DASD)
• Hardware Malfunction
• User ABENDS
• Operator intervention
• Operating System failure