Guardian Procedure Calls Reference Manual

Parameters
filenum
input
INT:value
is a number of an open file that identifies the file to receive the SETMODE function.
function
input
INT:value
is one of the device-dependent functions listed in Table 44 (page 1319).
param1
input
INT:value
is one of the parameters listed in Table 44 (page 1319). If omitted, for a disk file the present
value is retained. For SETMODEs on other devices, this value depends on the device and the
value supplied in the function parameter.
param2
input
INT:value
is one of the parameters listed in Table 44 (page 1319). If omitted, the present value is retained
for disk files; for SETMODEs on other devices, this value depends on the device and the value
supplied in the function parameter.
last-params
output
INT:ref:2
returns the previous settings of param1 and param2 associated with the current function.
The format is:
last-params[0] = old param1
last-params[1] = old param2 (if applicable)
Condition Code Settings
indicates that an error occurred (call FILE_GETINFO_ or FILEINFO).< (CCL)
indicates that the SETMODE is successful.= (CCE)
indicates that the SETMODE function is not allowed for this device type.> (CCG)
1318 Guardian Procedure Calls (S)