DD DSORG Parameter
DD DSORG Parameter
Note! DSORG parameter is required only when we are creating a dataset.
The DSORG parameter specifies the organization of the dataset. The value of this parameter specifies how the data in the dataset is arranged and accessed.
Syntax -
DSORG=PS|PO|DA
PS | specifies the dataset organization is sequential. |
PO | specifies the dataset organization is partitioned (PDS). |
DA | specifies the dataset organization is direct access. |
Default and overrides -
The system uses an installation-defined default if the DSORG parameter is not coded.
Examples -
Scenario - Define PDS.
//NEWPDS DD DSN=MTH.DATA.PSFILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(3,2,2),RLSE),
// DCB=(DSORG=PO,RECFM=FB,LRECL=80,BLKSIZE=1600)