1828587 Members
2340 Online
109983 Solutions
New Discussion

Batchjob

 
OpenVMS
New Member

Batchjob

Hi all,
How can I let's a batchjob only to run once time per day. I have a batchque whit /job_limit=1, where a lot of batchjob runs every day/night. But one of the jobs, only allowed to run one time. Pleace.

Take care...
/Jan
5 REPLIES 5
Heinz W Genhart
Honored Contributor

Re: Batchjob

Hi OpenVMS

Try

Submit/after="TOMORROW+01:00:00.00"

This Batchjob will run 1 hour after midnight. You must enter this command also within the batchjob. I would recommend to add this command as one of the first lines within the batchjob, before doing other stuff

Hope that helps

Geni
Heinz W Genhart
Honored Contributor

Re: Batchjob

Hi OpenVMS

Welcome to the OpenVMS Forum. I just saw that this was your first question.

So, I added a procedure (resubmit.com) wgich we use allways for batchjbs which should run periodicaly. The procedure does the following:
1. If there is allready a Batch Job with same name found in a queue, this batchjob will be deleted. After this the new job submits itself and finnaly there is a part where you can add commandswhich should be executed within the batchjob.

Regards

Geni
Aaron Sakovich
Super Advisor

Re: Batchjob

Go to http://dcl.openvms.org/ and search for "resubmit" -- there are a few command procedures there that will allow you to easily resubmit a batch job *without* having to put extra code inside your command procedure.

You can also find a variety of job schedulers out there; my personal favorite is Kronos, from the OpenVMS Freeware CD, volume 4: http://h71000.www7.hp.com/openvms/freeware/

Hoff
Honored Contributor

Re: Batchjob

Self-requeuing batch jobs...

http://64.223.189.234/node/97

In addition to the Freeware Kronos package, there's also a cron port around. The above has a pointer to the cron bits, too.

Stephen Hoffman
HoffmanLabs.Com
John Gillings
Honored Contributor

Re: Batchjob

Jan,
I'm not sure I understand your question correctly. If you're concerned that you wish to limit one particular job (or set of jobs) to one running at a time one, but have other jobs which should not be restricted, one possibility is to create two batch queues, one with /JOB_LIMIT=1, to which you SUBMIT your restricted job(s), and another queue with a higher limit (or unlimited) to which all other jobs are submitted. Perhaps you should make the unlimited queue SYS$BATCH and call the other, say, BATCH_ONE.
A crucible of informative mistakes