Previous Topic: Define and Delete VariablesNext Topic: Define Variable with a SET Statement


ACL/E User-defined Variables

A thorough understanding of how ACL/E user-defined variables work will help you to use them more efficiently.

  1. If you use a UDEFINE statement to define a variable and then use a VDEFINE statement to define a variable with the same name, a SET statement will update only the variable defined with the VDEFINE statement. Therefore, if the variable is used in another ACL/E program, the value will not be passed to the called program.
  2. If you use a GDEFINE statement to define a variable and then use a UDEFINE statement to define a variable with the same name, a SET statement will update only the variable defined with the UDEFINE statement. The new value will not be passed to the CA TPX global symbol table.
  3. If you use a VDEFINE statement to define a variable and call another ACL/E program that uses a VDEFINE statement to define the same variable, the two variables will be treated as separate variables.

    If you want to pass the value of a variable to a called program, use a UDEFINE or GDEFINE statement to define the variable.