Predefined Variables. CA CA TPX Session Management
Reklama
Reklama
Predefined Variables
&D(1)(3,2) Returns the value of the two characters in the third and fourth positions of the first element of
&D
TR
&D(1)(2,1)&D(2) Returns the second character in the first element of &D and the contents of &D(2)
XPOINT
Predefined Variables
ACL/E provides predefined variables that can be used to represent values such as user input, the current time, and the current date.
For a description of ACL/E's predefined variables, see the appendix
Predefined Variables
(see page 157).
User-defined Variables
User-defined variables are variables you can define to represent values that you need to run a specific program. After you have defined a variable, you can assign a value to it with the SET command. There are three types of user-defined variables:
■
Persistent variables exist as long as the user has an active CA TPX session. They are accessible from any ACL/E program in any session. You define persistent variables with the UDEFINE command and delete them with the UDELETE command.
■
■
Transient variables exist only for the life of the ACL/E program in which they are defined. They are accessible only from the current ACL/E program and its subroutines. You define transient variables with the VDEFINE command and delete them with the VDELETE command.
Global variables are defined as CA TPX global variables. They are accessible by any
ACL/E program and remain until they are deleted by a program. You define global variables with the GDEFINE command and delete them with the GDELETE command.
88 ACL/E Programming Guide
Stáhnout
Reklama