Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
QSTACK z/OS TSO/E REXX Reference SA32-0972-00 |
|||||||||||||
>>-QSTACK------------------------------------------------------>< queries the number of data stacks in existence for an exec that is running. QSTACK returns the number of data stacks in the REXX special variable RC. The value QSTACK returns indicates the total number of data stacks, including the original data stack. If you have not issued a NEWSTACK command to create a new data stack, QSTACK returns 1 in the special variable RC for the original data stack. You can use the QSTACK command in REXX execs that run in both the TSO/E address space and in non-TSO/E address spaces. QSTACK returns the current number of data stacks created by an exec and by other routines (functions and subroutines) the exec calls. You can issue QSTACK from the calling exec or from a called routine. For example, if an exec issues one NEWSTACK command and then calls a routine that issues another NEWSTACK command, and none of the new data stacks are deleted with the DELSTACK command, QSTACK returns 3 in the REXX special variable RC. The following table shows how QSTACK sets the REXX special variable RC.
Examples
|
Copyright IBM Corporation 1990, 2014
|