Professional Documents
Culture Documents
The basics of
Job Control Language
Murachs OS/390 and z/OS JCL 2002, Mike Murach & Associates, Inc. Chapter 4, Slide 1
Objectives
Applied objectives
Code a valid JOB statement using the format required by your installation.
Code an EXEC statement to invoke a program and pass a parameter value to it.
Code a DD statement for the following DASD data sets:
a. an existing cataloged data set
b. an existing uncataloged data set
c. a new non-VSAM data set
Code the JCL and data for an instream data set. The data may or may not
include JCL statements.
Code a DD statement for a SYSOUT data set.
Given complete specifications for a job, code its JCL using the statements
presented in this chapter.
Parameters
Identifier Operation
field
field field
Name
field
Keyword parameters
//CUSTMAST DD DSNAME=MM01.CUSTOMER.MASTER,DISP=SHR
//DUNNING DD DSNAME=MM01.DUNNING.FILE,DISP=(NEW,KEEP),
// UNIT=SYSDA,VOL=SER=MPS800,
// SPACE=(CYL,(1,1)),
// DCB=(DSORG=PS,RECFM=FB,LRECL=400)
DSNAME facts
The DSNAME parameter is required on a DD statement for a
permanent data set.
The DSNAME parameter is optional for temporary data sets.
Ddname facts
The ddname is a symbolic name that the program specified in the
EXEC statement uses to refer to a data set.
Each ddname should be unique within the job step.
Some ddnames have special meaning to the system and therefore
cannot be used to identify data sets in a processing program.
Explanation
unit Specifies the unit used to allocate space to the data set, as follows:
TRK Allocates space in tracks.
CYL Allocates space in cylinders.
blklgth Allocates space in blocks, with the block size given in bytes.
reclgth Allocates space based on the average record length in bytes.
primary-qty Specifies the number of units to be initially allocated to the file.
secondary-qty Specifies the number of units to be allocated to each secondary extent.
dir Specifies the number of directory blocks to allocate for a partitioned data
set.
Primary: 4 cylinders
Secondary: 1 cylinder
Directory: 5 blocks
Example 2
SPACE=(TRK,(5,2))
Primary: 5 tracks
Secondary: 2 tracks
Example 3
SPACE=(800,(500,100))
Transaction
Customer journal
transactions
Post Transaction
Customer customer summary
master file transactions report
(CM3000)
Customer Sorted
AR master file Dunning file
master file dunning file