- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Start an execution queue for only one job ???
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
07-02-2006 08:10 PM
07-02-2006 08:10 PM
Start an execution queue for only one job ???
Is there an elegant method to start the execution queue for only this one particular job, and after the completion of that job the queue will stop itself?
Currently we start the queue and then immediately use stop/next. However, this in reality could allow a second job to start executing if the stop/next command is not issued fast enough and the first job is very short.
Thanks,
Chaim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 08:14 PM
07-02-2006 08:14 PM
Re: Start an execution queue for only one job ???
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 08:17 PM
07-02-2006 08:17 PM
Re: Start an execution queue for only one job ???
Or other jobs are submitted with /HOLD and a 'control'-job release them for the night.
Or, if privileges allow, the running job does the STOP/NEXT at the beginning.
regards kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 10:00 PM
07-02-2006 10:00 PM
Re: Start an execution queue for only one job ???
If Guy Peleg is monitoring this forum, perhaps he can introduce a qualifier to the START command which would default to ONE but allow a number, telling the queue manager to keep the queue started only for the explicitly stated number of jobs.
Something like:
START/DURATION=2 ....
This would mean, start the queue and allow it to remain started from now until two jobs have completed.
Thanks,
Chaim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 10:17 PM
07-02-2006 10:17 PM
Re: Start an execution queue for only one job ???
You can also run the job without a batch queue. This depends on the privileges of the submiter (needs DETACH privilege). You can do this with:
$ RUN/DETACHED SYS$SYSTEM:LOGINOUT.EXE -
/INPUT=
/OUTPUT=
For more see: $ HELP RUN PROCESS
Some problems you can encounter:
The process mode (F$MODE) is not BATCH but OTHER.
You can not pass parameters. (But you can write a temporary command procedure which will pass the parameters)
You can not use queue synchronization (SYNCHRONIZE).
You can not submit the job as a different user (SUBMIT/USER).
Remember that the program to run is allways SYS$SYSTEM:LOGINOUT.EXE. This gives you the DCL.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 04:27 AM
07-03-2006 04:27 AM
Re: Start an execution queue for only one job ???
really, the most elegant solution _IS_ a dedicated queue! And if somehow there is some difficulty in SUBMITting /QUEUE=.. (eg, when the submit is by a call to $JBCSNDQUE from within an image that can not easily be changed) the just DEFINE SYS$BATCH
just my opinion though...
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 10:46 AM
07-03-2006 10:46 AM
Re: Start an execution queue for only one job ???
I'm trying to work out your objective here. Is it to start a specific job, or to "drip feed" jobs from a queue on demand?
If it's a specific job holding, then SET ENTRY/RELEASE will allow it to start. If it's on a stopped queue then SET ENTRY/REQUEUE=some-running-queue can move it to a running queue. All you need is one "emergency run" queue to which these jobs can be submitted. It could be protected to prevent mere-mortals from submitting jobs to it.
If it's the next job on a queue, you could use F$GETQUI to find the entry number, then SET ENTRY/REQUEUE to get it running.
I can't see how this is any less elegant than building in yet another qualifier on SET QUEUE. You can use /REQUEUE today and for the last 2 decades (~ VMS V2), but even if your proposal is accepted, and work on the new qualifier starts tomorrow, you won't see it for at least a year, if not longer.
Consider, if you want your "start queue for 1 (or N) jobs" semantics to work, you need to first arrange for your target job(s) to be at the head of the queue. With requeue you have absolute control over which jobs start, one command to do it, and all it costs you is one extra queue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 12:14 PM
07-03-2006 12:14 PM
Re: Start an execution queue for only one job ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 04:47 PM
07-03-2006 04:47 PM
Re: Start an execution queue for only one job ???
Thanks for all the replies!
In reality, I really do NOT have a "problem".
Our installation does NOT allow any large batch jobs to run before 16:00 in the afternoon. The batch queues for the BIG jobs are stopped on system reboot (a reboot is done every morning at 6:30) and automatically started at 16:00. All BIG jobs are submitted to generic queues which are also stopped and automatically started at 16:00 and which feed the execution queues.
On rare occasions a BIG job needs to be run during the day. Theoretically, the execution queue at this point SHOULD be empty. So theoretically I should be able to enter a set entry/requeu=execution-que, set ent/rel, start/que execution-queue and stop/que/next execution-que and honky dorey! However, if by some chance AFTER I started the execution-que ANOTHER job somehow was placed on the execution-que, and the BIG job ran faster than than I was able to issue the stop/que/next command, then this second job WOULD start to execute as well. This unexpected situation is what I am trying to eliminate using a manner which is elegant and automatic and which does NOT rely on my personal reflexes.
So far NONE of the solutions that I have seen so far are very elegant, and those that are elegant do NOT really solve the "problem" as I have described it.
Hope I have clarified myself!
Thanks,
Chaim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 05:55 PM
07-03-2006 05:55 PM
Re: Start an execution queue for only one job ???
The execution queue can be a special queue that is started at boot time (e.g. with autostart enabled).
If needed, protect it so that nobody can use it except system managers.
Then all you need to do is set entry/reque and the job will start on the exec queue.
Simple. Isn't it.
Where I see problems is when the job itself starts series of other jobs in the same stopped queue or when a monitor is running that expects to see the job terminated in the original queue.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 07:48 PM
07-03-2006 07:48 PM
Re: Start an execution queue for only one job ???
The P1 can be given under the set entry/par qualifier.
Hope this helps.
Nigel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 08:10 PM
07-03-2006 08:10 PM
Re: Start an execution queue for only one job ???
Create a dcl file (run interactively) that firstly creates a batch queue, places acls on it so that only the person running the dcl file can do anything with it, inquire the entry to move to the queue, run the entry on the queue. Check entry progress, when completed, stop and delete the queue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 09:57 PM
07-03-2006 09:57 PM
Re: Start an execution queue for only one job ???
I'm wondering why?
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 10:02 PM
07-03-2006 10:02 PM
Re: Start an execution queue for only one job ???
This would unconditionally prevent a second job from starting until the first had completed, so that you only have to allow for abnormal termination of the approved job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 10:29 PM
07-03-2006 10:29 PM
Re: Start an execution queue for only one job ???
Of course the job_limit is set to 1. I thought that this was obvious! My "problem" us more of a "race condition" whether the job will execute and complete BEFORE the operator has the opportunity to stop/next the queue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 11:05 PM
07-03-2006 11:05 PM
Re: Start an execution queue for only one job ???
$ stop/que/next
$ get batch job params
$ check params are valid
$ run real task specified in params
$ exit
then do
$ submit /que=onejobonly batchshell /param='real job details'
$ sho que onejobonly
(to verify that the only job in it is the one you want to run, delete any unwanted jobs)
$ start/que onejobonly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 08:51 PM
07-04-2006 08:51 PM
Re: Start an execution queue for only one job ???
I believe that the subject has been discussed quite extensively, and although I really didn' receive any suggestions that are either elegant and/or feasible, I see no reason to kep this thread open.
Thanks a mill !!!!!!!!
Chaim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 08:52 PM
07-04-2006 08:52 PM
Re: Start an execution queue for only one job ???
Thanjs,
Chaim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 09:35 PM
07-04-2006 09:35 PM
Re: Start an execution queue for only one job ???
- calculate time between "now" and the moment that next job is allowed to start.
- $ WAIT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 12:06 AM
07-05-2006 12:06 AM
Re: Start an execution queue for only one job ???
You might explore the use of the /CHARACTERISTIC qualifier on both the batch queue and entries submitted to it. See HELP SET ENTRY and HELP SET QUEUE.
The short of it is to designate the queue to possess a characteristic that no jobs possess. If you are not currently making use of /CHARACTERISTIC then you might just choose a value of "1". Issue a "SET QUEUE/CHAR=1 {queuename}" and no jobs will execute in this queue unless they posses the "1" characteristic. When you wish a specific job, and only that job, to execute you need only "SET ENTRY/CHAR=1 {entry}" (all other jobs will continue to wait). You can at any time "SET QUEUE/NOCHAR{queuename}" to release all pending jobs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 12:40 AM
07-05-2006 12:40 AM
Re: Start an execution queue for only one job ???
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 01:32 AM
07-05-2006 01:32 AM
Re: Start an execution queue for only one job ???
be careful afaik all jobs without a characteristic will start on the queue. Only a job with a characteristic that doesnt match the characteristic on the queue will stay pending.
So, 'normal' submitted jobs will just start if you start the queue.
Rgds
Marc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 01:44 AM
07-05-2006 01:44 AM
Re: Start an execution queue for only one job ???
Marc is correct (it's been a long time since I'd used this feature and mis-remmebered, sorry).
Anyway, "/CHARACTERISTIC" can still be used. All jobs could be SUBMITed with a "/CHARACTERISTIC" and that "/CHARACTERISTIC" would be removed from each job (via SET ENTRY) as their execution was desired. (All jobs could be released by temporarily assigning the "/CHARACTERISTIC" to the batch queue.