<?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: How to: On Queue completion send E-mail in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833952#M77997</link>
    <description>Quick example procedure NOTIFY.COM to send an email at completion of the job. Contains some example F$GETQUI calls to get information about the job. Easily modified to send other information, just define a local symbol.</description>
    <pubDate>Mon, 31 Jul 2006 22:29:17 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2006-07-31T22:29:17Z</dc:date>
    <item>
      <title>How to: On Queue completion send E-mail</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833948#M77993</link>
      <description>Hi,&lt;BR /&gt;I have OpenVMS 7.3-2 O.S. &lt;BR /&gt;&lt;BR /&gt;Currently I have the "Mail" utility working. My objective is to now have any of the queues tied up to the Mail utility. So whenever the queue is done I can get an e-mail saying the job is done. &lt;BR /&gt;&lt;BR /&gt;I have been trying to go through sys management and documentation and few books on OpenVMS but I can't seem to figure out set it up in this manner. Can anyone please provide some insight into how I should go about it. &lt;BR /&gt;&lt;BR /&gt;Nipun</description>
      <pubDate>Mon, 31 Jul 2006 08:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833948#M77993</guid>
      <dc:creator>Nipun Patel</dc:creator>
      <dc:date>2006-07-31T08:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to: On Queue completion send E-mail</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833949#M77994</link>
      <description>Nipun,&lt;BR /&gt;&lt;BR /&gt;there is no such functionality built into OpenVMS.&lt;BR /&gt;&lt;BR /&gt;But you can easily write some DCL procedure to do that:&lt;BR /&gt;&lt;BR /&gt;- set up your desired queues with /RETAIN=ALL. This will retain all completed or aborted jobs in the queue.&lt;BR /&gt;&lt;BR /&gt;- write a DCL procedure using the F$GETQUI lexical functions to scan those queues and look for jobs in the RETAINED state. Extract the job information, send mail and delete the retained job entry from the queue.&lt;BR /&gt;&lt;BR /&gt;Volker. &lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jul 2006 08:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833949#M77994</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-07-31T08:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to: On Queue completion send E-mail</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833950#M77995</link>
      <description>Nipun,&lt;BR /&gt;&lt;BR /&gt;there is a nice little example in the OpenVMS DCL Dictionary manual, which uses  F$GETQUI to delete retained jobs from a queue (see example #5):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82FINAL/9996/9996pro_101.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/82FINAL/9996/9996pro_101.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;With a little bit of editing, you should be able to make this example fit your needs. Just add your MAIL command before the DELETE/ENTRY command...&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 31 Jul 2006 09:16:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833950#M77995</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-07-31T09:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to: On Queue completion send E-mail</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833951#M77996</link>
      <description>Nipun,&lt;BR /&gt;&lt;BR /&gt;  I'm not sure what you mean by "whenever the queue is done". Perhaps you mean "when a batch job completes"?&lt;BR /&gt;&lt;BR /&gt;  You could do this externally, as Volker has suggested, but I think it's probably simpler to just add a final line to your batch job:&lt;BR /&gt;&lt;BR /&gt;$ MAIL/SUBJECT="This job complete" NL: NIPUN&lt;BR /&gt;&lt;BR /&gt;You may also want to look at SUBMIT/NOTIFY. This will send you a broadcast message (but obviously only if you're logged in).&lt;BR /&gt;&lt;BR /&gt;Also note that a batch job can consist of multiple files to be executed, so if you have a procedure called NOTIFY.COM containing the MAIL command, you can add it to the end of any procedure without editing, for example:&lt;BR /&gt;&lt;BR /&gt;$ SUBMIT MYJOB,NOTIFY&lt;BR /&gt;&lt;BR /&gt;will execute MYJOB.COM followed by NOTIFY.COM</description>
      <pubDate>Mon, 31 Jul 2006 22:07:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833951#M77996</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-07-31T22:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to: On Queue completion send E-mail</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833952#M77997</link>
      <description>Quick example procedure NOTIFY.COM to send an email at completion of the job. Contains some example F$GETQUI calls to get information about the job. Easily modified to send other information, just define a local symbol.</description>
      <pubDate>Mon, 31 Jul 2006 22:29:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-on-queue-completion-send-e-mail/m-p/3833952#M77997</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-07-31T22:29:17Z</dc:date>
    </item>
  </channel>
</rss>

