EasyManuals Logo
Home>IBM>Computer Hardware>TSO/E REXX

IBM TSO/E REXX User Manual

IBM TSO/E REXX
242 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #154 background imageLoading...
Page #154 background image
As shown in the following figure, the data stack that REXX uses combines the
techniques used in adding elements to stacks and queues. Elements can be placed
on the top or the bottom of a data stack. Removal of elements from the data stack,
however, occurs from the top of the stack only.
Manipulating the Data Stack
There are several REXX instructions that manipulate the data stack. Two
instructions add elements to the data stack and another removes elements from the
data stack.
Adding Elements to the Data Stack
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:
What is a Data Stack?
136
z/OS V1R1.0 TSO/E REXX User’s Guide

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM TSO/E REXX and is the answer not in the manual?

IBM TSO/E REXX Specifications

General IconGeneral
BrandIBM
ModelTSO/E REXX
CategoryComputer Hardware
LanguageEnglish

Related product manuals