Chapter 7. Manipulating Data ...................85
Using Compound Variables and Stems ................85
What is a Compound Variable? ..................85
Using Stems .........................86
Parsing Data..........................87
Instructions that Parse .....................88
Ways of Parsing .......................89
Parsing Multiple Strings as Arguments ...............92
Part 2. Using REXX .............................95
Chapter 8. Entering Commands from an Exec ............97
Types of Commands .......................97
Issuing TSO/E Commands from an Exec ...............98
Using Quotations Marks in Commands ...............98
Using Variables in Commands ..................99
Causing Interactive Commands to Prompt the User ..........100
Invoking Another Exec as a Command...............100
Issuing Other Types of Commands from an Exec ............101
What is a Host Command Environment? ..............101
Changing the Host Command Environment .............106
Chapter 9. Diagnosing Problems Within an Exec ...........111
Debugging Execs .......................111
Tracing Commands with the TRACE Instruction ...........111
Using REXX Special Variables RC and SIGL ............112
Tracing with the Interactive Debug Facility .............113
Chapter 10. Using TSO/E External Functions ............119
TSO/E External Functions ....................119
Using the GETMSG Function ..................120
Using the LISTDSI Function ..................120
Using the MSG Function ....................122
Using the MVSVAR Function ..................123
Using the OUTTRAP Function ..................123
Using the PROMPT Function ..................124
Using the SETLANG Function ..................125
Using the STORAGE Function..................126
Using the SYSCPUS Function ..................126
Using the SYSDSN Function ..................126
Using the SYSVAR Function ..................127
Additional Examples ......................130
Function Packages .......................133
Search Order for Functions ...................134
Chapter 11. Storing Information in the Data Stack ..........135
What is a Data Stack? .....................135
Manipulating the Data Stack ...................136
Adding Elements to the Data Stack ................136
Removing Elements from the Stack ................137
Determining the Number of Elements on the Stack ..........137
Processing of the Data Stack ...................139
Using the Data Stack ......................140
Passing Information Between a Routine and the Main Exec .......140
Passing Information to Interactive Commands ............142
Issuing Subcommands of TSO/E Commands ............142
Contents v