Using Compound Variables and Stems
Sometimes it is useful to store groups of related data in a way that makes data retrieval
easy. For example, you could store a list of employee names in an array and retrieve them by number.
An array is an arrangement of elements in one or more dimensions, identified by a single name. An
array called
employee could contain names as follows:
EMPLOYEE
(1) Adams, Joe
(2) Crandall, Amy
(3) Devon, David
(4) Garrison, Donna
(5) Leone, Mary
(6) Sebastian, Isaac
In some computer languages, you use the number of the element to access an element in an array. For example, employee(1) would retrieve Adams, Joe. In REXX, you use compound variables.