JCL DD RECORG

JCL – DD RECFM JCL – DD RETPD

Advertisements


RECORG parameter used to specify the organization of the records in the new dataset.

RECORG parameter can be used with SMS only.

RECORG is an optional parameter.

Code RECORG parameter only when to specify record organization of the new dataset or to override the record organization specified in Data class.

If SMS is not installed or is not active, the system syntax checks and then ignores the RECORG parameter.


Syntax:

         {KS}
RECORG=  {ES}
         {RR}
         {LS}

KS Specifies a VSAM Key-Sequenced dataset.
ES Specifies a VSAM Entry-Sequenced dataset.
RR Specifies a VSAM Relative Record dataset.
LS Specifies a VSAM Linear Space dataset.

Defaults and Overrides:


If RECORG not specified, SMS assumes a physical sequential (PS) or partitioned (PO) data set.

If RECORG parameter specified, it overrides the record organization defined in the DATACLAS for the data set.


Example 1:

//DD01    DD  DSNAME=MTH.DATA,DISP=(NEW,KEEP)

In the above example, the RECORG parameter not specified. The SMS assumes that MTH.DATA is a physical sequential (PS) or partitioned (PO) data set.


Example 2:

//DD01   DD  DSNAME=MTH.DATA,DATACLAS=DCLAS07,DISP=(NEW,KEEP),
//          RECORG=KS

In the example, the record organization of key-sequenced (KS) overrides the record organization defined in the data class.


JCL – DD RECFM JCL – DD RETPD

Advertisements