Guardian Procedure Calls Reference Manual

reply-error-code
input
INT:value
(for $RECEIVE file only) if present, is a file-system error to return to the requesting process by
REPLY. If omitted, 0 is returned.
forms-control-code
input
INT:value
(optional) indicates a forms-control operation to be performed before executing the actual
WRITE when the file is a process or a line printer. The forms-control parameter corresponds
to parameter of the file-system CONTROL procedure for operation equal to 1. No forms
control is performed if forms-control is omitted, if it is -1, or if the file is not a process or
a line printer.
nowait
input
INT:value
if present, indicates whether to wait in this call for the I/O to complete. If omitted or zero, then
wait is indicated. If nowait is not zero, the I/O must be completed in a call to WAIT^FILE.
Returned Value
INT
A file-system or sequential I/O (SIO) error code that indicates the outcome of the call.
If abort-on-error mode (the default ) is in effect; the only possible error codes are:
No error.0
Operation aborts because of BREAK (if BREAK is enabled).111
If nowait is not 0 when abort-on-error mode is in effect, the only possible error code is 0.
Example
CALL WRITE^FILE ( OUT^FILE, BUFFER, COUNT );
Related Programming Manual
For programming information about the WRITE^FILE procedure, see the Guardian Programmer's
Guide.
1498 Guardian Procedure Calls (W-Z)