<?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 call in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195564#M61954</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Using pipe...&lt;BR /&gt;&lt;BR /&gt;$pipe sho que/all/full | sear tt: &lt;YOUR-JOB-NAME&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Best wishes,&lt;BR /&gt;Lokesh Jain&lt;/YOUR-JOB-NAME&gt;</description>
    <pubDate>Wed, 18 Feb 2004 15:06:45 GMT</pubDate>
    <dc:creator>Lokesh_2</dc:creator>
    <dc:date>2004-02-18T15:06:45Z</dc:date>
    <item>
      <title>F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195558#M61948</link>
      <description>I want to determine if a batch job exists within the specified queue(s). I would like to do it more directly, but the F$GetQuI call forces me to do two loops. &lt;BR /&gt;&lt;BR /&gt;The outer loop is for the batch queue itself.&lt;BR /&gt;$ QueName=F$GetQuI("Display_Queue","Queue_Name","test_bat*","Wildcard")&lt;BR /&gt;I am okay with this since I have to scan all relevant queues.&lt;BR /&gt;&lt;BR /&gt;The inner loop is what I want to eliminate.&lt;BR /&gt;Instead of &lt;BR /&gt;$ JobName=("Display_Job","Job_Name",,"All_Jobs")&lt;BR /&gt;and looping until I have a match or JobName .eqs. ""&lt;BR /&gt;is there a way to hand the F$GetQuI a jobname for a specific batch queue and get a true/false as to whether or not it exists?&lt;BR /&gt;&lt;BR /&gt;I've tried several things and I come up emtpy handed.&lt;BR /&gt;&lt;BR /&gt;I don't have to use F$GetQuI but I think it is my only alternative.&lt;BR /&gt;Any info one way or the other would be appreciated.&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2004 10:23:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195558#M61948</guid>
      <dc:creator>John Eerenberg</dc:creator>
      <dc:date>2004-02-18T10:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195559#M61949</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I don't like the f$getq syntax but anyway ...&lt;BR /&gt;Yes you can but only if you are the owner of the job.&lt;BR /&gt;&lt;BR /&gt;$ entr=f$getq("display_entry","job_name","MYJOB*")&lt;BR /&gt;&lt;BR /&gt;No queue context is needed, only display_entry can be used and only the first job found is reported.</description>
      <pubDate>Wed, 18 Feb 2004 11:49:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195559#M61949</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-02-18T11:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195560#M61950</link>
      <description>Hello,&lt;BR /&gt;remove WILDCARD.&lt;BR /&gt;$ say="write sys$output"&lt;BR /&gt;$ QueName=F$GetQui("DIPSLAY_QUEUE",&lt;BR /&gt;"QUEUE_NAME","MY_QUEUE")&lt;BR /&gt;$ if QueName.eqs.""&lt;BR /&gt;$ then&lt;BR /&gt;$    say "Queue MYQUEUE doesnt exists!"&lt;BR /&gt;$ else&lt;BR /&gt;$    say "Queue MYQUEUE exists!!!!!"&lt;BR /&gt;$ endif&lt;BR /&gt;&lt;BR /&gt;H.T.H.&lt;BR /&gt;Antoniov&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2004 13:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195560#M61950</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-02-18T13:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195561#M61951</link>
      <description>I've forgotten ...&lt;BR /&gt;you inquire also other info, for example you can read if queue is idle:&lt;BR /&gt;$ say="write sys$output"&lt;BR /&gt;$ QueName=F$GetQui("DIPSLAY_QUEUE",&lt;BR /&gt;"QUEUE_IDLE","MY_QUEUE")&lt;BR /&gt;$ if QueName&lt;BR /&gt;$ then&lt;BR /&gt;$ say "Queue MYQUEUE is idle"&lt;BR /&gt;$ else&lt;BR /&gt;$ say "Queue MYQUEUE is running&lt;BR /&gt;$ endif&lt;BR /&gt;Now I'm not in front of terminal so I can't post other info, but you can type help for furthermore details.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Antoniov&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2004 13:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195561#M61951</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-02-18T13:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195562#M61952</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;a little extension to Wim's answer:&lt;BR /&gt;You don'nt HAVE to own the job, but you need read access to the queue and to the job.&lt;BR /&gt;Access you can have of course by owning, but also by privilege or ACL-&amp;amp;-identifier.&lt;BR /&gt;&lt;BR /&gt;But beware, like Wim said, you will ONLY get the FIRST matching job.&lt;BR /&gt;&lt;BR /&gt;So, maybe the loop-within-loop construct wil be preferable, despite the unfriendly syntax (I got used to it, but I still don't like it, and I guess I never will)&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Wed, 18 Feb 2004 13:53:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195562#M61952</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-02-18T13:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195563#M61953</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;slightly off-topic, since not a DCL solution;-) but with Perl and the VMS::Queue modul you could do something like this:&lt;BR /&gt;&lt;BR /&gt;%entry_cond = {jobname=&amp;gt;"BATSER"};&lt;BR /&gt;@entries = entry_list(\%entry_cond);&lt;BR /&gt;$entryprop = entry_info($entries[0]);&lt;BR /&gt;print $$entryprop{"SUBMISSION_TIME"}, "\n";&lt;BR /&gt;&lt;BR /&gt;or whatever particular property you are interested in.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Wed, 18 Feb 2004 14:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195563#M61953</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-02-18T14:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195564#M61954</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Using pipe...&lt;BR /&gt;&lt;BR /&gt;$pipe sho que/all/full | sear tt: &lt;YOUR-JOB-NAME&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Best wishes,&lt;BR /&gt;Lokesh Jain&lt;/YOUR-JOB-NAME&gt;</description>
      <pubDate>Wed, 18 Feb 2004 15:06:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195564#M61954</guid>
      <dc:creator>Lokesh_2</dc:creator>
      <dc:date>2004-02-18T15:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195565#M61955</link>
      <description>Jan,&lt;BR /&gt;&lt;BR /&gt;Fully priveledged I don't see the job I don't own. Are you sure ?&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Feb 2004 02:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195565#M61955</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-02-19T02:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195566#M61956</link>
      <description>Wim:&lt;BR /&gt;&lt;BR /&gt;You're absolute right.&lt;BR /&gt;I wrote that at home from memory, but having tested it, my previous statement only applies if requesting info by giving the jobentryNUMBER, and not by jobNAME.&lt;BR /&gt;&lt;BR /&gt;sorry for the confusion&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Thu, 19 Feb 2004 02:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195566#M61956</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-02-19T02:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: F$GetQuI call</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195567#M61957</link>
      <description>Thanks for all the very timely responses. When I saw 8 responses this morning, I went "wow."&lt;BR /&gt;You guys are the best -- as is OpenVMS.&lt;BR /&gt;&lt;BR /&gt;I liked the perl script (which we will be able to do later this year) and the pipe show command (sometime the obvious is not) is probably the most useful since due to this application, multiple job names within a queue doesn't matter.&lt;BR /&gt;And if I go with the pipe, then a loop with F$GetQui("DIPSLAY_QUEUE",&lt;BR /&gt;"QUEUE_IDLE","MY_QUEUE") would give me a very efficient way of getting what I need.&lt;BR /&gt;&lt;BR /&gt;Now I have more then one option to consider. This is great.&lt;BR /&gt;&lt;BR /&gt;john</description>
      <pubDate>Thu, 19 Feb 2004 10:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getqui-call/m-p/3195567#M61957</guid>
      <dc:creator>John Eerenberg</dc:creator>
      <dc:date>2004-02-19T10:15:54Z</dc:date>
    </item>
  </channel>
</rss>

