z/OS TSO/E REXX User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using Compound Variables and Stems

z/OS TSO/E REXX User's Guide
SA32-0982-00

Sometimes it is useful to store groups of related data in such a way that the data can be easily retrieved. For example, a list of employee names can be stored in an array and retrieved by number. An array is an arrangement of elements in one or more dimensions, identified by a single name. You could have an array called employee that contains 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 access an element in the array by the number of the element, such as, employee(1), which retrieves Adams, Joe. In REXX, you use compound variables.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014