<?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: F$GETQUI in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013937#M84141</link>
    <description>Yes, this is possible, but I expect the solution is little more than a simple scan of all of the entries in the queue, counting the jobs as they are encountered.</description>
    <pubDate>Tue, 05 Jun 2007 18:50:43 GMT</pubDate>
    <dc:creator>Hoff</dc:creator>
    <dc:date>2007-06-05T18:50:43Z</dc:date>
    <item>
      <title>F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013936#M84140</link>
      <description>I am using the lexical F$GETQUI in many ways&lt;BR /&gt;but I haven't been able to obtain the correct&lt;BR /&gt;arrangement in the lexical, to obtain the queue "Job summary", like when you use ...&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;$ Show queue/summary  Alpha$batch&lt;BR /&gt;&lt;BR /&gt;Batch queue ALPHA$BATCH, idle, on ALPHA3::&lt;BR /&gt;&lt;BR /&gt;    Job summary:  7 timed release&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;I only want the value of the line "Job summary"&lt;BR /&gt;&lt;BR /&gt;It is possible with F$GETQUI ?&lt;BR /&gt;&lt;BR /&gt;Thank You!&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 18:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013936#M84140</guid>
      <dc:creator>Edmundo T Rodriguez</dc:creator>
      <dc:date>2007-06-05T18:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013937#M84141</link>
      <description>Yes, this is possible, but I expect the solution is little more than a simple scan of all of the entries in the queue, counting the jobs as they are encountered.</description>
      <pubDate>Tue, 05 Jun 2007 18:50:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013937#M84141</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-06-05T18:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013938#M84142</link>
      <description>Edmundo,&lt;BR /&gt;&lt;BR /&gt;  The item you want is "TIMED_RELEASE_JOB_COUNT". Try:&lt;BR /&gt;&lt;BR /&gt;$ t=F$GETQUI("DISPLAY_QUEUE","TIMED_RELEASE_JOB_COUNT","ALPHA$BATCH")&lt;BR /&gt;&lt;BR /&gt;This should return the value you want.&lt;BR /&gt;&lt;BR /&gt;For multiple queues, you need to establish a context. For example:&lt;BR /&gt;&lt;BR /&gt;$  IF p1.EQS."" THEN INQUIRE p1 "Queue name"&lt;BR /&gt;$  TEMP = F$GETQUI("")&lt;BR /&gt;$  QLOOP:&lt;BR /&gt;$    QNAME = F$GETQUI("DISPLAY_QUEUE","QUEUE_NAME",p1,"WILDCARD")&lt;BR /&gt;$    IF QNAME .EQS. "" THEN EXIT&lt;BR /&gt;$    Timed=F$GETQUI("DISPLAY_QUEUE","TIMED_RELEASE_JOB_COUNT",QNAME,"FREEZE_CONTEXT")&lt;BR /&gt;$    WRITE SYS$OUTPUT "''QNAME' ''Timed' timed release"&lt;BR /&gt;$  GOTO QLOOP&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 20:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013938#M84142</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-06-05T20:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013939#M84143</link>
      <description>Thank's for the inputs!&lt;BR /&gt;&lt;BR /&gt;The "Time_Release_Job_Count" seems to only work in the context of Batch-Queues.&lt;BR /&gt;&lt;BR /&gt;Here is my procedure ...&lt;BR /&gt;&lt;BR /&gt;$!---------------------------------------------------------------------------------------&lt;BR /&gt;$! Purpose: To get a summary of all jobs pending on PRINT QUEUES&lt;BR /&gt;$!---------------------------------------------------------------------------------------&lt;BR /&gt;$ QCNT = 0&lt;BR /&gt;$ WSO := WRITE SYS$OUTPUT&lt;BR /&gt;$ TEMP = F$GETQUI("")&lt;BR /&gt;$!---------------------------------------------------------------------------------------&lt;BR /&gt;$QLoop:&lt;BR /&gt;$ QNAME = F$GETQUI("DISPLAY_QUEUE","QUEUE_NAME","*")&lt;BR /&gt;$!QNAME = F$GETQUI("DISPLAY_QUEUE","QUEUE_NAME","*","WILDCARD") ! Same effect as previous&lt;BR /&gt;$ IF QNAME .EQS. "ALPHA3$BATCH"         .OR. -                  ! \&lt;BR /&gt;     QNAME .EQS. "IPA$BATCH"            .OR. -                  !  \&lt;BR /&gt;     QNAME .EQS. "MULTINET_SMTP"        .OR. -                  !   \&lt;BR /&gt;     QNAME .EQS. "SYS$BATCH"            .OR. -                  !    \&lt;BR /&gt;     QNAME .EQS. "SYS$BATCH_1"          .OR. -                  ! remove all Batch-Queues&lt;BR /&gt;     QNAME .EQS. "SYS$BATCH_2"          .OR. -                  !    /&lt;BR /&gt;     QNAME .EQS. "TCPIP$SMTP_ALPHA3_00" .OR. -                  !   /&lt;BR /&gt;     QNAME .EQS. "TCPIP$SMTP_ALPHA3_01"      -                  ! /&lt;BR /&gt;                     THEN GOTO QLOOP&lt;BR /&gt;$ IF QNAME .EQS. ""  THEN GOTO FINISH&lt;BR /&gt;$ QTRJC = F$GETQUI("DISPLAY_QUEUE","TIMED_RELEASE_JOB_COUNT",QNAME,"FREEZE_CONTEXT")&lt;BR /&gt;$ WSO "''QNAME' ''QTRJC'"&lt;BR /&gt;$ QCNT = QCNT + 1&lt;BR /&gt;$ GOTO QLoop&lt;BR /&gt;$!---------------------------------------------------------------------------------------&lt;BR /&gt;$Finish:&lt;BR /&gt;$ WSO ""&lt;BR /&gt;$ WSO " ____________________ Total Queues: ''QCNT'"&lt;BR /&gt;$ WSO ""&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;... So, I should possibly look for other alternative.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jun 2007 11:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013939#M84143</guid>
      <dc:creator>Edmundo T Rodriguez</dc:creator>
      <dc:date>2007-06-06T11:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013940#M84144</link>
      <description>A hack ?&lt;BR /&gt;&lt;BR /&gt;$ gawk :== $ sys$common:[syshlp.examples.tcpip.snmp]gawk&lt;BR /&gt;$ cr a.awk&lt;BR /&gt;/Job summary:/ {print $(NF-1),$NF }&lt;BR /&gt;$ pipe sh que alpha$batch/summary | gawk/input=a.awk sys$pipe&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Be cautious: it will stop working when the output of show queue/summary will change...&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jun 2007 11:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013940#M84144</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2007-06-06T11:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013941#M84145</link>
      <description>search for F$GETQUI at &lt;A href="http://dcl.openvms.org" target="_blank"&gt;http://dcl.openvms.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;where you will find various examples.</description>
      <pubDate>Wed, 06 Jun 2007 12:22:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013941#M84145</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2007-06-06T12:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013942#M84146</link>
      <description>Hi Edmundo,&lt;BR /&gt;     if its pending jobs you want this might&lt;BR /&gt;do it..&lt;BR /&gt;&lt;BR /&gt;$ show que/sum foo&lt;BR /&gt;Batch queue FOO, stopped&lt;BR /&gt;&lt;BR /&gt;    Job summary:  3 pending&lt;BR /&gt;&lt;BR /&gt;$ write sys$output F$GETQUI("DISPLAY_QUEUE","PENDING_JOB_COUNT","FOO")&lt;BR /&gt;3&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;This matchs the sho que/sum - Dean</description>
      <pubDate>Wed, 06 Jun 2007 15:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013942#M84146</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-06-06T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013943#M84147</link>
      <description>Thank's again!&lt;BR /&gt;&lt;BR /&gt;I was able to recreate the procedure&lt;BR /&gt;in a different way to produce a similar&lt;BR /&gt;result ...&lt;BR /&gt;&lt;BR /&gt;=============================================&lt;BR /&gt;&lt;BR /&gt;$!------------------------------------------------------------------------------&lt;BR /&gt;$! Purpose: To get a summary of all jobs pending on PRINT QUEUES&lt;BR /&gt;$!------------------------------------------------------------------------------&lt;BR /&gt;$ V = 'f$verify(0)&lt;BR /&gt;$ if V .eq. 1 then set verify&lt;BR /&gt;$ QCNT = 0&lt;BR /&gt;$ QWPJ = 0&lt;BR /&gt;$ WSO := WRITE SYS$OUTPUT&lt;BR /&gt;$ TEMP = F$GETQUI("")&lt;BR /&gt;$!------------------------------------------------------------------------------&lt;BR /&gt;$ SHOW SYSTEM/NOPROCES/FULL&lt;BR /&gt;$ WSO ""&lt;BR /&gt;$QLoop:&lt;BR /&gt;$ QNAME = F$GETQUI("DISPLAY_QUEUE","QUEUE_NAME","*")&lt;BR /&gt;$!QNAME = F$GETQUI("DISPLAY_QUEUE","QUEUE_NAME","*","WILDCARD")&lt;BR /&gt;$ IF QNAME .EQS. "ALPHA3$BATCH"         .OR. -&lt;BR /&gt;     QNAME .EQS. "IPA$BATCH"            .OR. -&lt;BR /&gt;     QNAME .EQS. "MULTINET_SMTP"        .OR. -&lt;BR /&gt;     QNAME .EQS. "SMTP_ALPHA3"          .OR. -&lt;BR /&gt;     QNAME .EQS. "SYS$BATCH"            .OR. -&lt;BR /&gt;     QNAME .EQS. "SYS$BATCH_1"          .OR. -&lt;BR /&gt;     QNAME .EQS. "SYS$BATCH_2"          .OR. -&lt;BR /&gt;     QNAME .EQS. "TCPIP$SMTP_ALPHA3_00" .OR. -&lt;BR /&gt;     QNAME .EQS. "TCPIP$SMTP_ALPHA3_01"      -&lt;BR /&gt;                     THEN GOTO QLOOP&lt;BR /&gt;$ IF QNAME .EQS. ""  THEN GOTO FINISH&lt;BR /&gt;$!QTRJC = F$GETQUI("DISPLAY_QUEUE","TIMED_RELEASE_JOB_COUNT","''QNAME'","FREEZE_CONTEXT")&lt;BR /&gt;$!HJC   = F$GETQUI("DISPLAY_QUEUE","HOLDING_JOB_COUNT","''QNAME'","FREEZE_CONTEXT")&lt;BR /&gt;$ PJC   = F$GETQUI("DISPLAY_QUEUE","PENDING_JOB_COUNT","''QNAME'","FREEZE_CONTEXT")&lt;BR /&gt;$ QNAML = F$LENGTH(QNAME)&lt;BR /&gt;$!&lt;BR /&gt;$    IF F$LENGTH(F$STRING(PJC)) .GT. 1&lt;BR /&gt;$    THEN&lt;BR /&gt;$    SP1   = F$INTEGER(20-QNAML)&lt;BR /&gt;$    ELSE&lt;BR /&gt;$    SP1   = F$INTEGER(20-QNAML)+1&lt;BR /&gt;$    ENDIF&lt;BR /&gt;$    BUF = F$FAO("!''SP1'* ")&lt;BR /&gt;$    IF PJC .EQ. 0&lt;BR /&gt;$    THEN&lt;BR /&gt;$    WSO "''QNAME' ''BUF'''PJC'"&lt;BR /&gt;$    ELSE&lt;BR /&gt;$    WSO "''QNAME' ''BUF'''PJC'"&lt;BR /&gt;$    QWPJ = QWPJ + 1&lt;BR /&gt;$    ENDIF&lt;BR /&gt;$ QCNT = QCNT + 1&lt;BR /&gt;$ GOTO QLoop&lt;BR /&gt;$!------------------------------------------------------------------------------&lt;BR /&gt;$Finish:&lt;BR /&gt;$ WSO ""&lt;BR /&gt;$ WSO " ---------------------- Total Queues: ''QCNT'"&lt;BR /&gt;$ WSO " ---------- Queues with Pending Jobs:  ''QWPJ'"&lt;BR /&gt;$ WSO ""&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;=============================================&lt;BR /&gt;It doesn't seems to be a lexical "ITEM" which&lt;BR /&gt;can be can be combine in a funtion to produce&lt;BR /&gt;what I want in one line!&lt;BR /&gt;&lt;BR /&gt;Enjoy!&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jun 2007 16:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013943#M84147</guid>
      <dc:creator>Edmundo T Rodriguez</dc:creator>
      <dc:date>2007-06-06T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013944#M84148</link>
      <description>Edmundo,&lt;BR /&gt;  even the sho que/sum doesn't do a total&lt;BR /&gt;of all pending jobs :), looks like you've&lt;BR /&gt;got what you want?</description>
      <pubDate>Wed, 06 Jun 2007 16:59:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013944#M84148</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-06-06T16:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: F$GETQUI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013945#M84149</link>
      <description>Ed, &lt;BR /&gt;&lt;BR /&gt;I do not see any JOB_SUMMARY or QUEUE_SUMMARY (or any summary) mentioned in the HELP library.  However here is one simple way to get that information:&lt;BR /&gt;&lt;BR /&gt;$ pipe show queue sys$batch /summary | search sys$input summary&lt;BR /&gt;&lt;BR /&gt;Give it a try.  &lt;BR /&gt;&lt;BR /&gt;-Manny &lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:08:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui/m-p/4013945#M84149</guid>
      <dc:creator>Manny DeAssis</dc:creator>
      <dc:date>2007-06-07T11:08:25Z</dc:date>
    </item>
  </channel>
</rss>

