Description
Defines the value of an environment attribute or list of attributes for the current database.
Syntax
Set_Env (attributelist, valuelist, transactflag)
Parameters
The Set_Env routine has the following parameters.
Parameter | Description |
---|---|
attributelist | One or more attribute identifiers from the list of attributes in the table following the description of this command. |
valuelist | Specifies a value for each attribute identifier defined in attributelist. |
transactflag | If true (1), all values in valuelist must be valid or no attributes are set. If transactflag is false (0) or null, valid attributes are set and invalid attributes are ignored. A column is returned for each attribute in attributelist. If a valid value is provided, the column is true (1). If an invalid value is provided, the column is false (0). |
See also
Get_Env, ENVIRON_CONSTANTS insert record
Remarks
For examples of finding the current environment settings, see Get_Env.
Example (disabling the debugger)
/* in this example, the debug statement does not go to the debugger because the debugger is disabled */ $insert environ_constants declare subroutine set_env on_off = 0 t_flag = 1 set_env(ENV_DEBUGGER_ENABLED$, on_off, t_flag) debug