Newbie question on ON WARNING
- From: JF Mezei <jfmezei.spamnot@xxxxxxxxxxxxx>
- Date: Wed, 02 Jul 2008 00:11:33 -0400
Generally speaking, in DCL procedures, the ON conditions are not
stacked. When one issues a second ON WARNING in a procedure, it replaces
any previously set ON WARNING condition. And ON condistion are
"consumed" if triggered, you need to re-issue them if necessary.
Does this also apply to subroutines ?
AKA: does an ON WARNING/ERROR command inside a subroutine overwrite one
that was set in the calling code ? When the subroutine exits, does the
previous ON WARNING/ERROR get re-instated ?
Or must the calling code re-establish any/all ON conditions to ensure
the subroutine has not messed with them ?
If the subroutine's ON command overwrites the calling code's, does this
mean that an error/warning happening after the subroutine returns to the
calling code, the calling code would branch to the label inside the
subroutine that had been set while the subroutine executed ?
Similarly, is it correct to state that the ON conditions are stacked
when a command procedure calls andother command procedure with the @
command ?
.
- Follow-Ups:
- Re: Newbie question on ON WARNING
- From: David J Dachtera
- Re: Newbie question on ON WARNING
- From: Christoph Gartmann
- Re: Newbie question on ON WARNING
- Prev by Date: Re: Secure POP on 5.4
- Next by Date: Re: OT: Disturbing thoughts on creation of the universe
- Previous by thread: Secure POP on 5.4
- Next by thread: Re: Newbie question on ON WARNING
- Index(es):
Relevant Pages
|