Guardian Programmer's Guide

Table Of Contents
Contents
Guardian Programmer’s Guide421922-014
ix
12. Communicating With Magnetic
Tape (continued)
12. Communicating With Magnetic Tape (continued)
Working With Standard Labeled Tapes 12-21
Enabling Labeled Tape Processing 12-21
Creating Labeled Tapes 12-21
Checking for Labeled Tape Support 12-21
Accessing Labeled Tapes 12-22
Writing to the Only File on a Labeled Tape Volume 12-29
Writing to a File on a Multiple-File Labeled Tape Volume 12-33
Writing to a File on Multiple Labeled Tape Volumes 12-38
Reading From the Only File on a Labeled Tape Volume 12-42
Reading From a File on a Multiple-File Labeled Tape Volume 12-45
Reading From a File on Multiple Labeled Tape Volumes 12-48
Accessing a Labeled Tape File: An Example 12-52
Preparing the Tape 12-52
Creating the DEFINE 12-52
Writing the Program 12-53
Working With Unlabeled Tapes 12-70
Accessing Unlabeled Tapes 12-70
Writing to a Single-File Unlabeled Tape 12-74
Writing to a Multiple-File Unlabeled Tape 12-77
Writing to a File on Multiple Unlabeled Tape Reels 12-79
Reading From a Single-File Unlabeled Tape 12-82
Reading From a Multiple-File Unlabeled Tape 12-83
Reading From a File on Multiple Unlabeled Tape Reels 12-84
Terminating Tape Access 12-84
Recovering From Errors 12-85
Recovering From “Device Not Ready” Errors 12-87
Recovering From Tape Unit Power Failure 12-87
Recovering From Path Errors 12-88
Accessing an Unlabeled Tape File: An Example 12-89