<?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: &amp;quot;QUIT&amp;quot; To BACKUP's &amp;quot;Quit or Continue&amp;quot; Returns No Error Msg in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873378#M85687</link>
    <description>Mike,&lt;BR /&gt;I don't think that logic is correct:&lt;BR /&gt;&lt;BR /&gt;$$ type A.COM&lt;BR /&gt;$ on warning then $ goto XXX&lt;BR /&gt;$ backup a.tmp a.bck/save_set&lt;BR /&gt;$ BCKSTATUS1 = $STATUS&lt;BR /&gt;$ write SYS$OUTPUT "X1"&lt;BR /&gt;$!&lt;BR /&gt;$xxx:&lt;BR /&gt;$ BCKSTATUS2 = $STATUS&lt;BR /&gt;$ show symbol BCKSTATUS*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;gives:&lt;BR /&gt;$$ @a&lt;BR /&gt;%BACKUP-W-NOFILES, no files selected from USER_XYZ:[ZESSIN]A.TMP;*&lt;BR /&gt;  BCKSTATUS2 = "%X10A38400"&lt;BR /&gt;$$ &lt;BR /&gt;&lt;BR /&gt;You see, the assignment to "BCKSTATUS1" after "backup" is not executed.</description>
    <pubDate>Mon, 10 Jan 2005 14:12:55 GMT</pubDate>
    <dc:creator>Uwe Zessin</dc:creator>
    <dc:date>2005-01-10T14:12:55Z</dc:date>
    <item>
      <title>"QUIT" To BACKUP's "Quit or Continue" Returns No Error Msg</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873374#M85683</link>
      <description>We run our nightly tape backups via batch scripts.  Ocassionally a job has a problem&lt;BR /&gt;with the tape or drive and the operator gets&lt;BR /&gt;a msg from BACKUP to respond either "Quit or Continue".  We always have them reply quit and decide what to do next.&lt;BR /&gt;&lt;BR /&gt;The problem I have is that replying Quit causes the job to exit (not abort) with an OK status (which I have confirmed with HP).  We have a process that monitors our batch jobs and looks at completion statuses (via the ACCOUNTING record) and sees these jobs as successful!&lt;BR /&gt;&lt;BR /&gt;Any suggestions on how I can get VMS to recognize a response of QUIT to the BACKUP question as a program error exit?&lt;BR /&gt;&lt;BR /&gt;TIA?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Dec 2004 13:45:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873374#M85683</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2004-12-01T13:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: "QUIT" To BACKUP's "Quit or Continue" Returns No Error Msg</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873375#M85684</link>
      <description>Jack,&lt;BR /&gt;  My experiment - &lt;BR /&gt;&lt;BR /&gt;load a tape in a drive (with the wrong label) &lt;BR /&gt;&lt;BR /&gt;$ BACKUP/ASSIST login.com MKA500:JUNK.BCK/SAVE&lt;BR /&gt;%BACKUP-W-MOUNTERR&lt;BR /&gt;%BACKUP-I-OPERASSIST&lt;BR /&gt;&lt;BR /&gt;The operator message requested "specify option (QUIT, NEW tape or OVERWRITE tape)"&lt;BR /&gt;&lt;BR /&gt;to which I responded "QUIT"&lt;BR /&gt;&lt;BR /&gt;The BACKUP job then continued with&lt;BR /&gt;&lt;BR /&gt;%BACKUP-E-OPREPLY, operator reply is "QUIT"&lt;BR /&gt;%BACKUP-F-ABORT, operator requested abort on fatal error&lt;BR /&gt;$ SHOW SYM $STATUS&lt;BR /&gt;  $STATUS == "%X10A3819C"&lt;BR /&gt;&lt;BR /&gt;Now, even if the severity of whatever condition you're asking about was not -F-, I'm sure the value of $STATUS would give you some clues, at least enough to distinguish between successful jobs, and those terminated by operator intervention (note that this is not necessarily the completion status of the JOB). &lt;BR /&gt;&lt;BR /&gt;So, *immediately* after the BACKUP command, take a copy of $STATUS:&lt;BR /&gt;&lt;BR /&gt;$ BACKUP whatever&lt;BR /&gt;$ stat=$STATUS&lt;BR /&gt;&lt;BR /&gt;It *must* be the very next command after BACKUP. Examine the value, and if you decide it's the result of a QUIT, then you can artifically change the completion status for the job with the EXIT command. For example:&lt;BR /&gt;&lt;BR /&gt;$ EXIT %XA3819C&lt;BR /&gt;&lt;BR /&gt;will make the completion status of the job &lt;BR /&gt;%BACKUP-F-ABORT, operator requested abort on fatal error&lt;BR /&gt;&lt;BR /&gt;How you decide what to do is up to you. You could have a set of completion status values that you consider to be acceptable and fail on anything else, or you could look for specific failure status values.&lt;BR /&gt;&lt;BR /&gt;Rather than use a specific message, you can "convert" any status value to severity -F-. Assume you have the status in symbol "stat":&lt;BR /&gt;&lt;BR /&gt;$ fatal=(stat.AND.%XFFFFFFF8).OR.4 &lt;BR /&gt;$ EXIT 'fatal'&lt;BR /&gt;&lt;BR /&gt;That way you'll keep the information in the message (hopefully telling you more about what actually happened), but still allow your monitor process to realise that the job failed.</description>
      <pubDate>Wed, 01 Dec 2004 20:54:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873375#M85684</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-12-01T20:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: "QUIT" To BACKUP's "Quit or Continue" Returns No Error Msg</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873376#M85685</link>
      <description>Another thing you should be able to do is set a $ on error then goto xxx before the backup command.  At xxx then set a status on the exit which indicates a non-successful job&lt;BR /&gt;ie.&lt;BR /&gt;&lt;BR /&gt;$ on error the goto abort&lt;BR /&gt;$ backup bla bla bla&lt;BR /&gt;$ bkupstatus = $status&lt;BR /&gt;     .&lt;BR /&gt;     .&lt;BR /&gt;$abort:&lt;BR /&gt;$ exit 'bkupstatus&lt;BR /&gt;&lt;BR /&gt;This should set a status that accounting won't interpret as a successful termination</description>
      <pubDate>Mon, 10 Jan 2005 13:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873376#M85685</guid>
      <dc:creator>Mike Ford_2</dc:creator>
      <dc:date>2005-01-10T13:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: "QUIT" To BACKUP's "Quit or Continue" Returns No Error Msg</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873377#M85686</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;Sorry, good idea, but won't work here!&lt;BR /&gt;&lt;BR /&gt;$ ON ERROR evaluates $SEVERITY&lt;BR /&gt;but operator "QUIT" gives a $SEVERITY of "3",&lt;BR /&gt;which is an -I- (informational, or qualified) SUCCESS status, and NOT an error, so it will NOT trigger ON ERROR!&lt;BR /&gt;(read the original post again: that IS what the issue is about).&lt;BR /&gt;&lt;BR /&gt;Carefully apply John's instruction: the FIRST command after BACKUP should be to save $STATUS (or $SEVERITY, the low bits of $STATUS), and evaluate THAT.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jan 2005 14:12:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873377#M85686</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-01-10T14:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: "QUIT" To BACKUP's "Quit or Continue" Returns No Error Msg</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873378#M85687</link>
      <description>Mike,&lt;BR /&gt;I don't think that logic is correct:&lt;BR /&gt;&lt;BR /&gt;$$ type A.COM&lt;BR /&gt;$ on warning then $ goto XXX&lt;BR /&gt;$ backup a.tmp a.bck/save_set&lt;BR /&gt;$ BCKSTATUS1 = $STATUS&lt;BR /&gt;$ write SYS$OUTPUT "X1"&lt;BR /&gt;$!&lt;BR /&gt;$xxx:&lt;BR /&gt;$ BCKSTATUS2 = $STATUS&lt;BR /&gt;$ show symbol BCKSTATUS*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;gives:&lt;BR /&gt;$$ @a&lt;BR /&gt;%BACKUP-W-NOFILES, no files selected from USER_XYZ:[ZESSIN]A.TMP;*&lt;BR /&gt;  BCKSTATUS2 = "%X10A38400"&lt;BR /&gt;$$ &lt;BR /&gt;&lt;BR /&gt;You see, the assignment to "BCKSTATUS1" after "backup" is not executed.</description>
      <pubDate>Mon, 10 Jan 2005 14:12:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873378#M85687</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-01-10T14:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: "QUIT" To BACKUP's "Quit or Continue" Returns No Error Msg</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873379#M85688</link>
      <description>Thanks all</description>
      <pubDate>Mon, 06 Aug 2007 12:24:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-quit-quot-to-backup-s-quot-quit-or-continue-quot-returns-no/m-p/4873379#M85688</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2007-08-06T12:24:15Z</dc:date>
    </item>
  </channel>
</rss>

