Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (S)
Guardian Procedure Calls Reference Manual—522629-013
14-106
SETMODENOWAIT Procedure
tag input
INT(32):value
is for nowait I/O only.
tag is a value you define that uniquely identifies the
operation associated with this SETMODENOWAIT.
Condition Code Settings
< (CCL) indicates that an error occurred (call FILE_GETINFO_ or FILEINFO).
= (CCE) indicates that the SETMODENOWAIT is successful.
> (CCG) indicates that the SETMODENOWAIT function is not allowed for this
device type.
Considerations
•
File opened with wait depth > 0
AWAITIO[X] must be called to complete the call when
filenum is opened with a
wait depth greater than 0. For files with wait depth equal to 0, a call to
SETMODENOWAIT is a waited operation and performs in the same way as a call
to SETMODE.
•
last-params and AWAITIO[X]
AWAITIO returns @
last-params in the buffer parameter (AWAITIOX returns
the extended address of
last-params). The count is undefined.
Example
LITERAL SET^SPACE = 6,
NO^SPACE = 0,
SPACE = 1;
.
.
CALL SETMODENOWAIT ( FILE^NUM , SET^SPACE , SPACE );
! turns off single spacing for a line printer.
Note. The system stores the tag value until the I/O operation completes. The system then
returns the tag information to the program in the tag parameter of the call to AWAITIO[X],
thus indicating that the operation completed.