Guardian Procedure Calls Reference Manual

NO^ERROR Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Example
Summary
The NO^ERROR procedure is called internally by sequential I/O (SIO) procedures. Error handling
and retries are implemented within the SIO procedure environment by the NO^ERROR procedure.
If the file is opened by OPEN^FILE, then the NO^ERROR procedure can be called directly for the
file-system procedures.
Syntax for C Programmers
#include <cextdecs(NO_ERROR)>
short NO_ERROR ( short state
,short _near *file-fcb
,short _near *good-error-list
,short retryable );
Syntax for TAL Programmers
no-retry := NO^ERROR ( state ! i
,file-fcb ! i
,good-error-list ! i
,retryable ); ! i
Parameters
state
input
INT:value
if nonzero, indicates the operation is considered successful. The file error and retry count
variables in the file control block (FCB) are set to zero, with no-retry returned as nonzero.
Typically, either of two values is passed in this position:
immediately follows a file-system call. If equal is true, the operation is successful. This eliminates a call
to FILEINFO by NO^ERROR.
= (CCE)
forces NO^ERROR to first check the error value in the FCB. If the FCB error is 0, NO^ERROR calls
FILEINFO for the file.
0
file-fcb
input
INT:ref:*
identifies the file to be checked.
NO^ERROR Procedure 865