- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: F$GetQuI call
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 02:23 AM
02-18-2004 02:23 AM
The outer loop is for the batch queue itself.
$ QueName=F$GetQuI("Display_Queue","Queue_Name","test_bat*","Wildcard")
I am okay with this since I have to scan all relevant queues.
The inner loop is what I want to eliminate.
Instead of
$ JobName=("Display_Job","Job_Name",,"All_Jobs")
and looping until I have a match or JobName .eqs. ""
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?
I've tried several things and I come up emtpy handed.
I don't have to use F$GetQuI but I think it is my only alternative.
Any info one way or the other would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 03:49 AM
02-18-2004 03:49 AM
Re: F$GetQuI call
I don't like the f$getq syntax but anyway ...
Yes you can but only if you are the owner of the job.
$ entr=f$getq("display_entry","job_name","MYJOB*")
No queue context is needed, only display_entry can be used and only the first job found is reported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 05:39 AM
02-18-2004 05:39 AM
Re: F$GetQuI call
remove WILDCARD.
$ say="write sys$output"
$ QueName=F$GetQui("DIPSLAY_QUEUE",
"QUEUE_NAME","MY_QUEUE")
$ if QueName.eqs.""
$ then
$ say "Queue MYQUEUE doesnt exists!"
$ else
$ say "Queue MYQUEUE exists!!!!!"
$ endif
H.T.H.
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 05:48 AM
02-18-2004 05:48 AM
Re: F$GetQuI call
you inquire also other info, for example you can read if queue is idle:
$ say="write sys$output"
$ QueName=F$GetQui("DIPSLAY_QUEUE",
"QUEUE_IDLE","MY_QUEUE")
$ if QueName
$ then
$ say "Queue MYQUEUE is idle"
$ else
$ say "Queue MYQUEUE is running
$ endif
Now I'm not in front of terminal so I can't post other info, but you can type help for furthermore details.
Regards
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 05:53 AM
02-18-2004 05:53 AM
Re: F$GetQuI call
a little extension to Wim's answer:
You don'nt HAVE to own the job, but you need read access to the queue and to the job.
Access you can have of course by owning, but also by privilege or ACL-&-identifier.
But beware, like Wim said, you will ONLY get the FIRST matching job.
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)
HTH,
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 06:48 AM
02-18-2004 06:48 AM
Re: F$GetQuI call
slightly off-topic, since not a DCL solution;-) but with Perl and the VMS::Queue modul you could do something like this:
%entry_cond = {jobname=>"BATSER"};
@entries = entry_list(\%entry_cond);
$entryprop = entry_info($entries[0]);
print $$entryprop{"SUBMISSION_TIME"}, "\n";
or whatever particular property you are interested in.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 06:05 PM
02-18-2004 06:05 PM
Re: F$GetQuI call
Fully priveledged I don't see the job I don't own. Are you sure ?
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 06:27 PM
02-18-2004 06:27 PM
Re: F$GetQuI call
You're absolute right.
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.
sorry for the confusion
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 02:15 AM
02-19-2004 02:15 AM
Re: F$GetQuI call
You guys are the best -- as is OpenVMS.
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.
And if I go with the pipe, then a loop with F$GetQui("DIPSLAY_QUEUE",
"QUEUE_IDLE","MY_QUEUE") would give me a very efficient way of getting what I need.
Now I have more then one option to consider. This is great.
john