Use this information to find out the considerations for opening tape device files.
The following considerations apply to opening tape device files:
The record length, block length, record-block-format, and buffer offset (for an ASCII file) always return to the program in the data management open feedback area. They return in the format in which they are written in the HDR2 file header label. This information is available regardless of the type of label processing that is used for the file.
Reading a data file backwards, where you specify the device and volume list, you must position the volumes on the device in reverse order. For example, a device file with DEV(QTAPE1 QTAPE2) VOL(VOL01 VOL02 VOL03) expects VOL03 on QTAPE1, VOL02 on QTAPE2, and then VOL01 on QTAPE1.
or
The program specifies the record length according to the information that is shown in Table 1.
Record and format type | Minimum record length for *DATA | Minimum record length for *SRC | Maximum record length for *DATA | Maximum record length for *SRC | Block length |
---|---|---|---|---|---|
Fixed blocked, *F, *FB, *U | 18 | 30 | 32 767 | 32 767 | Multiple of *DATA record length |
Variable unblocked, *V | 1 | 13 | 32 759 (See Note) | 32 767 | Equal to maximum *DATA record length plus 8 |
D-type ASCII unblocked, *D | 1 | 13 | 9 995 (See Note) | 10 007 (See Note) | Equal to maximum *DATA record length plus 4, plus buffer offset |
Variable blocked, *VB | 1 | 13 | 32 759 | 32 767 | At least maximum *DATA record length plus 8 |
D-type ASCII blocked, *DB | 1 | 13 | 9 995 (See Note) | 10 007 (See Note) | At least maximum *DATA record length plus 4, plus buffer offset |
*VS, *VBS | 1 | 13 | 32 759 | 32 759 | |
Note: This
is the maximum record length for a record being written to a tape. Input
records can be padded to 32 767.
|