Tape labeling

 

This series of diagrams provides a basic description of standard tape labeling used for the System i™ products.

In Figure 1, the INZTAP command gives the tape a volume label (marked VOL1) and writes two tape marks (TM). Figure 1. Volume label and tape marks

As mentioned in the previous sentence, this diagram displays a tape with a volume label of VOL1 and two tape marks to the right of it labeled TM.

When a high-level language program opens a tape file, the system does the following procedures:

  1. Writes over the two tape marks that follow the VOL label with header labels HDR1 and HDR2

  2. Adds a single tape mark that follows the header labels

Each header label is 80 bytes long. The first header label contains such information as the file name and date. The second header label specifies information such as record and block lengths, record block format, and buffer offset (for ASCII files).

When a high-level language program writes data to tape, the system writes the data to the tape after the tape mark. Reaching the end of the file the system writes a tape mark and two end-of-file labels on the tape. The end-of-file labels contain the same information as the header labels except that the first end-of-file label (EOF1) includes the block count for the file.

Two tape marks follow the end-of-file labels as shown in the following diagram in Figure 2 Figure 2. End of file labels

This diagram shows two tape files. The first tape file contains the following from left to right: VOL1 as a label, Header labels HDR1 and HDR2, a tape mark labeled TM and lastly data. The end-of-file label includes the following from left to right: TM, EOF1 and EOF2, TM and TM.

When the high-level language program adds a second file to the tape, the system creates a header label (HDR1) for the new file. This header label (HDR1) for the new file writes over the second tape mark following the end-of-file labels. The second header label, another tape mark, and the file data follow the new header label (HDR1) as illustrated in the following figure. Figure 3. New header label

This graphic is described in the above paragraph.

When the tape drive reaches the end of the physical tape, the system writes two tape marks that follow the end-of-volume labels. If the file is not complete, it continues on a second volume, which specifies the tape as volume 2 of the file.

This graphic is also described in the paragraph above.

 

Parent topic:

Concepts