Enform Plus Reference Manual

Statements
Enform Plus Reference Manual422684-001
4-41
SET Statement
SET Statement
The SET statement allows you to initialize or reset a user variable, user table, or a
parameter. The SET statement also allows you to reset option variables. The syntax of
the SET statement is:
user-variable-name or user-table-name "["subscript"]"
is the name of an element defined by a DECLARE statement.
param-name
is the name of a parameter defined by a PARAM statement.
string-literal
is one or more alphanumeric characters enclosed within quotation marks.
unsigned-digit
is an unsigned numeric literal.
option-variable-name
is the name of an option variable.
numeric-literal
is an integer.
display-format
is the default display format enclosed in quotation marks for printing dates or times
when AS DATE * and AS TIME * clauses are used.
Initializing User-Defined Elements
When initializing a user variable, user table, or a parameter, specify values that are
consistent with the internal format type. If the internal format type is alphanumeric,
specify a string literal; if the internal format type is numeric, specify a numeric literal. In
{ { user-variable-name } [ string-literal ] }
{ { user-table-name } [TO] [ ] }
{ { "["subscript"]" } [ number-literal ] }
{ { param-name } }
SET { { ON }
{ { OFF } }
{ option-variable-name [TO] { unsigned-digit } }
{ { string-literal } }
{ { display-format } }