1 using jcl and sdsf stephen s. linkin houston community college © hccs and ibm 2008 ©hccs &...
TRANSCRIPT
©HCCS & IBM® 2008 Stephen Linkin 1
Using JCL And SDSF
Stephen S. LinkinHouston Community College
© HCCS and IBM 2008
©HCCS & IBM® 2008 Stephen Linkin 2
What Is JCL?
Syntax UPPER CASE // xxxx JOB // xxxx EXEC // xxxx DD //* /*
©HCCS & IBM® 2008 Stephen Linkin 3
What Is JCL?
MYJOB MYSORT SORTIN
SORTOUT SYSOUT SYSIN DD *
©HCCS & IBM® 2008 Stephen Linkin 4
JOB, EXEC, And DD Parameters
JOB parameters
©HCCS & IBM® 2008 Stephen Linkin 5
JOB, EXEC, And DD Parameters
JOB parameters EXEC parameters
©HCCS & IBM® 2008 Stephen Linkin 6
JOB, EXEC, And DD Parameters
JOB parameters EXEC parameters DD parameters
©HCCS & IBM® 2008 Stephen Linkin 7
Data Set Disposition,DISP Parameter DISP Parameters
DISP=(status,[normal end,][abnormal end]) STATUS
NEW OLD SHR MOD
END (Normal/Abnormal) DELETE KEEP CATLG UNCATLG PASS
©HCCS & IBM® 2008 Stephen Linkin 8
Data Set Disposition,DISP Parameter
Creating New Data Sets DISP Parameters Volser Device Type Member Name
©HCCS & IBM® 2008 Stephen Linkin 9
Data Set Disposition,DISP Parameter
Creating New Data Sets Space SPACE=(TRK,10)
10 tracks, no secondary extentsSPACE=(TRK,(10,5)) 10 tracks primary, 5 tracks for each secondary extentSPACE=(CYL,5) Can use CYL (cylinders) instead of TRKSPACE=(TRK,(10,5,8)) PDS with 8 directory blocksSPACE=(1000,(50000,10000)) Primary 50000 records @1000 bytes each
©HCCS & IBM® 2008 Stephen Linkin 10
Continuation And Concatenation
Hollerith 80 Col. Punch Cards Continuation Concatenation//JOBCARD JOB 1,REGION=8M,NOTIFY=ZPROF//JOBCARD JOB 1,
// REGION=8M,// NOTIFY=ZPROF
//DATAIN DD DISP=OLD,DSN=MY.INPUT1// DD DISP=OLD,DSN=MY.INPUT2// DD DISP=SHR,DSN=YOUR.DATA
©HCCS & IBM® 2008 Stephen Linkin 11
Why z/OS Uses Symbolic File Names
©HCCS & IBM® 2008 Stephen Linkin 12
Reserved DDNAMES
Mnemonic Names Special Meanings
//JOBLIB DD ...//STEPLIB DD ...//JOBCAT DD ...//STEPCAT DD ...//SYSABEND DD ...//SYSUDUMP DD ...//SYSMDUMP DD ...//CEEDUMP DD ...
©HCCS & IBM® 2008 Stephen Linkin 13
JCL Procedures (PROC’s)
Cataloged Procedures
©HCCS & IBM® 2008 Stephen Linkin 14
JCL Procedures (PROC’s)
Cataloged Procedures JCL PROC Statement Override How Jobs Submit For Batch Processing
ISPF Editor Command Line ISPF Command Shell TSO command line
//stepname.ddname DD ...
©HCCS & IBM® 2008 Stephen Linkin 15
Using SDSF
SDSF Functions Viewing The System Log Entering System Commands Controlling Job Processing
Hold Release Cancel, And Purge Jobs
Monitoring Jobs Displaying Output Before Printing Prioritizing Process Order Prioritizing Print Order
Review And Correct JCL Errors Menu Driven
©HCCS & IBM® 2008 Stephen Linkin 16
Using SDSF
JES Spool Data Set I Input DA Execution queue O Output queue H Held queue ST Status queue
©HCCS & IBM® 2008 Stephen Linkin 17
Utilities
©HCCS & IBM® 2008 Stephen Linkin 18
System Libraries
©HCCS & IBM® 2008 Stephen Linkin 19
Summary
Read The Redbook