Setting the value of an environment variable

The dsadmin command can be used for setting the value of an environment variable in a particular project.

If setting a list type environment variable (for example, APT_EXECUTION_MODE), then you should set it to one of the permissible internal values, rather than one of the list members as they are shown in the Administrator client. For example, if you wanted to set APT_EXECUTION_MODE so that parallel jobs executed in one process mode, you would set the environment variable value to `ONE_PROCESS', not `One process' as offered in the Administrator client.

If you are setting a boolean type environment variable, set the value to 1 for TRUE and 0 for FALSE.

If you are using $ENV to set the value of an environment variable to its current setting in the environment, then you should use single quotation marks to ensure that it picks up the correct value (for example, dsadmin -envset NEW3 -value '$ENV' dstage).


dsadmin -envset EnvVarName -value "Value" ProjectName

EnvVarName is the environment variable whose value is being set.

-value "Value" is the value for the environment variable and must be quoted.

ProjectName is the project for which the environment variable is being set.