If the RECDEF DD statement is not present in the execution JCL for the File Prepass Utility or by the IUI, or if it specifies a null data set (that is, one with no records), default RDL specifications are generated based upon characteristics of the data set defined by the INFILE DD statement. The defaults are also generated if the only RDL specification supplied by the user is a single type L field.
Note: If L. is specified, all dfaults begin with L,....
In the default RDL specification formulas shown below, the following variables are substituted with appropriate values, obtained from the data set label or JCL specifications:
|
Variable |
Description |
|---|---|
|
x |
The number of bytes before the key, excluding the RDW (if present) |
|
x' |
x-1 |
|
y |
The number of bytes following the key; if there is no key, then y is the record length (LRECL) |
|
k |
The number of bytes in the key (KEYLEN) |
|
k' |
k+1 |
|
j |
k + the relative key position (RKP) |
The generated defaults are printed on the PRINT data set by the File Prepass Utility or the IUI.
|
|
Files |
Formulas for Default RDL Specifications |
|---|---|---|
|
Sequential |
Fixed-length |
C1Fy |
|
|
Variable-length |
V2-4,GAF2,C1FVS |
|
|
Undefined |
C1VER |
|
ISAM |
Fixed-length, key at beginning of record |
Nk,,C1Fy |
|
|
Fixed-length, RKP=1a |
Nk',,C2Fy |
|
|
Fixed-length, RKP>1a |
N1,,C1Fx',,Nk,,C2Fy |
|
|
Fixed-length, key at end of record |
N1,,C1Fx',,Nk |
|
|
Variable-length, relative key position = 4 |
V2-j,,GAF2,,Nk,,C2FVS |
|
|
Variable-length, RKP=5a |
V2-j,,GAF2,,Nk',,C2FVS |
|
|
Variable-length, RKP>5a |
V2-j,,GAF2,,N1,,C1Fx', Nk,,C2FVS |
|
VSAM |
Fixed-length, key at beginning of record |
Nk,,C1Fy |
|
|
Fixed-length, key somewhere within the record |
N1,,C1Fx',,Nk,,C2Fy |
|
|
Fixed-length, key at end of record |
N1,,C1Fx',,Nk |
|
|
Variable-length, key at beginning of record |
Nk,,C2VER |
|
|
Variable-length, RKP=1a |
Nk',,C2VER |
|
|
Variable-length, RKP>1a |
N1,,C1Fx',,Nk,,C2VER |
a. Default definition permits record deletion when the DCB parameter OPTCD=L is specified.
| Copyright © 2012 CA. All rights reserved. |
|