• Aucun résultat trouvé

Label Definitions and Organization

Dans le document Tape Labels (Page 23-27)

\ )

/

)

IBM STANDARD LABELS

If you specify SL in the LABEL parameter of the DD statement, or if you do not specify a label type, the data management routines of the operating system perform IBM standard label processing. If you specify SUL, data management processes both IBM standard labels and IBM standard user labels.

This section describes the organization, formats, and contents of IBM standard labels, and explains how they are processed or created.

Label Definitions and Organization

Volume Label

IBM standard labels are SO-character records that are recorded in EBCDIC and odd parity on 9-track tape; or are in BCD and even parity, with the -translate bit on, on 7 -track tape. The first four characters are always used to identify the labels:

Label Identifier VaLl

HDR 1 and HDR2 EOVI and EOV2 EOFI and EOF2 UHL 1 and UHL8 UTL 1 and UTL8

Label Description Volume label Data set header labels

Data set trailer labels (end-of-volume) Data set trailer labels (end-of-data-set) User header labels

User trailer labels

The header and trailer labels use identical formats; therefore, there are only four different label formats. These formats are described in detail later in this section. The four types are:

1. Standard Volume Label (identified as VOL 1)

2. Standard Data Set Labell (identified as HDR1, EOV1, or EOF1) 3. Standard Data Set Label 2 (identified as HDR2, EOV2, or EOF2) 4. Standard User Label (identified as UHL1-UHLS or UTL1-UTLS)

Figures 4 and 5 show the positions of the labels with various tape volume organizations.

A tape with IBM standard labels must contain a volume label and data set labels. User labels are optional.

The IBM standard volume label (VOL1) appears at the beginning of each tape. The volume label identifies the volume and its owner and is used to verify that the correct volume is mounted.

The volume label is created by either a utility program or user's program when the tape is first received at an installation.

IBM Standard Labels 11

Single Data Set

Figure 4. Volume Organizations with IBM Standard Labels (Single Data Set) Data Set Header Labels

12

as

Tape Labels

The data set header label group consists of IBM standard data set label 1 (HDRl) and IBM standard data set label 2 (HDR2). The HDRI label contains operating system and device-dependent data that relates to the data set. The HDR2 label contains additional data set characteristics. These labels are used to identify and describe the data set and to protect it from unauthorized use.

These labels are created automatically by data management each time a data set is recorded on tape.

)

Figure 5. Volume Organizations with IBM Standard Labels (Multiple Data Sets)

IBM Standard Labels 13

User Header Labels

Optionally, a maximum of eight user header labels (UHLl-UHL8) can appear on the tape immediately following the data set header labels. These labels contain user-specified data that can be made available to your program for processing.

If you want data management to write user header labels or to make user header labels available to your program, you must specify SUL on the DD statement and specify the address of a user header labei routine in the DCB exit list. (The exit list can address several user header label routines, that is, routines that process input user header labels and create output user header labels.) The exit list (EXLST) is described in OS Data Management Services Guide.

Data Set Trailer Labels

The data set trailer label group consists of IBM standard data set labell (EOVl or EOFl) and IBM standard data set label 2 (EOV2 or EOF2). These labels duplicate the . IBM data set header labels so that the tape dm be read backward. The trailer labels are

identical to the header labels except that:

• The identifier is EOV or EOF instead of HDR.

• A block count is recorded in the first trailer label (EOVl or EOFl) and used on input to verify that all blocks of the data set are processed. The block count field in the HDRllabel contains zeros (EBCDIC or BCD).

These labels are created automatically by data management when the data set is recorded on tape.

User Trailer Labels

Additional Labels

Tapemarks

14

as

Tape Labels

Optionally, a maximum of eight user trailer labels (UTLl-UTL8) can immediately follow the data set trailer labels. These labels contain user-specified data that can be made available to your program for processing.

If you want data management to write user trailer labels or to make user trailer labels available to your program, you must specify SUL on the LABEL parameter of the DD statement and specify the address of a user trailer label routine in the DCB exit list. (The exit list can address several user trailer label routines, that is, routines that process input user trailer labels and create output user trailer labels.) The exit list (EXLST) is

described in OS Data Management Services Guide.

The operating system does not support any additional labels in the groups described above. This applies to labels identified as VOL2-VOLn, HDR3-HDRn, UHL9-UHLn, etc. If such labels exist on an input tape, they are bypassed. They are omitted on output tapes.

Each data set and each data set label group to be processed by data management must be followed by a tapemark.

• There is no tapemark between the volume label and the first header label group on the

volume. '

• The tapemark that marks the end of the header label group also indicates the beginning of the data set to be processed.

)

)

• The tapemark that follows the data set also indicates the beginning of the trailer label group.

• A tapemark marks the end of the trailer label group. A second tapemark follows the trailer label group of the last data set on the volume, provided the data set does not continue on another volume.

When the operating system is used to create a data set with IBM standard labels, data management writes the necessary tapemarks.

Dans le document Tape Labels (Page 23-27)