Guardian Programmer's Guide

Table Of Contents
Using the File System
Guardian Programmer’s Guide 421922-014
2 - 28
Handling File-System Errors
Retrying After an Error
In some cases, the error condition may be temporary. Your program can try the
operation again after a period of time or following some operator intervention. For
example, the following errors typically indicate a temporary error in an operation that
your program can retry once the condition that caused the error is corrected:
It might be useful to retry errors 101 and 102 more than once.
In other cases, the error number indicates a condition that typically cannot be
recovered by trying the operation again, as in the following examples:
If you do choose to retry the operation that caused one of these errors, be sure to
delay for an appropriate period between detecting the error and retrying the operation.
You should also keep a retry counter or a timer to indicate when to give up retrying the
operation. See Section 18, Managing Time, for information about setting up timers.
For details of all file-system errors, including a discussion of the cause of the error, the
action taken by the system, and suggested action for your program to take, see the
Guardian Procedure Errors and Messages Manual.
Error 40 Operation timed out
Error 73 File/record locked
Error 100 Device not ready or controller not operational
Error 101 No write ring (magnetic tape)
Error 102 Paper out, bail open, or end of ribbon (line printer)
Error 110 Only BREAK access permitted (terminal)
Error 111 Terminal operation aborted because of BREAK
Error 11 File not in directory or record not in file, or the specified tape file is not
present on a labeled tape
Error 12 File in use
Error 14 Device does not exist
Error 43 Unable to obtain disk space for file extent
Error 45 File is full
Error 48 Security violation
Error 49 Access violation, or attempt to use an unexpired labeled tape for output,
or
mismatch between DEFINE USE attribute (input or output/extend) and
the current operation (read or write)