Guardian Procedure Calls Reference Manual
Table 8 CHECK^FILE Operations That Return Values
retvalState of Fileoperation
if the process is not to abort upon detection of a fatal
error in the file.
0OpenFILE^ABORT^XFERERR
if the process is to abort.1
Returns the high-order word of the ASSIGN message field mask
in the FCB. This value generally has meaning only after being
set by the INITIALIZER procedure.
AnyFILE^ASSIGNMASK1
Returns the high-order word of the ASSIGN message field mask
in the FCB. This value generally has meaning only after being
set by the INITIALIZER procedure.
AnyFILE^ASSIGNMASK1
Returns a count of the number of bytes used for blocking.AnyFILE^BLOCKBUFLEN
if the break hit bit is equal to 0 in the FCB.0AnyFILE^BREAKHIT
if the break hit bit is equal to 1 in the FCB.1
The break hit bit is an internal indicator normally used only
by the SIO procedures.
NOTE: When using the break-handling procedures, do not
use FILE^BREAKHIT to determine whether the BREAK key has
been pressed. Instead, the CHECK^BREAK procedure must be
called.
Returns the value of the checksum word in the FCB.AnyFILE^CHECKSUM
Returns a count of the number of bytes transferred in the latest
physical I/O operation.
OpenFILE^COUNTXFERRED
if a file was not created by OPEN^FILE.0OpenFILE^CREATED
if a file was created by OPEN^FILE.1
if no CR/LF sequence is to be issued to the terminal
upon break detection.
0OpenFILE^CRLF^BREAK
if this sequence is to be issued.1
Returns the EDIT line increment to be added to successive line
numbers for lines that are added to the file. The value is 1000
times the line number increment value.
OpenFILE^EDITLINE^INCREMENT
Returns the error number of the latest error that occurred within
the file.
AnyFILE^ERROR
Returns the file format type. Returns 1 for format 1 files and 2
for format 2 files.
OpenFILE^FILEFORMAT
<file-info>, whereOpenFILE^FILEINFO
<file-info>.<0:3> = File type:
= Unstructured0
= Relative1
= Entry-sequenced2
= Key-sequenced3
= EDIT4
= Odd unstructured8
= Device type<4:9>
= Device subtype<10:15>
124 Guardian Procedure Calls (C)