Chapter 6: Using Job Control Language (JCL) and System Display and Search Facility (SDSF)
Chapter 6: Using Job Control Language (JCL) and System Display and Search Facility (SDSF)
Chapter objectives
Be able to:
Explain how JCL works with
the system, give an overview
of JCL coding techniques,
and know a few of the more
important statements and
keywords
Create a simple job and
submit it for execution
Check the output of your
job through SDSF
What is JCL?
//JOBNAME JOB
//STEPNAME EXEC
//DDNAME DD
//* comment - upper or lower case
/* ....end of JCL stream
JCL example
//MYJOB JOB 1
//MYSORT EXEC PGM=SORT
//SORTIN DD DISP=SHR,DSN=IBMUSER.AREA.CODES
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
/*
CreateamemberusingISPFedit
CreateJC Lstatements
JO Bstatement
Accountinginformation
Executionclasses
EXEC statement
Region size
JCL: DD statement
DDstatem ent
DDnam e(referencedintheprogram)
DSN =(thedataset nam eascatalogedondisk)
New data sets can be created through JCL by using the DISP=NEW
parameter.
For a DISP=NEW request, you need to supply more information,
including:
– A data set name, DSN=
– The type of device for the data set, UNIT=sysda
– If a disk is used, the amount of space to be allocated for the
primary extent must be specified, SPACE=
– If it is a partitioned data set, the size of the directory must be
specified within the SPACE parameter
– Optionally, DCB parameters can be specified.Explain DCB
//MYJOB JOB 1
//MYPROC PROC
//MYSORT EXEC PGM=SORT
//SORTIN DD DISP=SHR,DSN=&SORTDSN
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
// PEND
After submitting a job, z/OS users use System Display and Search
Facility (SDSF) to review the job output for successful completion
or JCL errors.
Screen Attributes
Screen2
Operator Extension
SDSF DA MVSA DEMOMVS PAG 0 SIO 563 CPU 15/ 15 LINE 1-17 (282)
/d u,dasd,online
/d a,l
Note: You have to be in ISPF/SDSF for this option (SDSF can run native in TSO)
Utilities
z/OS includes a number of programs useful in batch processing
called utilities.
Utilities provide many small, obvious, and useful functions.
Customer sites often write their own utility programs, many of
which are shared by the z/OS user community.
Some examples of utilities:
– IEBGENER Copies a sequential data set
– IEBCOPY Copies a partitioned data set
– IDCAMS Works with VSAM data sets
You can execute the IDCAMS program and include the command and its parameters as input to the
program. You can also call the IDCAMS program from within another program and pass the command and
its parameters to the IDCAMS program.
System Libraries
z/OS has many standard system libraries, including:
Summary
Summary - continued