Compound symbols let you establish an accurate and efficient way to address values. By design, they are a good way to implement tables or arrays.
An OPS/REXX compound symbol is a named object that you can assign a value or data to. It is a powerful kind of variable because one or more variables can be included in the name of the compound symbol itself. In other words, what makes a compound symbol unique is that a portion of the name of the compound symbol itself can be a variable.
Let us back up a little. Typically, the name of the most simple type of a variable is an identifiable constant; most likely a character string.
On the other hand, consider a variable that is a compound symbol:
Example: Compound Symbols
An analogy of this is the address system of a city.
In this analogy:
For more information about compound symbols, see THE REXX LANGUAGE: A Practical Approach to Programming by M.F. Cowlishaw (Prentice Hall, 1990).
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |