What is the purpose of DD statement in JCL?

Reusable JCL collection Data definition (DD) statements define the data sets that a program or procedure uses when it runs. You must code one DD statement for each data set that is used or created within a job step. The order of DD statements within a job step is not usually significant.

Which DD parameters are required?

DD statement has two positional parameters. Specifies no space allocation and no disposition processing. DYNAM parameter to provide the compatibility with previous system.

What is DD dummy in JCL?

DD statement OUTDD1 defines a dummy data set. The other parameters coded on the statement are checked for syntax but not used. The DCB parameter supplies data control block information not supplied in the program. Without it, the step might be abnormally terminated.

Can we use Sysin DD in proc?

You can’t, or not yet, have DD * in a catalogued procedure. You can point SYSIN to a dataset, and the dataset can be a PDS with a member-name specified within parenthesis.

What is the function of DD DISP parameter?

Use the DISP parameter to describe the status of a data set to the system and tell the system what to do with the data set after termination of the step or job. You can specify one disposition for normal termination and another for abnormal termination.

What is use of DSN parameter in DD statement?

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.

What is Sysin DD * in JCL?

In-stream data sets begin with a DD * or DD DATA statement; these DD statements can have any valid ddname, including SYSIN. If you omit a DD statement before input data, the system provides a DD * statement with the ddname of SYSIN. Syntax. Parameters on SYSIN DD statements. Location in the JCL.

What is Sysprint in JCL?

The SYSPRINT DD statement defines the output data set containing the end-of-step reports and any error messages. Normally it defines a SYSOUT data set. If the SYSPRINT DD statement is not in the JCL, the output of SYSPRINT is dynamically allocated to the default SYSOUT class—normally MSGCLASS.

Can we code instream data inside a procedure?

You cannot use instream data inside a PROC. It is a rule. Instead, you code some dummy statement inside the PROC and override the particular step’s DD statement from the JCL before you execute it.

Is overriding possible in catalog procedure?

You can override any parameter in a cataloged procedure except the PGM= parameter in the EXEC statement. Overriding of statements or fields is effective only for the duration of the job step in which the statements appear. The statements, as stored in the procedure library of the system, remain unchanged.

When should DISP SHR be used?

SHR – This dataset already exists and should be used in shared mode. For example – If you have a job called JOB1 and you have another job called JOB2 and both the jobs want to refer a dataset called DATASET1. so, the best way to share the dataset is to code DISP=SHR for both the datasets in the JCL.

What is symbolic parameter JCL?

A symbolic parameter is a character string of 1 to 7 alphameric characters preceded by an ampersand (&). The first character after & must be alphabetic. When a cataloged procedure is processed each symbolic parameter is either assigned a value or nullified.


You Might Also Like