Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (R-Z)
Guardian Programming Reference Summary for pTAL and TAL522631-001
8-48
WA I T ^ F I L E
Waits or checks for the completion of an outstanding I/O operation. WAIT^FILE is a
sequential I/O (SIO) procedure and can be used only with files that have been opened by
OPEN^FILE.
WRITE[X]
Writes data from an array in the application program to an open file.
error := WAIT^FILE ( file-fcb
,[ count-read ]
,[ time-limit ] );
error, INT returned value
0No error.
1 End of file.
6 System message (only if user requested system messages through
SET^SYSTEMMESSAGES or SET^SYSTEMMESSAGESMANY).
40 Operation timed out (only if time-limit is supplied and is not -1D).
111 Operation aborts because of BREAK (if BREAK is enabled).
532 Operation restarted.
file-fcb, INT:ref:* input
count-read, INT:ref:* output
time-limit, INT(32):value input
<> 0D Wait for completion.
0D Check for completion.
0D (and error = 40) No completion.
1D Willing to wait forever.
CALL WRITE[X] ( filenum
,buffer
,write-count
,[ count-written ]
,[ tag ] );