1. ATTRIB Command
Defines a list of attributes to be referenced by the USING operand of the ALLOCATE command.
Syntax









| Item | Description |
|---|---|
name |
Name of a list of attributes. |
rec_len |
Record length. |
blksz |
Block length. |
buflen |
Buffer length. For syntax check only. |
bufno |
Number of buffers for a data set. For syntax check only. |
ncp |
Maximum number of READ or WRITE allowed before a CHECK is issued. For syntax check only. |
limct |
Number of tracks or blocks to be searched. For syntax check only. |
expdt |
Expiration date of a data set. |
retpd |
Retention period in days. |
bufoff |
Prefix length of the block. For syntax check only. |
den |
Magnetic tape storage density. For syntax check only. |
keylen |
Key length. |
Operands
The following table describes the operands mentioned previously.
| Operand | Description |
|---|---|
DSORG (DS) |
Specifies the data set structure.
|
RECFM (REC) |
Specifies the record format.
|
LRECL (LR) |
Specifies the record length. |
BLKSIZE (BLK, BL) |
Specifies the block length. |
BUFL |
Specifies the buffer length. For syntax check only. |
BUFNO (BUFN) |
Specifies the number of buffers for a data set. For syntax check only. |
INPUT (I) |
Process the data set to be processed for input. For syntax check only. |
OUTPUT (OU) |
Process the data set to be processed for output. For syntax check only. |
NCP (N) |
Specifies the maximum number of READ or WRITE allowed before a CHECK is issued. For syntax check only. |
BFALN (BFA) |
Specifies the boundary alignment of buffers. For syntax check only. |
BFTEK (BFT) |
Specifies the type of buffering. For syntax check only. |
LIMCT (LI) |
Specifies the number of tracks or blocks to be searched. For syntax check only. |
EROPT (ER) |
Specifies a handling method to use if an error occurs processing a record. For syntax check only. |
DIAGNS (DI) |
Traces the work area and the DCB. For syntax check only. |
EXPDT (EX) |
Specifies the expiration date of a data set. |
RETPD (RET) |
Specifies the retention period in days. |
OPTCD (OP) |
Specifies options. For syntax check only. |
BUFOFF (BUFO) |
Specifies the prefix length of a block. For syntax check only. |
DEN (DE) |
Specifies the magnetic tape storage density. For syntax check only. |
KEYLEN (K) |
Specifies the key length. |
MODE (M) |
Specifies the print mode for printing Chinese characters. For syntax check only. |
TRTCH (T) |
Specifies the recording tape for the tape. For syntax check only. |
REUSE (REU) |
Specifies that the data set specified in the ddname is to be reused if it is already used. |
Example
The following example uses the ATTRIB command.
ATTRIB DCB1 RECFM(F,B),LRECL(80),DSORG(PO)