- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- creating a scheduler job to run on friday at 8am
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
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
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-21-2018 07:54 AM
02-21-2018 07:54 AM
creating a scheduler job to run on friday at 8am
on openVMS Alpha servers how can i do it ? if i set the day to "Friday" when creating the job it doesnt take it and sets the DAYS to ALL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2018 11:04 AM
02-21-2018 11:04 AM
Re: creating a scheduler job to run on friday at 8am
> creating a scheduler job to run on friday at 8am
What, exactly, is "scheduler"?
> on openVMS Alpha servers how can i do it ?
A VMS forum would be a better place for this than an "Alpha Servers"
forum. Perhaps a moderator can move it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2018 08:46 AM
02-22-2018 08:46 AM
Re: creating a scheduler job to run on friday at 8am
OpenVMS itself does NOT come with a job scheduler as such.
It does have a batch job queue manager so which you can submit jobs to run at a certain time, but not on a schedule.
It does not understand 'Friday' without help.
What scheduler are you refering to ? JAMS? Where do you enter 'Friday' (share full command, or even GUI screen shot?)
Now just using the OpenVMS batch queue, what folks typically use are 'self submitting batch jobs'.
You submit them once, and when activated the first thing they do is re-submit themselves for a future time with the appropriate date/tiem math. For example, for 6am next week use: "06:00 +7-"
Personally I would recommend moving the logic up.
Have one master batch job to resubmit every day (or every hour or whatever) and have that job have simple logic to submit the appropriate jobs only on the right days/times.
Good Luck!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2018 04:41 AM - edited 02-23-2018 04:58 AM
02-23-2018 04:41 AM - edited 02-23-2018 04:58 AM
Re: creating a scheduler job to run on friday at 8am
Hi Aliyesami,
As Hein said you may want to try the below short DCL script as self-submitting batch job as we mostly use if you don't have DECScheduler.
I just wrote and tested this quick script, give a try and lets know.
You need to submit this on Friday and from there it will start self submit every friday
$ tode = f$cvtime("today","absolute","date")
$ todenam = f$edit(f$cvtime("''tode'",,"weekday"),"upcase,collapse")
$ if todenam .eqs. "FRIDAY"
$ then
$!tom = f$cvtime("''tode'+7-","absolute","date")
$ submit/after="''tom'+20:00" disk$:your_friday_job.com
$ backup-or-any-commands ...... /*your command to run on Friday*/
$ else
$ write sys$output "Submit on Friday"
$ endif
$ exit
otherway, you just move the submit command to the top and let it run through only if it is FRIDAY as below, otherwise $EXIT it.
$ tode = f$cvtime("today","absolute","date")
$ todenam = f$edit(f$cvtime("''tode'",,"weekday"),"upcase,collapse")
$ submit/after="TOMORROW+20:00" disk$:your_friday_job.com
$ if todenam .eqs. "FRIDAY"
$ then
$ backup-or-any-commands ...... /*your command to run on Friday*/
$ endif
$ exit
Thanks
Archie
Archie