home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!U.WASHINGTON.EDU!DEREK
- From: DEREK@U.WASHINGTON.EDU
- Newsgroups: comp.os.vms
- Subject: Re: MOVE for Vms anywhere ?
- Message-ID: <A79E5D257C1F203CC8@MAX.U.WASHINGTON.EDU>
- Date: 23 Dec 92 23:44:00 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 33
-
- In this thread Kent Gabrin wrote:
-
- > Default in a command procedure is ON WARNING THEN CONTINUE and
- >ON ERROR (and SEVERE_ERROR) THEN EXIT.
- >
- >( I learned that back in 1980 reading page 5-18 chapter 5.7.4.2 in the
- >book 'VAX/VMS Command Language User's Guide VAX/VMS V01.5' ;-) )
-
- Actually, I believe it is
-
- $ ON ERROR THEN $ EXIT
-
- which causes WARNINGs to be ignored. Granted, this seems to be what Kent
- described, but it really isn't. Ken't wording may lead some to produce
- code such as I have seen many command procedures, to wit:
-
- $ ON WARNING THEN $ GOTO WARNING_HANDLER
- $ ON ERROR THEN $ GOTO ERROR_HANDLER
- $ ON SEVERE_ERROR THEN $ GOTO FATAL_HANDLER
-
- Note that only the last "ON condition" statement will be effective. (It seems
- to me that this *used* to work, away back when, but it was never documented
- that way.) Also note that the "ON CONTROL_Y" is a different condition.
-
- -Derek S. Haining
- University Computing Services
- University of Washington
- Seattle, Washington 98195
- (206) 543-5579
-
- DEREK@MAX.BITNET
- DEREK@MAX.U.WASHINGTON.EDU
-
-