Guardian Programming Reference Summary for C
SETMODE Operations
Guardian Programming Reference Summary for C—522630-001
11-9
29 Line printer (subtype 3, 4, 6, or 32): Set automatic answer mode or control
answer mode.
param1
bit 15 = 0 CTRLANSWER
= 1 AUTOANSWER (default)
The default mode is what was specified at SYSGEN; if no mode is specified at
SYSGEN, then AUTOANSWER is used.
Theparam2 parameter is not used with function 29.
Note:
SETMODE function 29 remains in effect even after the file is closed.
SETMODE 29 is the only SETMODE function not affected by a SETMODE 28.
SETMODE 29 is not reset at the beginning of each new job. Therefore, you
should always issue a SETMODE 29 at the beginning of your job to ensure that
you are in the desired mode (rather than in the mode left by the previous job).
30 Allow nowait I/O operations to finish in any order.
param1 = 0 complete operations in the order they were originally requested
(default).
= 1 complete operations in any order, except that if more than one
operation is ready to finish at the time of the AWAITIO[X] call,
then complete them in the order they were requested.
= 3 complete operations in any order (that is, in the order chosen by
the system).
Theparam2 parameter is not used with function 30 and should be zero if
supplied.
31 Set packet mode
param1
bit 0 = 0 ignore param2.
= 1 param2 specifies leading packet size.
param2 = 0 use default packet size for transmission (default).
> 0 is size of first outgoing packet in each WRITE or WRITEREAD
request. It must be smaller than the configured packet size.
32 Set X.25 call setup parameters
param1
bit 0 = 0 do not accept charge.
= 1 accept charge.
bit 1 = 0 do not request charge.
= 1 request charge.
bit 2 = 0 is normal outgoing call.
= 1 is priority outgoing call.
bits 8-15 = port number (0-99)