JCL Basics What is JCL? Job Entry Subsystem Job Processing JCL Statements JCL Parameters JOB Statement Job Statement Parameters for Job Positional Parameters ACCT NAME Keyword Parameters MSGLEVEL MSGCLASS TYPRUN PRTY CLASS RESTART REGION TIME NOTIFY EXEC Statement EXEC Statement Positional Parameters PGM PROC Keyword Parameters COND PARM ADDRSPC DD statement DD statement DD Parameters SPACE SYSIN VOL DCB SYSOUT DSN UNIT DISP |
Important parameters for EXEC statement:
Positional Parameters: PGM PROC Keyword Parameters: COND PARM REGION ADDRSPC TIME • All kinds of resources that will be required for execution of the job and program must be specified in a JCL. • Through EXEC statement, mainly program name or proc name is specified. • A job can be executing multiple steps and each step is identified by an EXEC statement and it must have a step name also. • The main parameters in EXEC statement are PGM and PROC and other parameters can be specified when ever it’s required. EXEC Parm - PROC • The PROC parameter identifies the name of the procedure that is to be called. • Example: //STEP1 EXEC PROC=MYPROC • To call a program, coding of “PGM=“ is mandatory. But for calling a procedure, coding of “PROC=“ is optional. • If the EXEC statement is coded as: //STEP1 EXEC MYPROC It automatically understands that MYPROC is a procedure and not a program. |
Copyright.
All the contents of this website are designed by owner of this website. The material cannot be used to display on any other website without the owners permission.
All the contents of this website are designed by owner of this website. The material cannot be used to display on any other website without the owners permission.