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 |
DSN parameter • The name of the data set. • Simple Name: 1 to 8 chars. • Qualified Name: separated by periods each name 1 to 8 chars total 44 characters including periods. • Temporary data sets: &&TEMP or do not mention DSN parameter. • Refer back: DSN=*.STEP2.DD2 • DSN Specifies the name of the existing data set or newly created data set. • It specifies the name of the file to be used as input or output for the job. • DSN is a KEYWORD parameter in the DD statements. Since it is not possible to provide simple names to Data Sets, only Qualified names are be used. • Temporary datasets are used only when the data is required only for the duration of the Job. • A Temporary dataset is recognized as such if the DSN parameter is omitted. In this case, system assigns a unique name to it and reference is made to it by referring step name and ddname. • If the same dataset of previous steps is being used in a particular step, then we can refer back to the dataset by step name and ddname of previous steps instead of coding the dataset name again. |