

Programming Tips › Define and Delete Variables › ACL/E User-defined Variables
ACL/E User-defined Variables
A thorough understanding of how ACL/E user-defined variables work will help you to use them more efficiently.
- 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.
- 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.
- 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.
Copyright © 2013 CA.
All rights reserved.
 
|
|