Creating a Buffer on the Data Stack.................142
Creating a Buffer with the MAKEBUF Command ...........143
Dropping a Buffer with the DROPBUF Command ...........144
Finding the Number of Buffers with the QBUF Command ........144
Finding the Number of Elements In a Buffer.............145
Protecting Elements in the Data Stack ................147
Creating a New Data Stack with the NEWSTACK Command ......148
Deleting a Private Stack with the DELSTACK Command ........149
Finding the Number of Stacks ..................149
Chapter 12. Processing Data and Input/Output Processing .......153
Types of Processing ......................153
Dynamic Modification of a Single REXX Expression ...........153
Using the INTERPRET Instruction ................153
Using EXECIO to Process Information to and from Data Sets .......154
When to Use the EXECIO Command ...............154
Using the EXECIO Command ..................154
Return Codes from EXECIO ..................159
When to Use the EXECIO Command ...............159
Chapter 13. Using REXX in TSO/E and Other MVS Address Spaces ...171
Services Available to REXX Execs .................171
Running Execs in a TSO/E Address Space ..............173
Running an Exec in the Foreground................173
Running an Exec in the Background ...............176
Running Execs in a Non-TSO/E Address Space ............177
Using an Exec Processing Routine to Invoke an Exec from a Program 177
Using IRXJCL to Run an Exec in MVS Batch ............178
Using the Data Stack in TSO/E Background and MVS Batch ......180
Summary of TSO/E Background and MVS Batch ............180
CAPABILITIES .......................180
REQUIREMENTS ......................181
Defining Language Processor Environments .............181
What is a Language Processor Environment? ............181
Customizing a Language Processor Environment ...........182
Part 3. Appendixes .............................183
Appendix A. Allocating Data Sets .................185
What is Allocation? .......................185
Where to Begin ........................186
Preliminary Checklist ......................186
Checklist #1: Creating and Editing a Data Set Using ISPF/PDF ......187
Checklist #2: Creating a Data Set with the ALLOCATE Command......190
Checklist #3: Writing an Exec that Sets up Allocation to SYSEXEC .....191
Checklist #4: Writing an Exec that Sets up Allocation to SYSPROC .....192
Appendix B. Specifying Alternate Libraries with the ALTLIB Command 195
Specifying Alternative Exec Libraries with the ALTLIB Command ......195
Using the ALTLIB Command ..................195
Stacking ALTLIB Requests ...................196
Using ALTLIB with ISPF ....................196
Examples of the ALTLIB Command .................196
Appendix C. Comparisons Between CLIST and REXX .........197
Accessing System Information ...................198
vi z/OS V1R1.0 TSO/E REXX User’s Guide