COBOL Manual for TNS and TNS/R Programs

Tape Input and Output
HP COBOL Manual for TNS and TNS/R Programs522555-006
27-9
Labeled Tape Files
To use a labeled tape file with an HP COBOL program, you must:
1. Describe the labeled tape file in a file-control entry in the HP COBOL program,
assigning the file’s COBOL file name to a DEFINE name.
2. Enable the creation of DEFINEs with the TACL command SET DEFMODE ON.
3. Add a DEFINE that has the name assigned to the file in Step 1 and the appropriate
attributes (see Adding DEFINEs for Tape Files).
4. Execute the program (see Executing HP COBOL Programs That Use Tape Files).
Topics:
Describing Labeled Tape Files in a HP COBOL Program (Step 1)
Consistency Checking of Labeled Tape Information
Converting HP COBOL Programs to Use Labeled Tape Files
Figure 27-1. Software Involved in Labeled-Tape Processing
Command
Interpreter
Process
COBOL
Process
TAPECOM
Process
COBOL
Mount
Messages
Operator's
Console
($0)
Tape Operation
Messages
Operator Responses
and Commands
Home
Terminal
File System
$ZSVR Server
for Tape
Processes
Tape
Process
Tape
Process
VST706.vsd