<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DCL error checking in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956392#M82854</link>
    <description>I like the EZ explanation.  (I don't think&lt;BR /&gt;that I ever read the HELP ON * carefully&lt;BR /&gt;before.)</description>
    <pubDate>Tue, 06 Mar 2007 09:42:23 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2007-03-06T09:42:23Z</dc:date>
    <item>
      <title>DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956387#M82849</link>
      <description>I have a script to back up a bunch of directories.&lt;BR /&gt;&lt;BR /&gt;At the top of the script I have:&lt;BR /&gt;       on error then goto done&lt;BR /&gt;&lt;BR /&gt;In the backup loop I have&lt;BR /&gt;       on warning then continue&lt;BR /&gt;&lt;BR /&gt;The other day, we had a parity error, and the backup just kept going. Parity is a fatal error, why did it not execute the 'On Error' statement.</description>
      <pubDate>Tue, 06 Mar 2007 08:50:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956387#M82849</guid>
      <dc:creator>Aaron Lewis_1</dc:creator>
      <dc:date>2007-03-06T08:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956388#M82850</link>
      <description>It's not always easy to diagnose an invisible&lt;BR /&gt;command procedure with a vague description of&lt;BR /&gt;its behavior.&lt;BR /&gt;&lt;BR /&gt;BACKUP /NOASSIST?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Parity is a fatal error [...]&lt;BR /&gt;&lt;BR /&gt;Perhaps not to DCL.  What did BACKUP do when&lt;BR /&gt;the error occurred?  What was its exit&lt;BR /&gt;status (if it actually exited)?</description>
      <pubDate>Tue, 06 Mar 2007 09:25:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956388#M82850</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-03-06T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956389#M82851</link>
      <description>If you look at the help on "ON":&lt;BR /&gt;&lt;BR /&gt;       If you specified an error condition as the condition parameter,&lt;BR /&gt;       the action is taken when errors equal to or greater than the&lt;BR /&gt;       specified level of error occur.&lt;BR /&gt;&lt;BR /&gt;I would say your "on warning then continue" superceded the "on error then goto done" that you executed beforehand.&lt;BR /&gt;&lt;BR /&gt;If you really want to control this better, use SET NOON then test the status code after each backup command.&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Mar 2007 09:35:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956389#M82851</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2007-03-06T09:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956390#M82852</link>
      <description>Steven, the backup is noassit, parity is a falal error. &lt;BR /&gt;&lt;BR /&gt;%BACKUP-S-COPIED, copied $1$DGA111:[UNV$I.;1&lt;BR /&gt;%BACKUP-S-COPIED, copied $1$DGA111:[UNV]BOSFE.COM;1&lt;BR /&gt;%BACKUP-E-FATALERR, fatal error on MKC600:[]FM1627.BCK;&lt;BR /&gt;-SYSTEM-F-PARITY, parity error&lt;BR /&gt;&lt;BR /&gt;The backup loop just kept going, even though it was still getting more fatal errors. I received 1 of the positioning errors for each directory in the loop, after the initial parity error&lt;BR /&gt; &lt;BR /&gt;%BACKUP-F-POSITERR, error positioning MKC600:[000000]FM1627.BCK;&lt;BR /&gt;-SYSTEM-F-OPINCOMPL, operation is incomplete&lt;BR /&gt; &lt;BR /&gt;%BACKUP-F-POSITERR, error positioning MKC600:[000000]FM1627.BCK;&lt;BR /&gt;-SYSTEM-F-OPINCOMPL, operation is incomplete&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Mar 2007 09:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956390#M82852</guid>
      <dc:creator>Aaron Lewis_1</dc:creator>
      <dc:date>2007-03-06T09:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956391#M82853</link>
      <description>Aaron, why don't you put a "set verify" in the start and at the end "set noverify" and post the output here along with the command file.....it takes only few mins to catch it :)&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Mobeen</description>
      <pubDate>Tue, 06 Mar 2007 09:39:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956391#M82853</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2007-03-06T09:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956392#M82854</link>
      <description>I like the EZ explanation.  (I don't think&lt;BR /&gt;that I ever read the HELP ON * carefully&lt;BR /&gt;before.)</description>
      <pubDate>Tue, 06 Mar 2007 09:42:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956392#M82854</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-03-06T09:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956393#M82855</link>
      <description>We do issue a SET NOON before backup and run the backup inside a tmp. commandfile with&lt;BR /&gt;@'tmp'/out=...&lt;BR /&gt;After the backup the procedure scans through the output file to check for errors and other useful information (e.g. compression rates).&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Tue, 06 Mar 2007 09:44:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956393#M82855</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2007-03-06T09:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956394#M82856</link>
      <description>Or you could put your "on warning" before the "on error".  Examples:&lt;BR /&gt;&lt;BR /&gt;CLCC1&amp;gt; @a&lt;BR /&gt;$ set ver&lt;BR /&gt;$ a = 1&lt;BR /&gt;$ on warning then continue&lt;BR /&gt;$ on error then goto err&lt;BR /&gt;$  backup  x.zzz x.sav/sav&lt;BR /&gt;%BACKUP-W-NOFILES, no files selected from SYS$USERS:[EZAMORA]X.ZZZ;*&lt;BR /&gt;$ write sys$output "continued"&lt;BR /&gt;continued&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;CLCC1&amp;gt; @a&lt;BR /&gt;$ set ver&lt;BR /&gt;$ a = 1&lt;BR /&gt;$ on warning then continue&lt;BR /&gt;$ on error then goto err&lt;BR /&gt;$  backup  x.x mkz666:x.sav/sav&lt;BR /&gt;%BACKUP-F-PARSE, error opening MKZ666:[EZAMORA]X.SAV;&lt;BR /&gt;-RMS-F-DEV, error in device name or inappropriate device type for operation&lt;BR /&gt;$ err:&lt;BR /&gt;$ write sys$output "went to err"&lt;BR /&gt;went to err&lt;BR /&gt;$ exit</description>
      <pubDate>Tue, 06 Mar 2007 10:03:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956394#M82856</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2007-03-06T10:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956395#M82857</link>
      <description>Aaron,&lt;BR /&gt;&lt;BR /&gt;if you want different banches teken on different error levels in DCL, you will simply have to specify them in ascending order of severity (as per the HELP text reproduced by Edgar)&lt;BR /&gt;&lt;BR /&gt;$ on warning then &lt;WARNING action="https://community.hpe.com/"&gt;&lt;BR /&gt;$ on error then &lt;ERROR action="https://community.hpe.com/"&gt;&lt;BR /&gt;$ on severe_error then &lt;SEVERE action="https://community.hpe.com/"&gt;&lt;BR /&gt;&lt;BR /&gt;The latter supercedes any former, but only on greater severity.&lt;BR /&gt;&lt;BR /&gt;Reverse the order, and the later supercedes all previous.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;/SEVERE&gt;&lt;/ERROR&gt;&lt;/WARNING&gt;</description>
      <pubDate>Fri, 16 Mar 2007 15:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956395#M82857</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-03-16T15:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956396#M82858</link>
      <description>My understanding is that the last ON command or the last SET NOON command wins.  That there's no concept of multiple parallel ON levels within DCL.&lt;BR /&gt;&lt;BR /&gt;Assume the following example and note the following deliberately bogus command xyzzy.  This bogus verb should trigger a warning error.&lt;BR /&gt;&lt;BR /&gt;$ on warning then goto w&lt;BR /&gt;$ on error then goto e&lt;BR /&gt;$ on severe_error then goto s&lt;BR /&gt;$ xyzzy&lt;BR /&gt;$ write sys$output "done"&lt;BR /&gt;$ exit&lt;BR /&gt;$w: write sys$output "warning"&lt;BR /&gt;$ exit&lt;BR /&gt;$e: write sys$output "error"&lt;BR /&gt;$ exit&lt;BR /&gt;$s: write sys$output "severe"&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;If there were multiple levels, you'd expect to end up at the warning label here, but you actually end up at the done label -- this because the warning severity is less than the most recently declared ON severity level.&lt;BR /&gt;&lt;BR /&gt;If what had been posted earlier had a goto rather than the continue, this behavior might have been more obvious.  In the above DCL example, not that the warning branch is not taken; the processing falls through to done.&lt;BR /&gt;&lt;BR /&gt;I might well be wrong here, as this is DCL after all...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Mar 2007 16:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956396#M82858</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-03-16T16:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956397#M82859</link>
      <description>Yes, EZ's first response was good.  Then he&lt;BR /&gt;"improved" it.  Carefully read, the HELP does&lt;BR /&gt;seem to be accurate, but it's less clear than&lt;BR /&gt;it could have been about the lack of&lt;BR /&gt;hierarchy in the "condition" parameter.</description>
      <pubDate>Fri, 16 Mar 2007 18:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956397#M82859</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-03-16T18:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956398#M82860</link>
      <description>Try the example I posted.&lt;BR /&gt;&lt;BR /&gt;Based on what I see, ON mumble-lower THEN CONTINUE followed by any ON mumble-higher does not appear not meaningful; based on the test I tried, it's not the CONTINUE that's triggering here (otherwise the GOTO in the example would have fired), it's the ON mumble-higher that's suppressing the error branch for mumble-lower, and implicitly causing the appearance of a CONTINUE.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Mar 2007 19:50:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956398#M82860</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-03-16T19:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956399#M82861</link>
      <description>Hoff, you are correct. i modified EZs example with a goto on the warning, and the script just contined to run. So the ON command only supports a single level of error checking. I will need to add in $STATUS or $SEVERITY checks.</description>
      <pubDate>Thu, 29 Mar 2007 06:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956399#M82861</guid>
      <dc:creator>Aaron Lewis_1</dc:creator>
      <dc:date>2007-03-29T06:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: DCL error checking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956400#M82862</link>
      <description>Hoff is right (of course).  I verified by using a goto instead of continue.  I apologize for my incorrect second response.</description>
      <pubDate>Thu, 29 Mar 2007 08:40:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-error-checking/m-p/3956400#M82862</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2007-03-29T08:40:04Z</dc:date>
    </item>
  </channel>
</rss>

