Guardian Procedure Calls Reference Manual
Errors for WRITEREADX Only
In addition to the errors currently returned from the WRITEREAD procedure, file-system error 22 is
returned when:
• The address of a parameter refers to the selectable segment area but no selectable segment
is in use at the time of the call.
• The address of a parameter is extended, but it is an absolute address and the caller is not
privileged.
• The file system cannot use the user's segment when needed.
Example
In the following example, the INOUT^BUFFER contains the information to be written, and after the
write it contains the information that was read. In this case, 1 byte is to be written, and 72 bytes
are to be read. NUM^READ indicates how many bytes are read into the INOUT^BUFFER:
CALL WRITEREAD ( FILE^NUM, INOUT^BUFFER, 1, 72, NUM^READ );
Related Programming Manuals
For programming information about the WRITEREAD procedure, see the Guardian Programmer's
Guide, the Enscribe Programmer's Guide, and the data communication manuals.
1508 Guardian Procedure Calls (W-Z)