SET

Assign a value to a set of variables

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
SET variable[, ...] = expression

variable

One or more variables to which a value will be assigned. All variables within a single SET statement must be the same data type.

expression

An expression whose result is assigned to each of the variables in the SET statement.

The SET statement assigns a single value to one or more variables, which is useful if you have a large set of variables to assign to the same value.

Tip

We recommend using the SET statement rather than individually assigning the same value to ­multiple fields.

The data type for expression must be compatible with the data type for variable.

set dflag1, dflag2, dflag3 = 1