Syntax
variable := expression ;
variable = expression ;
Variable is the name of a variable declared in the VARIABLES section or the name of a field declared in the FIELDS section.
Purpose
The assignment statement is used to store a new value in a variable or field. The INSERT or UPDATE statement must be used if the new values of the fields are to be stored into the data file.
Example:
amount := 0.0;
count = count + 1;
IF debit_flag THEN
balance := tr_amount;
ELSE
balance := -tr_amount;