home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19812 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.5 KB

  1. 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
  2. From: DEREK@U.WASHINGTON.EDU
  3. Newsgroups: comp.os.vms
  4. Subject: Re: MOVE for Vms anywhere ?
  5. Message-ID: <A79E5D257C1F203CC8@MAX.U.WASHINGTON.EDU>
  6. Date: 23 Dec 92 23:44:00 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 33
  11.  
  12. In this thread Kent Gabrin wrote:
  13.  
  14. >   Default in a command procedure is ON WARNING THEN CONTINUE and
  15. >ON ERROR (and SEVERE_ERROR) THEN EXIT.
  16. >( I learned that back in 1980 reading page 5-18 chapter 5.7.4.2 in the
  17. >book 'VAX/VMS Command Language User's Guide VAX/VMS V01.5'   ;-)  )
  18.  
  19. Actually, I believe it is
  20.  
  21.     $ ON ERROR THEN $ EXIT
  22.  
  23. which causes WARNINGs to be ignored.  Granted, this seems to be what Kent
  24. described, but it really isn't.   Ken't wording may lead some to produce
  25. code such as I have seen many command procedures, to wit:
  26.  
  27.     $ ON WARNING      THEN $ GOTO WARNING_HANDLER
  28.      $ ON ERROR        THEN $ GOTO ERROR_HANDLER
  29.     $ ON SEVERE_ERROR THEN $ GOTO FATAL_HANDLER
  30.  
  31. Note that only the last "ON condition" statement will be effective. (It seems
  32. to me that this *used* to work, away back when, but it was never documented
  33. that way.)  Also note that the "ON CONTROL_Y" is a different condition.
  34.  
  35. -Derek S. Haining
  36.  University Computing Services
  37.  University of Washington
  38.  Seattle, Washington  98195 
  39.  (206) 543-5579
  40.  
  41.  DEREK@MAX.BITNET
  42.  DEREK@MAX.U.WASHINGTON.EDU
  43.  
  44.