svar

Purpose:

Set the value of specified variables in the system, supporting REAL, REAL_ARRAY, INTEGER, INTEGER_ARRAY, LOGICAL, LOGICAL_ARRAY, STRING, and STRING_ARRAY types, with checks for dimensional consistency and restrictions on certain variables.

Enter:

svar [-f format] [–updated_by string] [variable_label [value …] | [filename]

Where:

-f format]

Specify a format string for display of the variable value, valid for integer or real types.

–updated_by string

Specify a string to override the last process that updated the variable.

variable_label

Specify the label of the variable to modify. A CSAR variable label may also be specified.

value

Specify the new value for the variable, which can be a number, expression, or another variable label.

filename

Specify a file containing label-value pairs, one per line.

Example:

svar myVariable 10.5

Notes:

Some variables are continuously updated by other processes and may overwrite changes; certain variables like ‘PAM_point’ cannot be set directly and require specific commands.

See Also:

gvar, dumpit. Array Variables