Professional Documents
Culture Documents
Chapter06 JCL and SDSF Slides PDF
Chapter06 JCL and SDSF Slides PDF
Copyright
py g IBM Corp.,
p , 2006. All rights
g reserved.
Introduction to the new mainframe
Chapter 6 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
C t a simple
i l job
j b and
d submit
b it it for
f
execution
Check the output
p of your
y jjob throughg
SDSF
What is JCL?
//JOBNAME JOB
//STEPNAME EXEC
//DDNAME DD
pp or lower case
//* comment - upper
/* ....end of JCL stream
JCL example
//MYJOB JOB 1
1,MSGCLASS=T
MSGCLASS T
//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)
/*
EXEC statement
Region size
JCL: DD statement
DD statement
DD name (referenced in the program)
DSN= (the data set name as cataloged on disk)
Using SDSF
After submitting
Af b i i a job,
j b z/OS
/OS users use System
S Display
Di l and d Search
S h
Facility (SDSF) to review the job output for successful completion
or JCL errors.
Display Help
Input Output
SYSLOG A ti
Active Output
O t t Status
St t Printer
P i t IInitiator
iti t
Queue Queue
Panel Users Queue Panel Panel Panel
Panel Panel
Panel Panel
Job Output
Data Set Descriptor
Panel Panel
Output
p
Data Set
Panel
Screen 2
Utilities
z/OS
/OS includes
i l d a number b off programs useful f l in
i batch
b h processing
i
called utilities.
Utilities p
provide manyy small,, obvious,, and useful functions.
A basic set of system-provided utilities is described in the
textbook (Appendix C).
Customer
C t sites
it often
ft write it th
their
i own utility
tilit programs, many off
which are shared by the z/OS user community.
Some examples p of utilities:
o IEBGENER Copies a sequential data set
o IEBCOPY Copies a partitioned data set
o IDCAMS Works with
ith VSAM data sets
System Libraries
Summary
B
Basici JCL contains
i three
h statements: JOB,
JOB EXEC,
EXEC andd DD
DD.
A program can access different groups of data sets in different
jjobs by
y changing
g g the JCL for each job.
j
New data sets can be created through JCL by using the
DISP=NEW parameter.
Users
U normally
ll use JCL procedures
d for
f more complex
l jobs.
j b A
cataloged procedure is written once and can then be used by
many users.
z/OS supplies many JCL procedures, and locally-written ones
can be added easily.
A user must understand how to override or extend statements in
a JCL procedure to supply the parameters (usually DD
statements) needed for a specific job.
Summary - continued
SDSF is i a panell interface
i f for
f viewing
i i the
h system log
l and d the
h list
li
of active users and controlling and monitoring jobs and
resources.
Utility programs make operating on data sets easier
System libraries contain JCL procedures, control parameters,
and system execution modules
modules.