- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- SYS$BATCH Job Scheduling
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
03-23-2007 06:52 AM
03-23-2007 06:52 AM
Is it possible to have a job run at every x minutes? By that, I mean run every hour but at the same minute?
I've tried scheduling my job at the desired minute and having the first line of my job (resubmit itself +1:00) but the run time still tends to creep up over time.
Is there a way to ensure that the job will always run at the exact same minute every hour?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 07:16 AM
03-23-2007 07:16 AM
Re: SYS$BATCH Job Scheduling
In your resubmit calculatation just add the hour with f$cvtime to get the day transitions easily done. Then wack the minutes and seconds. Something like:
$write sys$output f$extr(0,15,f$cvtime("+ 1:0:0","absolute")) + "12:34.56"
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 07:16 AM
03-23-2007 07:16 AM
Solutionto begin with,
WELCOME to the VMS forum!.
So, you already have a mechanism for resubmitting in place. Good.
Replace that with something like this:
$ minute =
$ day = "today"
$ hour = f$cvtime("","","hour")
$ if hour .eqs. "23"
$ then
$ day = "tomorrow"
$ hour = "0"
$ else
$ hour = 'hour' + 1
$ endif
$ submit /after = "''day'+''hour':''minute'"
( indentation spoiled by forum formatting :-( ,repair yourself! )
--- untested!!! but you get the idea
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 07:17 AM
03-23-2007 07:17 AM
Re: SYS$BATCH Job Scheduling
$ next_hour = f$cvtime("+0-1","ABSOLUTE")
$ rundate = f$cvtime(next_hour,"ABSOLUTE","DATE")
$ runhour = f$cvtime(next_hour,,"HOUR")
$ runtime = rundate+":"+runhour+":"+runmin
$ submit job /after='runtime'
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 08:03 AM
03-23-2007 08:03 AM
Re: SYS$BATCH Job Scheduling
$ combtime = f$cvtim(,,"HOUR")+ -
":00:00+1:00:00"
or
$ combtime = f$cvtim(,"ABSOLUTE","DATE")+ -
":"+f$cvtim(,,"HOUR")+"00:00+1:00:00"
comes to mind.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 08:04 AM
03-23-2007 08:04 AM
Re: SYS$BATCH Job Scheduling
Thank you all for the help and advice! I have a good idea of how to adjust my script now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 08:04 AM
03-23-2007 08:04 AM