- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: batch job to run every day automatically.
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
тАО12-16-2008 06:53 PM
тАО12-16-2008 06:53 PM
batch job to run every day automatically.
How can I set up a batch job to run every day automatically.
Ex.Monday 06:00 , Tuesday 06:00 and so on...
OpenVMS:V7.3-2.
I tried to run the job as below command but it ran only one day.
$Submit/log=xyz/noprint/keep/AFTER="TODAY+1-06:00" ABC.com;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 07:17 PM
тАО12-16-2008 07:17 PM
Re: batch job to run every day automatically.
This topic reappears every few months in the ITRC Forum.
While they are dated, doing a search on prior threads for "openvms daily batch job" points to a prior Forum thread at http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1229483623254+28353475&threadId=960315 as well as an Ask The Wizard item entitled "Periodic Rescheduling of Batch Jobs" at http://h71000.www7.hp.com/wizard/wiz_2585.html
For a start, I have supplied pointers rather tban reproducing the entire discussion.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 08:04 PM
тАО12-16-2008 08:04 PM
Re: batch job to run every day automatically.
the job has to resubmit itself. Here's a sample:
symbols may be defined elsewhere
$ queue="queue name"
$ after="time to run"
$ log="log file name"
$ params="/PARAMS=(p1,p2,p3...)"
$ self=F$PARSE(";",F$ENVIRONMENT("PROCEDURE"))
$ IF "''log'".NES."" THEN log="/LOG=''log'"
$ IF "''after'".EQS."" THEN after="TOMORROW+6:00" ! Default run time
$ IF "''queue'".EQS."" THEN queue=F$GETQUI("DISPLAY_ENTRY","QUEUE_NAME",,"THIS_JOB")
$ IF "''queue'".NES."" THEN queue="/QUEUE="+queue
$ SUBMIT/KEEP/NOPRINT 'self' /AFTER="''after'" 'queue' 'log' 'params'
You should perform this early in the procedure so that errors or premature exits don't break the chain of jobs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 08:11 PM
тАО12-16-2008 08:11 PM
Re: batch job to run every day automatically.
Thanks for your help. Is it there any easiest way to resubmit the job everyday itself.If you provide the command it will helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 08:25 PM
тАО12-16-2008 08:25 PM
Re: batch job to run every day automatically.
Please READ and study the help provided.
No there is no standard single command OUTSIDE the procedure to accomplish this.
But you can put the line you used as the first line in the job itself and that will take care of care.. in a coarse way.
John's help, and the other topics, will provided a more refined solution, but it still needs to be included into the job itself.
If there are many jobs to manage, then some folks/companies opt to write a 'super script' to submit other scripts will all features like repeat interval and protection against multiple submits. If you want to go that route, then I would encourage you to investigate commercial schedule tools.
One example, but certainly not the only one, could be JAMS.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2008 01:31 AM
тАО12-17-2008 01:31 AM
Re: batch job to run every day automatically.
Look for CRON or KRONOS files/directories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2008 01:49 AM
тАО12-18-2008 01:49 AM
Re: batch job to run every day automatically.
Issued has been fixed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2008 02:20 AM
тАО12-18-2008 02:20 AM
Re: batch job to run every day automatically.
>>>
Thanks for all help
<<<
So, please read
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
about HOW to say thanks in these forums.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2008 03:50 AM
тАО12-18-2008 03:50 AM
Re: batch job to run every day automatically.
Since I don't see any error in your command, I wonder how you fixed the problem.
Regards --- Teofil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2008 04:15 AM
тАО12-18-2008 04:15 AM
Re: batch job to run every day automatically.
The is no error in the command, but it is just a single shot command submitting ABC.com for tomorrow.
It has to be moved into ABC.com to make it resubmit it self. The command can be copied just as it is, or dressed up a little with F$ENV("PROCEDURE") and stuff like that to make is more manageable.
fwiw,
Hein.