<?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 Batch Queue entry numbers in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190248#M14601</link>
    <description>We recently upgraded from Alpha VMS 7.3 to Integrity 8.3. Under 7.3 the queue entry numbers would go up to 1000, then roll over and restart at 1. After just a few weeks in production the 8.3 entry numbers are over 2,000,000. Our process calls for monitoring some jobs by their entry number, Is there any way to restore the 7.3 behavior, or set an upper limit that will force the numbers to roll over?</description>
    <pubDate>Thu, 01 May 2008 11:22:54 GMT</pubDate>
    <dc:creator>Aaron Lewis_1</dc:creator>
    <dc:date>2008-05-01T11:22:54Z</dc:date>
    <item>
      <title>Batch Queue entry numbers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190248#M14601</link>
      <description>We recently upgraded from Alpha VMS 7.3 to Integrity 8.3. Under 7.3 the queue entry numbers would go up to 1000, then roll over and restart at 1. After just a few weeks in production the 8.3 entry numbers are over 2,000,000. Our process calls for monitoring some jobs by their entry number, Is there any way to restore the 7.3 behavior, or set an upper limit that will force the numbers to roll over?</description>
      <pubDate>Thu, 01 May 2008 11:22:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190248#M14601</guid>
      <dc:creator>Aaron Lewis_1</dc:creator>
      <dc:date>2008-05-01T11:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Queue entry numbers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190249#M14602</link>
      <description>This was pretty much covered in the following&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1209649011045+28353475&amp;amp;threadId=1144436" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1209649011045+28353475&amp;amp;threadId=1144436&lt;/A&gt;</description>
      <pubDate>Thu, 01 May 2008 12:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190249#M14602</guid>
      <dc:creator>Walter Miller_1</dc:creator>
      <dc:date>2008-05-01T12:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Queue entry numbers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190250#M14603</link>
      <description>Aaron,&lt;BR /&gt;&lt;BR /&gt;this has NOTHING to do with any VMS version (at least starting V5.5).&lt;BR /&gt;Whenever the number of entries exceeds 999, then the available number range flows over to this much bigger number (of which not all numbers are used, btw).&lt;BR /&gt;&lt;BR /&gt;Entry numbers are to be considered as just that: unique IDs _WITHOUT_ any additional meaning (at least, NOT to be used nor controled).&lt;BR /&gt;&lt;BR /&gt;Your changeover happened because at some moment your number of entries (active, waiting, and retained, all counted) was bigger than the small set could handle.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Thu, 01 May 2008 13:11:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190250#M14603</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2008-05-01T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Queue entry numbers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190251#M14604</link>
      <description>Summary of previous discussions follows...&lt;BR /&gt;&lt;BR /&gt;Batch Queue entry numbers should be treated like process ids; as PIDs.  &lt;BR /&gt;&lt;BR /&gt;Best to assume the job entry number (or the PID, for that matter) is simply an opaque longword.&lt;BR /&gt;&lt;BR /&gt;That the entry numbers are often assigned in somewhat recognizable sequences was arguably a small design mistake in my view, as it led to assumptions that should not have been made.&lt;BR /&gt;&lt;BR /&gt;Like the PID and its internal structuring (and ignoring topics of IPID and EPID), the current format of the job entry number (and this is subject to change) is comprised of several bitfields; the entry number contains the queue manager number and non-contiguous fields that together contain an ascending value. &lt;BR /&gt;&lt;BR /&gt;When last I looked, the internal structure of the entry number was XYYXXXX, where X is a field containing a zero-suppressed entry sequence number, and YY is the queue manager number.  In hexadecimal.  Subject to change.&lt;BR /&gt;&lt;BR /&gt;There have been changes to the queue manager to try to drop this entry number value back down to small positive integers, but that's not entirely reliable -- the values can spike back up into the "weird" ranges and "weird" values when certain thresholds are crossed, and when certain queue configurations are instantiated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 May 2008 13:19:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190251#M14604</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-05-01T13:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Queue entry numbers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190252#M14605</link>
      <description>Aaron,&lt;BR /&gt;&lt;BR /&gt;  No you can't adjust the wrap points. Entry number ranges expand as required by the number of jobs submitted. If you have software that doesn't like larger entry numbers, you should fix it. The entry number can be any 32 bit signed integer. Any software that can't handle the entire range is incorrect.&lt;BR /&gt;&lt;BR /&gt;  I've found that even as far back as V7.3, the queue manager is very good at restoring entry number ranges, as long as the jobs get cleaned up. Perhaps someone has turned on retention on a queue? Or there was a peak which exceeded 10K jobs - maybe a runaway self submission? You may also find that an overzealous job monitor executing many F$GETQUI or SHOW QUEUE commands will keep the queue data base so busy that the queue manager doesn't get a chance to clean up old entries fast enough. This can artificially keep the entry range higher than expected. Once you're in the extended range, you have to wait for a complete cycle of jobs.&lt;BR /&gt;&lt;BR /&gt;  Here's a procedure I've used to correct self submission accidents which have flooded a queue with multiple copies of the same job:&lt;BR /&gt;&lt;BR /&gt;$ loop:e=F$GETQUI("DISPLAY_ENTRY","ENTRY_NUMBER",p1,"WILDCARD")&lt;BR /&gt;$ IF e.NES.""&lt;BR /&gt;$ THEN&lt;BR /&gt;$   DELETE/ENTRY='e'&lt;BR /&gt;$   GOTO loop&lt;BR /&gt;$ ENDIF&lt;BR /&gt;&lt;BR /&gt;(avoid manipulating jobs while this procedure is running, as it may interrupt the GETQUI context and stop the job. Don't include any WRITE commands in the loop, as they'll slow it down by an order of magnitude or two)&lt;BR /&gt;&lt;BR /&gt;If you really need to cycle the numbers, here's a procedure to submit and delete jobs until the entry number is lower than a specified value.&lt;BR /&gt;&lt;BR /&gt;$ IF p1.EQS."" THEN EXIT&lt;BR /&gt;$ self=F$PARSE(";",F$ENVIRONMENT("PROCEDURE"))&lt;BR /&gt;$ loop:&lt;BR /&gt;$   SUBMIT/HOLD 'self'&lt;BR /&gt;$   DELETEX/ENTRY='$ENTRY'&lt;BR /&gt;$ IF F$INTEGER($ENTRY).GT.F$INTEGER(p1) THEN GOTO loop&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;(beware that for some queue manager configurations and values of p1 this is an infinite loop!). Also beware that both the above procedures keep your queue manager very busy while they're running so things like SHOW QUEUE commands may run very slowly. They may work better/faster if executed on the node running QUEUE_MANAGER.</description>
      <pubDate>Thu, 01 May 2008 21:07:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190252#M14605</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-05-01T21:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Queue entry numbers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190253#M14606</link>
      <description>Aaron,&lt;BR /&gt;      Although your post only references Batch Queue entries, I'm sure you know that the entry numbers are shared by all of the system queues, particularly printer queues.&lt;BR /&gt;&lt;BR /&gt;John touched on the primary culprit in these situations, i.e. print queues set to RETAIN, or queues which are STALLED or STOPPED.&lt;BR /&gt;&lt;BR /&gt;    The Queue Manager cannot reuse an entry number as long as it is assigned to a job in a queue, and although it is obviously possible for a system to be legally handling large numbers of entries, i.e. batch jobs can be legally in a "holding" state for long periods of time, entry numbers assigned to print jobs should, in general, only be tied up briefly.&lt;BR /&gt;&lt;BR /&gt;    When the numbers jump from 4-digits to 7-digits, this often means that a busy print queue has been stalled or stopped for a significant period of time, or that someone has set a queue to RETAIN (perhaps for testing) and forgot to remove it when done.&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Fri, 02 May 2008 12:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch-queue-entry-numbers/m-p/4190253#M14606</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-05-02T12:50:18Z</dc:date>
    </item>
  </channel>
</rss>

