- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: To resubmit the same batch job at every 15 min...
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
Discussions
Discussions
Forums
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
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
тАО06-25-2006 06:50 PM
тАО06-25-2006 06:50 PM
I have this VMS batch job that I would like to resubmit it self every 15 minutes. Would someone help with the DCL command to do this task?
Thank you in advance.
J
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2006 06:59 PM
тАО06-25-2006 06:59 PM
Re: To resubmit the same batch job at every 15 minutes
$ SUBMIT/AFTER="+00:15"
Be careful where you place the code, at the beginning if you want it to run 15m from when the current routines starts or submit at the end if you want it 15m when the current job finishes.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2006 07:49 PM
тАО06-25-2006 07:49 PM
Re: To resubmit the same batch job at every 15 minutes
will submit the current procedure (note - it will submit exactly the same file version) 15 minutes from when this command is executed. Note that after a while you can get some drift i.e. if it started out running at 12:15, 12:30, 12:45 etc then it can end up running at 12:16, 12:31 and so on. If you need more precise scheduling there are commercial and freeware packages available for job scheduling.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2006 08:34 PM
тАО06-25-2006 08:34 PM
Solution$ LT = F$GETJPI("","LOGINTIM")
$ NEXT = F$CVTIME("''LT'+00-00:15",ABSOLUTE")
$ SUBMIT/AFTER="''NEXT'"
Note that the submission time is to the minute in the next field.
Alternatively, you could always $ WAIT 00:15 and loop back ?
Kind Regards,
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2006 09:36 PM
тАО06-25-2006 09:36 PM
Re: To resubmit the same batch job at every 15 minutes
I atached a small framework for a self resubmitting Batch Job.
If you have questions about it, just post another message
I hope that helps
Regards
Heinz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2006 05:14 AM
тАО06-26-2006 05:14 AM
Re: To resubmit the same batch job at every 15 minutes
You can get it on the Freeware v4 CD.
http://h71000.www7.hp.com/freeware/freeware40/kronos/
Also, check out http://dcl.openvms.org/ for several scripts that will automatically resubmit any given command procedure, with no additional code required in your command file. Just search for "resubmit" -- I recall there are at least a couple out there you could use.
Aaron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2006 04:04 PM
тАО06-26-2006 04:04 PM
Re: To resubmit the same batch job at every 15 minutes
I think there are 3 possible ways to define your "every 15 minutes". You can resubmit at the beginning of a procedure, or at the end to run in another 15 minutes. The problem with using it at the beginning is that if the procedure runs for more than 15 minutes you will end up with multiple versions running. The problem with the end of the procedure is that you are now running every 15 minutes plus the time to run the procedure. The 3rd method would be to look at the current minute of the hour at the end of the procedure - if it is less than 15, resubmit to run at the current hour plus 15 minutes (and similar logic for running at :30, :45, and :00). This would give runs on the exact quarter hours but would skip to the next one if the current run lasted more than 15 minutes.
Allan in Atlanta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2006 08:02 PM
тАО06-26-2006 08:02 PM
Re: To resubmit the same batch job at every 15 minutes
the one issue with submitting at the end of the procedure is, that you must (be able to) make VERY sure that the procedure will ALWAYS get there!
And that can be harder than it may seem!
For us, it was the reason to change all procedures to do the re-submit as the first activity.
The issue pointed out by Allan about the previous run not yet ended: if that is a problem, then some extra checking is added directly after the resubmit, and if the previous run has not yet ended, then simply this run exits.
Just my EUR 0.02
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2006 02:23 AM
тАО06-27-2006 02:23 AM
Re: To resubmit the same batch job at every 15 minutes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2006 04:26 AM
тАО06-27-2006 04:26 AM
Re: To resubmit the same batch job at every 15 minutes
Trying to glom resubmission code into a program that already has a task to accomplish can be quite problematic, as witnessed by the above comments. When you start getting into multiple programs with different tasks all trying to resubmit themselves, you quickly see the beauty of having that code in a separate program.
I long ago traded out custom code in each program to resubmit itself, to a separate Resubmit.com, and then ultimately to Kronos. I'd discovered after many years (and many wheels) the adage about not reinventing the wheel...