Previous Topic: ACL/E User-defined VariablesNext Topic: Define Variable for Uppercase Data


Define Variable with a SET Statement

You can use a SET statement to define a variable in an ACL/E program. The length of a variable defined with a SET statement is set to the length of the initial value of the variable. You can also clear the variable by assigning it a null value.

For example, the following statements define a variable and give it a null value:

SET AVAR,'12345678'      CREATE A VARIABLE WITH LENGTH 8 
                         * AND A VALUE OF '12345678' 
SET AVAR,''              RESET THE VALUE OF AVAR TO NULLS