Let's consider the situation where you are using BAKR/PR
to save/restore the current registers without having to
manage your own stack (very handy.)
Now, let's consider the situation where you'd like to
essentially "clean up" this stack and restore the state
to a previous location.
Something like:
remember my stack pointer (state #1)
HERE: DS 0H
BAKR
BAKR
....
BAKR
Ooops - some error happened.
don't PR, instead restore the state to state #1
to "branch back" to the higher-level stack.
(because of, say, some error condition...)
and branch back to HERE.
I know CR15 holds the stack-pointer, but changing
that would require authorization... and I imagine
z/OS is going to want to clean-up intervening
program-stack states.
Since this would need to be authorized, are there
any z/OS macros to save and restore the current
state of the program-stack?
- Thanks -
- Dave R. -
--
[email protected] Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN