Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (S)
Guardian Procedure Calls Reference Manual522629-013
14-67
SETMODE Procedure
Syntax for TAL Programmers
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 14-4
on page 14-68.
param1 input
INT:value
is one of the parameters listed in Table 14-4
on page 14-68. 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 14-4
on page 14-68. 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
< (CCL) indicates that an error occurred (call FILE_GETINFO_ or FILEINFO).
CALL SETMODE ( filenum ! i
,function ! i
,[ param1 ] ! i
,[ param2 ] ! i
,[ last-params ] ); ! o