z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Task Charts

z/OS MVS JCL Reference
SA23-1385-00

The following charts list the job control tasks, which are described in the z/OS MVS JCL User's Guide, in four groups:
  • Entering jobs in Table 1
  • Processing jobs in Table 2
  • Requesting data set resources in Table 3
  • Requesting sysout data set resources in Table 4

For each task, the charts list the parameters and statements that can be used to perform it. In many cases, the same task can be performed using different parameters on different statements. Where a parameter can appear on both a JOB and EXEC statement, it applies to the entire job when coded on the JOB statement but only to a step when coded on an EXEC statement.

The system is designed to enable users to perform many types of job control in many ways. To allow this flexibility, only two job entry tasks are required:
  • Identification: The job must be identified in the jobname field of a JOB statement.
  • Execution: The program or procedure to be executed must be named in a PGM or PROC parameter on an EXEC statement.
Therefore, the following statements are the minimum needed to perform a job control task:
   //jobname  JOB
   //         EXEC  {PGM=program-name   }
                    {PROC=procedure-name}
                    {procedure-name}
Table 1. Tasks for Entering Jobs
TASKS FOR ENTERING JOBS STATEMENTS AND PARAMETERS
JCL Statements JES2 Statements JES3 Statements
JOB EXEC Other JCL
Identification
of job jobname field   null statement (JES3 only)    
of step   stepname field      
of procedure     PROC PEND    
of INCLUDE group     INCLUDE    
of account accounting information or pano in JOB JES2 accounting information ACCT   /*NETACCT //*NETACCT
of programmer programmer's name and room in JOB JES2 accounting information USER     ROOM on /*JOBPARM PNAME, BLDG, DEPT, ROOM, and USERID on //*NETACCT
Execution
of program   PGM      
of procedure   PROC      
when restarting and with checkpointing RESTART RD RD SYSCHK DD RESTART on /*JOBPARM FAILURE and JOURNAL on //*MAIN
deadline or periodic         DEADLINE on //*MAIN
when dependent on other jobs         //*NET
at remote node     XMIT JCL /*ROUTE XEQ /*XEQ /*XMIT //*ROUTE XEQ
Job Input Control
by holding job entrance TYPRUN CLASS       HOLD, UPDATE, or CLASS on //*MAIN //*NET
by holding local input reader         //*PAUSE
Start of change by copying input stream End of change TYPRUN CLASS        
from remote work station       /*SIGNON /*SIGNOFF /*SIGNON /*SIGNOFF
Communication
from JCL to system     COMMAND Command /*$command //**command
from JCL to operator       /*MESSAGE //*OPERATOR
from JCL to programmer Comment field unless no parameter field Comment field //*comment, also comment field on all statements but null   Comment field on //*ENDPROCESS and //*PAUSE
from JCL to program   PARM      
from system to operator WARNING on BYTES, CARDS, LINES, and PAGES       FETCH on //*MAIN WARNING on BYTES, CARDS, LINES, and PAGES on //*MAIN
from system to userid -of job completion -of print completion NOTIFY   NOTIFY on OUTPUT JCL statement /*NOTIFY ACMAIN on //*MAIN with JOB NOTIFY
from TSO/E userid to system         USER on //*MAIN
from functional subsystem to programmer     PIMSG on OUTPUT JCL    
through job log MSGCLASS MSGLEVEL log in JOB JES2 accounting information   JESDS on OUTPUT JCL NOLOG on /*JOBPARM  
Protection
through RACF GROUP PASSWORD SECLABEL USER        
Resource Control
of program library     JOBLIB DD, STEPLIB DD, DD defining PDS or PDSE member    
of procedure library     JCLLIB PROCLIB on /*JOBPARM PROC and UPDATE on //*MAIN
of INCLUDE group     JCLLIB PROCLIB on /*JOBPARM PROC and UPDATE on //*MAIN
of address space REGION ADDRSPC REGION ADDRSPC     LREGION on //*MAIN
of processor       SYSAFF on /*JOBPARM SYSTEM on //*MAIN
of spool partition         SPART and TRKGRPS on //*MAIN
Table 2. Tasks for Processing Jobs
TASKS FOR PROCESSING JOBS STATEMENTS AND PARAMETERS FOR TASK
JCL Statements JES2 Statements JES3 Statements
JOB EXEC Other JCL
Processing Control
by conditional execution

COND
 
CANCEL on
BYTES, CARDS,
LINES, and
PAGES

COND IF/THEN/ELSE/ ENDIF statement construct CANCEL on BYTES, CARDS, LINES, and PAGES on /*JOBPARM CANCEL on BYTES, CARDS, LINES, and PAGES on //*MAIN
by timing execution TIME or time in JOB JES2 accounting information TIME   TIME on /*JOBPARM  
for testing:
  1. by altering usual processing
  2. by dumping after error
TYPRUN CLASS DUMP on BYTES, CARDS, LINES, and PAGES PGM=IEFBR14

 
PGM=JCLTEST
PGM=JSTTEST
(JES3 only)

SYSMDUMP DD
SYSUDUMP DD
SYSABEND DD
 
To format dump on
3800 Printing
Subsystem,
FCB=STD3 and
CHARS=DUMP
on dump DD

  //*PROCESS //*ENDPROCESS DUMP in BYTES, CARDS, LINES, and PAGES on //*MAIN
Performance Control
by job class assignment CLASS       CLASS on //*MAIN
by selection priority PRTY     /*PRIORITY  
by performance group assignment PERFORM PERFORM      
by I/O-to-processing ratio         IORATE on //*MAIN
Table 3. Tasks for Requesting Data Set Resources
TASKS FOR REQUESTING DATA SET RESOURCES STATEMENTS AND PARAMETERS FOR TASK
JCL Statements JES2 Statements JES3 Statements
DD OUTPUT JCL Other JCL
Identification
of data set DSNAME       UPDATE on //*MAIN
of in-stream data set * or DATA SYSIN DD DLM   /* or xx delimiter   //*DATASET //*ENDDATASET
of data set on 3540 Diskette Input/Output Unit DSID        
through label label-type on LABEL        
by location on tape data-set- sequence- number on LABEL        
from or to terminal TERM        
Description
of status DISP        
of data attributes - by modeling

DCB
AMP
DATACLAS
KEYLEN
DSNTYPE
KEYOFF
LRECL
RECFM
RECORG
 
LIKE
REFDD

       
of data for ISO/ANSI Version 4 tapes CCSID        
of migration and backup MGMTCLAS        
Protection
through RACF PROTECT SECMODEL        
for ISO/ANSI/FIPS Version 3 tapes and ISO/ANSI Version 4 tapes ACCODE        
by passwords PASSWORD and NOPWREAD on LABEL        
of access to BSAM and BDAM data sets IN and OUT on LABEL        
Allocation
of device UNIT STORCLAS   CLASS on JOB (JES3 only)   SETUP and CLASS on //*MAIN
of tape or direct access volume VOLUME STORCLAS       EXPDTCHK and RINGCHK on //*MAIN
of direct access space SPACE AVGREC DATACLAS        
of virtual I/O

UNIT
DSNAME=
temporary
data set

       
with deferred volume mounting DEFER on UNIT        
with volume pre-mounting       /*SETUP  
dynamic     DYNAMNBR on EXEC    
Processing Control
by suppressing processing DUMMY NULLFILE on DSNAME        
by postponing specification DDNAME        
with checkpointing CHKPT SYSCKEOV DD SYSCHK DD   RESTART on JOB RD on EXEC    
by subsystem SUBSYS CNTL   CNTL ENDCNTL    
End Processing
unallocation FREE        
disposition of data set

DISP
 
RETPD
EXPDT

    OUTDISP on /*OUTPUT  
release of unused direct access space RLSE on SPACE        
disposition of volume RETAIN and PRIVATE on VOLUME        
Table 4. Tasks for Requesting Sysout Data Set Resources
TASKS FOR REQUESTING DATA SET RESOURCES STATEMENTS AND PARAMETERS FOR TASK
JCL Statements JES2 Statements JES3 Statements
DD OUTPUT JCL Other JCL
Identification
as a sysout data set SYSOUT        
name (last qualifier) DSNAME        
of output class class on SYSOUT CLASS MSGCLASS on JOB with SYSOUT=* or CLASS=* and SYSOUT=(,)    
of data set on 3540 Diskette Input/Output Unit DSID        
Description
of data attributes DCB        
Protection
of printed output   DPAGELBL SYSAREA      
Performance Control
by queue selection   PRTY      
Processing Control
with additional parameters OUTPUT code-name on SYSOUT DEFAULT      
by segmenting SEGMENT        
with other data sets class on SYSOUT THRESHLD (JES3 only) GROUPID (JES2 only)      
by external writer writer-name on SYSOUT WRITER      
by mode   PRMODE      
by holding HOLD class on SYSOUT CLASS OUTDISP      
by suppressing output DUMMY class on SYSOUT OUTDISP=PURGE on OUTPUT      
with checkpointing   CKPTLINE CKPTPAGE CKPTSEC   CKPLNS and CKPPGS on /*OUTPUT  
by Print Services Facility (PSF)  

AFPPARMS
AFPSTATS
COLORMAP
COMSETUP
DUPLEX
FORMDEF
FORMLEN
INTRAY
OFFSETXB
OFFSETXF
OFFSETYB
OFFSETYF
OVERLAYB
OVERLAYF
PAGEDEF
PRTERROR
RESFMT
USERLIB
USERPATH

     
by Infoprint Server  

FSSDATA
MAILBCC
MAILCC
MAILFILE
MAILFROM
MAILTO
PORTNO
PRTATTRSPRTOPTNS
PRTQUEUE
REPLYTO
RETAINF
RETAINS
RETRYL
RETRYT

     
End Processing
unallocation

FREE
SPIN

       
Destination Control
to local or remote device or to another node DEST class on SYSOUT

DEST
COMPACT

  /*ROUTE PRINT /*ROUTE PUNCH ORG on //*MAIN
to another processor         ACMAIN on //*MAIN
to internal reader INTRDR as writer-name on SYSOUT  

/*EOF
/*DEL
/*PURGE
/*SCAN

   
to terminal TERM        
to assist in sysout distribution  

ADDRESS
BUILDING
DEPT
NAME
ROOM
TITLE

  ROOM on /*OUTPUT  
Output Formatting
to any printer COPIES FCB form-name on SYSOUT UCS

COPIES
FCB
FORMS
LINECT
(JES2 only)
UCS
CONTROL

forms, copies, and linect on JOB JES2 accounting information COPIES, FORMS, and LINECT on /*JOBPARM COPIES, FCB, and FORMS on /*OUTPUT COPIES and FORMS on //*FORMAT PR
to an AFP printer in addition to most of printer parameters

BURST
CHARS
FLASH
MODIFY
DCB=
OPTCD=J

BURST CHARS FLASH MODIFY TRC  

BURST on
/*JOBPARM
 
CHARS, FLASH,
and BURST on
/*OUTPUT

CHARS and FLASH on //*FORMAT PR
to 3211 Printer with indexing feature   INDEX (JES2 LINDEX only)      
to punch COPIES FCB form-name on SYSOUT DCB=FUNC=I

COPIES
FCB
FORMS

     
of dumps on 3800 Printing Subsystem CHARS=DUMP FCB=STD3 CHARS=DUMP FCB=STD3      
Output Limiting
  OUTLIM  

lines and cards
on JOB JES2
accounting
information
 BYTES, CARDS,
LINES, and PAGES
on JOB

BYTES, CARDS, LINES, and PAGES on /*JOBPARM BYTES, CARDS, LINES, and PAGES on //*MAIN
USERDATA Specifications
Installation specifications   USERDATA      

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014