Guardian Programmer's Guide

Table Of Contents
Communicating With Terminals
Guardian Programmer’s Guide 421922-014
10 - 37
Recovering From Errors That Indicate a Temporary
Lack of Resources
The following paragraphs describe the effects of these errors. At the end of this
subsection is a sample program for dealing with terminal errors.
For all errors, you can get a short description of the error using the TACL ERROR
command with the error number as parameter. For more detailed information on the
error, refer to the Guardian Procedure Errors and Messages Manual.
Recovering From Errors That Indicate a Temporary Lack of
Resources
Errors in the range 30 through 39 indicate that some resource is lacking, such as file
system or I/O process buffer space, file-system control blocks, or process control
blocks. These errors can be retried a limited number of times after a short delay.
Recovering From an “Operation Timed Out” Error
Error 40 indicates that the user did not respond to the application within the period
specified in the AWAITIO procedure call. Any data entered before the timeout
occurred is lost. You should therefore send a message to the user to reenter the data.
Recovering From a BREAK Error
Pressing BREAK on a terminal where BREAK is enabled can cause an application
process to receive either of two errors:
The action taken for these errors depends on whether the process receiving the error
is the one with BREAK enabled (the process that receives the Break-on-Device
message).
Error 110 indicates that the BREAK key was pressed and that BREAK mode was
specified when BREAK was enabled (by SETPARAM function 3 or SETMODE function
11). The terminal is inaccessible until the process calls SETMODE function 12 to allow
normal access to the terminal.
If the process receiving error 110 is not the one that enabled BREAK, then the
operation should be retried periodically. If the process has BREAK enabled, it should
check $RECEIVE for the system Break-on-Device message and take appropriate
action.
Error 110 implies that no data was transferred.
Error 111 indicates that BREAK was pressed while the current file operation was taking
place. This error indicates that data may have been lost.
If the process receiving error 111 is not the one that enabled BREAK, then you should
retry the operation. If a write operation was being performed, then the write can simply
Error 110 only BREAK access permitted
Error 111 operation aborted because of BREAK