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 to 3 | Label identifier | 3 | HDR |
4 | Label number | 1 | 1 |
5 to 21 | File name | 17 | “a” characters. Identifies the file. |
22 to 27 | File set identifier | 6 | “a” characters. Identifies the file set to which this file belongs. |
28 to 31 | File section number | 4 | “n” characters. Identifies the file section. |
32 to 35 | File sequence number | 4 | “n” characters. Identifies the file in the file set. |
36 to 39 | Generation numbers | 4 | “n” characters. Distinguishes the successive extensions/updates of the file from 0001 through 9999. |
40 to 41 | Version number | 2 | “n” characters. Distinguishes the successive repetitions of a generation. |
42 to 47 | Creation date | 6 | Spaces or “n” characters. Specifies the creation date of the file section. |
48 to 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: with “1” or “3” tape or file owner has access authorization. |
55 to 60 | Block count | 6 | 000000 |
61 to 73 | System code | 13 | “a” characters. identifies the implementation responsible for creating the labels. |
61 to 65 | 5 | BS2000: Spaces. | |
66 to 73 | 8 | BS2000: Spaces. | |
74 to 80 | Reserved for future 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 to 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);
|
6 to 10 | Block length | 5 | “n” characters. Specifies the maximum number of characters per block in the file. BS2000: With standard identifier 1 the following contents are possible: |
6 to 7 | Standard blocks | “80”: standard block identifier. | |
8 to 10 | “n” characters. Specifies the number of standard blocks. | ||
11 to 15 | Record length | 5 | “n” characters. Identifies the record length in conjunction with the record format (position 5).
|
16 to 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 | BS2000 assignments up to support of DIN level 4: |
17 | Data position | 1 | Indicator in the case of track swapping: 0 = no 1 = yes |
18 to 34 | Job step | 17 | ID assigned by task management |
35 to 36 | Recording density for tape cartridges | 2 | 2 spaces = not compressed |
47 to 50 | File name code | 4 | Used only up to DIN 66029-1 if positions 6 and 7 contain standard blocks. |
51 to 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 to 80 | Reserved for future standardization | 28 | Spaces. |
Third 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 to 3 | Label identifier | 3 | HDR |
4 | Label number | 1 | 3 |
5 to 12 | Owner identifier | 8 | Identifies the owner of the file (user ID). |
13 to 56 | File name | 44 | The first 44 characters of the name of the file or file generationto which the file belongs. |
57 to 60 | read password | 4 | Specifies a password governing read access to the file. |
61 to 64 | write password | 4 | Specifies a password governing read and write access to the file. |
65 to 68 | Execute password | 4 | Specifies a password that must be entered in order to execute a load module contained in the file. |
69 | Access method | 1 | Specifies the valid access mode: |
70 to 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 to 3 | Label identifier | 3 | HDR |
4 | Label number | 1 | Digits 4 through 9 |
5 to 80 | Reserved for the implementation | 76 | There are no conventions or restrictions with regard to the recording and contents of this field. |