6100 ADCCP Programming Manual

Application Tasks
Writing Applications that Use ADCCP
069225 Tandem Computers Incorporated 4–11
SETMODE Procedure
The SETMODE procedure is used to set device-dependent functions. For ADCCP,
you will probably only need SET MODE 30, if you need other SET MODE functions,
Refer to the System Procedure Calls Reference Manual for a complete list of the
SETMODE function codes.
A call to the SETMODE procedure is rejected with an error indication if incomplete
nowait operations are pending on the specified file.
CALL SETMODE (
filenum
!i
,
function
!i
, [
parameter-1
] ) !i
filenum
input
INT:value
is the number returned by the OPEN call that opened the line and identifies it as
the file to receive the SETMODE
function
.
function
input
INT:value
is an integer value that specifies the desired SETMODE function. I/O operations
are allowed to finish in any order when
function
has a value of 30.
parameter-1
input
INT:value
is a subcode used in conjunction with
function
to further define the desired
mode setting operation. For a
function
value of 30,
parameter-1
is as
follows:
Value Description
0 I/O operations are not allowed to
complete in any order (default) .
1 Allow I/O operations to complete in
any order
If parameter-1 is set to 1, nowait operations do not necessarily finish in the order in
which the I/O process returns them. (Operations that finish in time for AWAITIO
to collect their output return in the order issued.)