Link to this page
Print this page
Parent topic
:
Language basics
Language basics
Variables
Explains how to define program variables.
Understanding variables
DEFINE
A variable contains volatile information of a specific data type.
Declaration context
Structured types
Database column types
User defined types
Variable initialization values
INITIALIZE
The
INITIALIZE
instruction intializes program variables with NULL or default values.
LOCATE (for TEXT/BYTE)
The
LOCATE
statement specifies where to store data of
TEXT
and
BYTE
variables.
FREE (for TEXT/BYTE)
The
FREE
statement releases resources allocated to the specified variable.
LET
The
LET
statement assigns values to variables.
VALIDATE
The
VALIDATE
instructions checks a variable value according to schema validation rules.
THRU operator
The
THRU
keyword can be used to specify a range of members of a record.
Examples