COBOL Manual for TNS and TNS/R Programs

Tape Input and Output
HP COBOL Manual for TNS and TNS/R Programs522555-006
27-20
Labeled Tape Files
LABELS Attribute (Required)
The value of the LABELS attribute for a labeled tape file must reflect the type of labels
the tape has:
BYPASS tells the system to handle a labeled tape file like an unlabeled tape file. The
labels are interpreted as data. Use BYPASS if either of these is true:
The tape has labels that are not ANSI or IBM standard.
The HP COBOL program does its own label processing.
The LABELS attribute of the DEFINE overrides any LABEL RECORDS clause in your
HP COBOL program.
Labels LABELS Attribute Value
ANSI standard ANSI
IBM standard IBM
Any other BYPASS
Table 27-4. Effect of LABELS Attribute and LABEL RECORDS Clause on Labeled
Tape File
LABELS
Attribute
Value
LABEL RECORDS Clause
LABEL RECORDS STANDARD LABEL RECORDS OMITTED
ANSI or IBM Execution proceeds HP COBOL sets file status code to
97
* and execution proceeds
BYPASS HP COBOL sets file status code to
97
*, execution proceeds, and
HP COBOL handles any labels as
data
Execution proceeds and HP COBOL
handles any labels as data
* File status code 97 means that the statement executed successfully, but the circumstances were not entirely as
expected.