Each file or file section contains at least two file header labels (HDR1 and HDR2) and at most nine. File header labels HDR3 through HDR9 are optional.
First file header label (HDR1)
The first file header label identifies a file section, describes its location within the file set and defines certain attributes of the file section.
Format
Position | Field name | Length | Contents |
1 – 3 | Label identifier | 3 | HDR |
4 | Label number | 1 | 1 |
5 – 21 | File name | 17 | “a” characters; identifies the file. |
22 – 27 | File set identifier | 6 | “a” characters; identifies the file set to which this file belongs. |
28 – 31 | File section number | 4 | “n” characters; identifies the file section. |
32 – 35 | File sequence number | 4 | “n” characters; identifies the file in the file set. |
36 – 39 | Generation number | 4 | “n” characters; distinguishes the successive extensions/updates of the file from 0001 through 9999. |
40 – 41 | Version number | 2 | “n” characters; distinguishes the successive repetitions of a generation. |
42 – 47 | Creation date | 6 | Spaces or “n” characters; specifies the creation date of the file section. |
48 – 53 | Expiration date | 6 | Spaces or “n” characters; specifies the earliest date on which the file section may be deleted. |
54 | File access indicator | 1 | “a” characters; indicates restrictions with regard to access to data in this file. BS2000: |
55 – 60 | Block count | 6 | 000000 |
61 – 73 61 – 65 | System code | 13 5 | “a” characters; identifies the implementation responsible for creating the labels. BS2000: BS2000 |
74 – 80 | Reserved for later standardization | 7 | Spaces |
Second file header label (HDR2)
The second file header label describes certain attributes of the file and of the implementation.
Format
Position | Field name | Length | Contents |
1 – 3 | Label identifier | 3 | HDR |
4 | Label number | 1 | 2 |
5 | Record format | 1 | F, D or S, and V and U (not supported according to DIN); specifies the format of the records in the file.
|
1 | |||
6 – 10 | Block length | 5 | n” characters; specifies the maximum number of characters per block in the file. BS2000: |
6 – 7 | Standard blocks | '80': standard block identifier. | |
8 – 10 | n” characters: specifies the number of standard blocks. | ||
11 – 15 | Record length | 5 | “n” characters; identifies the record length in conjunction with the record format (position 5). |
16 – 50 | Reserved for the implementation | 35 | There are no conventions or restrictions with regard to the recording and contents of this field. |
16 | Recording density | 1 | 0 200 Bpi |
17 | Data position | 1 | Indicator in the case of track swapping: |
18 – 34 | Job step identifier | 17 | ID assigned by task management. |
35 – 36 | Recording density for tape cartridges | 2 | ' 'BLANK''BLANK'' not compressed |
47 – 50 | File name code | 4 | Used only up to DIN 66029-1 if positions 6 and 7 contain standard blocks. |
51 – 52 | Buffer displacement | 2 | “n” characters; specifies the length (in characters) of an additional field that is placed at the beginning of each block. |
53 – 80 | Reserved for future standardization | 28 | Spaces |
The file header label (HDR3)
The HDR3 label contains the complete file name, the passwords and the access mode relevant for the file owner.
Format
Position | Field name | Length | Contents |
1 – 3 | Label identifier | 3 | HDR |
4 | Label number | 1 | 3 |
5 – 12 | Owner identifier | 8 | Identifies the owner of the file (user ID). |
13 – 56 | File name | 44 | The first 44 characters of the name of the file or file generation to which the file belongs. |
57 – 60 | Read password | 4 | Specifies a password governing read access to the file. |
61 – 64 | Write password | 4 | Specifies a password governing read and write access to the file. |
65 – 68 | Execute password | 4 | Specifies a password that must be entered in order to execute a load module contained in the file. |
69 | Access mode | 1 | Specifies the valid access mode: |
70 – 80 | Reserved | 11 | Spaces. |
Optional file header labels (HDR4 through HDR9)
The other file header labels are optional and contain implementation-specific information.
Format
Position | Field name | Length | Contents |
1 – 3 | Label identifier | 3 | HDR |
4 | Label number | 1 | Digits 4 through 9. |
5 – 80 | Reserved for the implementation | 76 | There are no conventions or restrictions with regard to the recording or contents of this field. |