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 -
Scenario1 - 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)
Scenario2 - Define a PS.
//NEWPS DD DSN=MTH.DATA.PS,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(3,2),RLSE),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
Scenario3 - Define a DA.
//NEWPDS DD DSN=MTH.DATA.PDS,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(3,2,2),RLSE),
// DCB=(DSORG=DA,RECFM=FB,LRECL=80,BLKSIZE=4096)