Envoy ACP/XF Application Programming Manual
System Procedure Call Specifics for EnvoyACP/XF
EnvoyACP/XF Application Programming Manual–132179
4-14
SETMODE Procedure
The form of the SETMODE procedure is: 
filenum input
 INT:value
is the number returned by the OPEN call that opened the line. In a SETMODE call, 
you supply this variable to EnvoyACP/XF.
function input
 INT:value
is an integer value you use to specify the desired SETMODE function to 
EnvoyACP/XF. Table 4-4
 lists the SETMODE codes.
parameter-1 input
 INT:value
is a subcode you use, along with the function value, to further define the desired 
mode setting operation. Table 4-4 lists the SETMODE codes. 
parameter-2 input
 INT:value
is a subcode you use, along with the function value, to further define the desired 
mode setting operation. Table 4-4
 lists the SETMODE codes.
last-params output
 INT:ref:2
is the name of a two-word integer array into which EnvoyACP/XF places the 
previous values of parameter-1 and parameter-2 for the specified SETMODE 
function. The format of the array is:
last-params[0] = parameter-1 value
last-params[1] = parameter-2 value (if applicable)
If the SETMODE call includes only function and last-params, the specified 
function is not performed. Instead, EnvoyACP/XF fetches the most-recently used 
values of parameter-1 and parameter-2 for the specified function and places 
them into the last-params array.
CALL SETMODE ( filenum !i
 , function !i
 , parameter-1 !i
 , parameter-2 !i
 ,[ last-params ] ); !o










