TAL Reference Manual

TAL Reference Manual526371-001
10-1
10 Equivalenced Variables
Equivalencing lets you declare more than one identifier and description for a location in
a primary storage area. Equivalenced variables that represent the same location can
have different data types and byte-addressing and word-addressing attributes. You
can, for example, reference an INT(32) variable as two separate words or four
separate bytes.
This section describes the syntax for declaring:
Equivalenced variables—Variables equivalenced to a previous variable
Base-address equivalenced variables—Variables equivalenced to a global, local,
or top-of-stack base address
Other equivalencing information appears in the TAL manual set as follows:
Equivalenced Variable Declarations
The variables you can equivalence to another variable are listed in Table 10-1. You can
equivalence any variable in the first column to any variable in the second column. (You
cannot equivalence an array to another variable.)
Information Manual Section/ Appendix
Accessing
equivalenced
variables
TAL Programmer’s Guide 10, “Using Equivalenced
Variables
Equivalencing to
indexed or offset
variables
TAL Programmer’s Guide 10, “Using Equivalenced
Variables
Redefinitions
(equivalencing within
structures)
TAL Programmer’s Guide
TAL Reference Manual
8, “Using Structures”
Section 8, Structures
(syntax)
'SG'-equivalencing TAL Reference Manual Section 15, Privileged
Procedures
Table 10-1. Equivalenced Variables
Equivalenced (New) Variable Previous Variable
Simple Variable Simple Variable
Simple Pointer Simple Pointer
Structure Structure
Structure Pointer Structure Pointer
Array
Equivalenced Variable