home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21895 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!ucbvax!TGV.COM!mcmahon
  2. From: mcmahon@TGV.COM (Midnight at U Street Metro Station)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: DCL: ? Continuing execution after -?- severity message.
  5. Message-ID: <930123170035.44a00553@code-z.tgv.com>
  6. Date: 24 Jan 93 01:00:35 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 32
  11.  
  12. In article <01GTTGNJRFXC00114F@HOPE.CIT.HOPE.EDU> you write:
  13. =>What commands to I need to use to insure that a command 
  14. =>procedure doesn't quit running after any warning/error conditions?
  15.  
  16. $ SET NOON
  17.  
  18. =>I have a procedure which must run to completion even if one of 
  19. =>the commands generates a warning/error condition and at the 
  20. =>beginning I have:
  21. =>
  22. =>$ ON SEVERE_ERROR THEN CONTINUE
  23.  
  24. This sets up a handler for severe errors only.  What you want
  25. is one to handle all conditions.  For that, use the lowest
  26. catagory ON WARNING.
  27.  
  28. You second problem with using ON SEVERE is that once the handler fires,
  29. it's no longer in effect.  The result is the second error will cause
  30. the procedure to exit, unless you execute another ON statement.
  31.  
  32. For your purposes, SET NOON will cover you.  See HELP ON and
  33. HELP SET ON for details.
  34.  
  35. --
  36. John 'Fast-Eddie' McMahon    ()
  37. TGV, Incorporated            () "Any networking problem can be solved by
  38. 603 Mission Street           ()  the application of 33 miles of Unshielded 
  39. Santa Cruz, California 95060 ()  Twisted Pair (UTP)"   
  40. 408-427-4366 or 800-TGV-3440 ()                      [InterOp Spring 1992]
  41. E-Mail: MCMAHON@TGV.COM      ()
  42.  
  43.  
  44.