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


Adding Elements to the Data Stack

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

You can store information on the data stack with two instructions, PUSH and QUEUE.
  • PUSH - puts one item of data on the top of the data stack. There is virtually no limit to the length of the data item.
    elem1 = 'String 1 for the data stack'
    PUSH elem1
  • QUEUE - puts one item of data on the bottom of the data stack. Again, there is virtually no limit to the length of the data item.
    elemA = 'String A for the data stack'
    QUEUE elemA
If the two preceding sets of instructions were in an exec, the data stack would appear as follows:
IKJC3X03
Note: Some people find it less confusing when adding elements in a particular order to the data stack, to consistently use the same instruction, either PUSH or QUEUE, but not both.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014