InterviewSolution
| 1. |
What are different parameters for DD (Data Definition) statement? |
|
Answer» Some of the parameters for the DD statement are listed below. BASED on your needs, you can select one or more parameters separated by commas. 1. DSN Parameter: It is used to specify the name of a newly created or existing dataset. There can be a total of 44 characters in the DSN value. The sub-names can be 1 to 8 characters in length, separated by periods. Syntax: DSN=Physical Dataset NameHere,
2. DISP Parameter: "DISP" stands for Disposition, a keyword parameter used in JCL to describe a data set's status to OS. Essentially, it indicates how the OS should handle the dataset after JOB/STEP termination. It contains three sub-parameters: status, normal and abnormal termination activities of the JOB. Syntax: DISP=({status},{normal Disposition},{abnormal Disposition})Here,
3. DCB Parameter: DCB (Data control block) parameter provides information about the physical characteristics of a dataset. For newly created datasets, this parameter is required. Syntax: DCB=<List of parameters>Here,
4. SPACE Parameter: The SPACE parameter indicates how much space is required to store a dataset on a Direct Access Storage Disk. Syntax: SPACE=(Unit of Space,(Primary,Secondary,Directory),RLSE,CONTIG,ROUND)Here,
5. SYSOUT Parameter: We have discussed so far the parameters of DD statements that correspond to data stored in datasets. According to the class specified, SYSOUT directs the data to the output device. Syntax: SYSOUT=class |
|