<?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: VMS &amp;amp; Print Queues in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715927#M74019</link>
    <description>It's not a complete solution, but here's a&lt;BR /&gt;procedure which shows some of the basics for&lt;BR /&gt;using F$GETQUI().&lt;BR /&gt;&lt;BR /&gt;alp $ @ QUEUE_LIST.COM&lt;BR /&gt;&lt;BR /&gt;      Queue SYS$BATCH_ALP on node ALP:&lt;BR /&gt;   job: CWU1_SUB               entry:    950   status: 0002&lt;BR /&gt;   job: RUN_DTSS_NTP           entry:     85   status: 0002&lt;BR /&gt;   job: WWW_FLUSH              entry:    465   status: 0200&lt;BR /&gt;   job: WWW_TEST               entry:    469   status: 0200&lt;BR /&gt;   job: DAILY                  entry:    220   status: 0200&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you care, the status values are described in&lt;BR /&gt;&lt;BR /&gt;SYS$COMMON:[DECC$LIB.REFERENCE.SYS$STARLET_C]QUIDEF.H&lt;BR /&gt;&lt;BR /&gt;Look for "JOB_STATUS item code".  For&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;#define QUI$M_JOB_EXECUTING 0x2&lt;BR /&gt;#define QUI$M_JOB_TIMED_RELEASE 0x200  ("Holding until ...")&lt;BR /&gt;&lt;BR /&gt;I've shown it listing out a batch queue, but&lt;BR /&gt;it should work on any type of queue.  (I&lt;BR /&gt;normally don't have any jobs in a print&lt;BR /&gt;queue, so that display would be less&lt;BR /&gt;interesting.)</description>
    <pubDate>Tue, 24 Jan 2006 00:42:56 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2006-01-24T00:42:56Z</dc:date>
    <item>
      <title>VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715921#M74013</link>
      <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;I would like to know how I can delete all the print jobs within a queue without have to delete one job at a time?  These are the steps I'm currently doing:&lt;BR /&gt;1. sho que/all hp5si_mis /out=delete_que.out&lt;BR /&gt;2. Typ delete_que.out and delete one job at a time.&lt;BR /&gt;&lt;BR /&gt;I am currently running OpenVMS 7.3-2&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;J&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 21:28:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715921#M74013</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-01-23T21:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715922#M74014</link>
      <description>If you wish to delete ALL the jobs, just delete&lt;BR /&gt;the queue and recreate it...&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 21:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715922#M74014</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2006-01-23T21:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715923#M74015</link>
      <description>Another way, we have a BLACK_HOLE queue on each&lt;BR /&gt;system using the NULLSYMBIONT.  Merge the print&lt;BR /&gt;queue into the BLACK_HOLE queue.&lt;BR /&gt;&lt;BR /&gt;$ ASSIGN/MERGE BLACK_HOLE HP5SI_MIS&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 21:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715923#M74015</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2006-01-23T21:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715924#M74016</link>
      <description>David - What's the proper procedures to delete the queue and recreate it?  Can you delete a queue with print jobs in it?  &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;J</description>
      <pubDate>Mon, 23 Jan 2006 21:48:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715924#M74016</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-01-23T21:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715925#M74017</link>
      <description>$ stop/queue/reset hp5si_mis&lt;BR /&gt;&lt;BR /&gt;This stops any currently printing jobs.&lt;BR /&gt;&lt;BR /&gt;$ delete/queue hp5si_mis&lt;BR /&gt;&lt;BR /&gt;will delete the queue.&lt;BR /&gt;&lt;BR /&gt;As far as recreating the queue, do you not have&lt;BR /&gt;some procedure somewhere that will initialize&lt;BR /&gt;your queues?  How do you create the queues if you&lt;BR /&gt;have a problem or if someone "accidentally" deletes&lt;BR /&gt;a queue?&lt;BR /&gt;&lt;BR /&gt;If you don't have a procedure to do this, you&lt;BR /&gt;may want to look at setting one up...&lt;BR /&gt;You can always create a dummy queue and do a merge.&lt;BR /&gt;&lt;BR /&gt;$ initialize/queue dummyq/on=lta666:&lt;BR /&gt;$ stop/queue/reset hp5si_mis&lt;BR /&gt;$ assign/merge dummyq hp5si_mis&lt;BR /&gt;$ delete/queue dummyq&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 22:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715925#M74017</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2006-01-23T22:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715926#M74018</link>
      <description>It's also possible to use the (very flexible,&lt;BR /&gt;hence complicated) F$GETQUI() lexical&lt;BR /&gt;function to step through all the jobs in a&lt;BR /&gt;queue and do whatever you want to do with&lt;BR /&gt;each one (delete, for example).  Sadly, I&lt;BR /&gt;don't have a good example handy.&lt;BR /&gt;&lt;BR /&gt;It's still "one at a time", but automatic&lt;BR /&gt;instead of manual.</description>
      <pubDate>Mon, 23 Jan 2006 23:49:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715926#M74018</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-01-23T23:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715927#M74019</link>
      <description>It's not a complete solution, but here's a&lt;BR /&gt;procedure which shows some of the basics for&lt;BR /&gt;using F$GETQUI().&lt;BR /&gt;&lt;BR /&gt;alp $ @ QUEUE_LIST.COM&lt;BR /&gt;&lt;BR /&gt;      Queue SYS$BATCH_ALP on node ALP:&lt;BR /&gt;   job: CWU1_SUB               entry:    950   status: 0002&lt;BR /&gt;   job: RUN_DTSS_NTP           entry:     85   status: 0002&lt;BR /&gt;   job: WWW_FLUSH              entry:    465   status: 0200&lt;BR /&gt;   job: WWW_TEST               entry:    469   status: 0200&lt;BR /&gt;   job: DAILY                  entry:    220   status: 0200&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you care, the status values are described in&lt;BR /&gt;&lt;BR /&gt;SYS$COMMON:[DECC$LIB.REFERENCE.SYS$STARLET_C]QUIDEF.H&lt;BR /&gt;&lt;BR /&gt;Look for "JOB_STATUS item code".  For&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;#define QUI$M_JOB_EXECUTING 0x2&lt;BR /&gt;#define QUI$M_JOB_TIMED_RELEASE 0x200  ("Holding until ...")&lt;BR /&gt;&lt;BR /&gt;I've shown it listing out a batch queue, but&lt;BR /&gt;it should work on any type of queue.  (I&lt;BR /&gt;normally don't have any jobs in a print&lt;BR /&gt;queue, so that display would be less&lt;BR /&gt;interesting.)</description>
      <pubDate>Tue, 24 Jan 2006 00:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715927#M74019</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-01-24T00:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715928#M74020</link>
      <description>To recover some reasonable file attributes&lt;BR /&gt;on that attachment, try:&lt;BR /&gt;&lt;BR /&gt;set file /attr = (rfm: stmlf) 271096.TXT&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jan 2006 00:49:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715928#M74020</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-01-24T00:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715929#M74021</link>
      <description>Sidenote: The freeware V5 contains a nice&lt;BR /&gt;graphical (SMG) management tool to device queues called PQM.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Tue, 24 Jan 2006 01:15:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715929#M74021</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-01-24T01:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715930#M74022</link>
      <description>Hi Jorge&lt;BR /&gt;&lt;BR /&gt;I wrote a commandfile some time ago, which emties a Queue&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ sav_ver=F$VERIFY(0)&lt;BR /&gt;$ debug=0&lt;BR /&gt;$ IF F$TRNLNM("TOOL_DEBUG") THEN debug=1&lt;BR /&gt;$ IF debug THEN SET VERIFY&lt;BR /&gt;$ ON CONTROL_Y THEN GOTO clean_up&lt;BR /&gt;$ ON WARNING THEN GOTO clean_up&lt;BR /&gt;$ sts=1&lt;BR /&gt;$ sav_def=F$ENVIRONMENT("DEFAULT")&lt;BR /&gt;$ sav_mes=F$ENVIRONMENT("MESSAGE")&lt;BR /&gt;$ this_user=F$GETJPI("","USERNAME")&lt;BR /&gt;$ this_node=F$GETSYI("NODENAME")&lt;BR /&gt;$ this_proc=F$ENVIRONMENT("PROCEDURE")&lt;BR /&gt;$ mode=F$MODE()&lt;BR /&gt;$! ------------------------------------------&lt;BR /&gt;$ SET NOON&lt;BR /&gt;$!&lt;BR /&gt;$ IF P1 .EQS. "" THEN INQUIRE P1 "Enter Name of Queue where jobs will be deleted "&lt;BR /&gt;$ qname = P1&lt;BR /&gt;$ temp = F$GETQUI("CANCEL_OPERATION")&lt;BR /&gt;$ IF qname .EQS. "" THEN GOTO clean_up&lt;BR /&gt;$loop1:&lt;BR /&gt;$ qstop = F$GETQUI("DISPLAY_QUEUE", "QUEUE_STOPPED", QNAME, "WILDCARD")&lt;BR /&gt;$check_jobs:&lt;BR /&gt;$ inaccessible = F$GETQUI("DISPLAY_JOB", "JOB_INACCESSIBLE", , "ALL_JOBS")&lt;BR /&gt;$ IF inaccessible .EQS. "" THEN GOTO clean_up&lt;BR /&gt;$ job_name = F$GETQUI("DISPLAY_JOB", "JOB_NAME", , "FREEZE_CONTEXT,ALL_JOBS")&lt;BR /&gt;$ entry_number = F$GETQUI("DISPLAY_JOB", "ENTRY_NUMBER", , "FREEZE_CONTEXT,ALL_JOBS")&lt;BR /&gt;$ username     = F$GETQUI("DISPLAY_JOB", "USERNAME", , "FREEZE_CONTEXT,ALL_JOBS")&lt;BR /&gt;$ WRITELN SYS$OUTPUT "Deleting Job ''job_name' entry ''entry_number' of ''username' in Queue ''qname'"&lt;BR /&gt;$ DELETE/ENTRY='entry_number'&lt;BR /&gt;$ GOTO check_jobs&lt;BR /&gt;$!&lt;BR /&gt;$!&lt;BR /&gt;$! ----------------------------------------&lt;BR /&gt;$clean_up:&lt;BR /&gt;$ SET DEFAULT 'sav_def'&lt;BR /&gt;$ SET MESSAGE 'sav_mes'&lt;BR /&gt;$ sav_ver=F$VERIFY(sav_ver)&lt;BR /&gt;$ EXIT 'sts'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;&lt;BR /&gt;Heinz</description>
      <pubDate>Tue, 24 Jan 2006 04:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715930#M74022</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2006-01-24T04:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715931#M74023</link>
      <description>Jorge,&lt;BR /&gt;&lt;BR /&gt;I posted a procedure DELETE_OLD_PRINT_JOBS.COM to the dcl.OpenVMS.org website.   This procedure will delete all jobs older than a specified delta time from queues.&lt;BR /&gt;&lt;BR /&gt;The procedure will probably be available from that site tomorrow.&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Tue, 24 Jan 2006 14:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715931#M74023</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2006-01-24T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715932#M74024</link>
      <description>Here is a copy of DELETE_OLD_PRINT_JOBS.COM as an attachment.&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Tue, 24 Jan 2006 15:00:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715932#M74024</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2006-01-24T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715933#M74025</link>
      <description>Robert - Thanks for the COM procedure, that worked.&lt;BR /&gt;&lt;BR /&gt;You guys are the best!!  All the points for this subject has been posted.&lt;BR /&gt;&lt;BR /&gt;Thank you!!&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Wed, 25 Jan 2006 23:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715933#M74025</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-01-25T23:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: VMS &amp; Print Queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715934#M74026</link>
      <description>the procedure is at &lt;BR /&gt;&lt;A href="http://dcl.openvms.org/stories.php?story=06/01/24/9856430" target="_blank"&gt;http://dcl.openvms.org/stories.php?story=06/01/24/9856430&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;be sure to have a look at the others available at &lt;A href="http://dcl.openvms.org" target="_blank"&gt;http://dcl.openvms.org&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2006 03:53:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-amp-print-queues/m-p/3715934#M74026</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-01-26T03:53:40Z</dc:date>
    </item>
  </channel>
</rss>

