- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- how to submit a daily job?
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
09-26-2005 03:43 PM
09-26-2005 03:43 PM
a simple question
how can i submit a job and let it do every 8 am?
i know, this is a simple question, but i'm new here :p
thanks in advance...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:54 PM
09-26-2005 03:54 PM
SolutionThe basic approach is to start the batch job once, and have it re-submit of itself as a first step.
This would be done with a line like:
$subm/noti/log/noprint/after="tomorrow+8:0:0" 'f$environment("procedure")
- Try it!
- Check the help!
- Think about whether you want the exact version number there.
- realize that batch jobs are submitted by file-id, not by name (so be attentive with edits)
- consider a 'jacket' job to pick up the most recent atch job version.
- consider a 'cron' super batch job to launch weekly/daily/hourly jobs
- Check the help again:
= $help dcl date
= $help lexi [f$parse] [f$searc] [f$env]
Google for more examples
Enjoy,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:59 PM
09-26-2005 03:59 PM
Re: how to submit a daily job?
Peter Q
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 05:07 PM
09-26-2005 05:07 PM
Re: how to submit a daily job?
i know that SUBMIT is to submit a batch job.and i also looked into the help info on this command.
there is actually a parameter (/after) can identify the time you need to submit it. but i have no idea about how to submit once and let it run each day...
that's my question~
let's discard the document here, due to this is simple question, just some command need be typed here, who can answer it?
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 05:17 PM
09-26-2005 05:17 PM
Re: how to submit a daily job?
you have to have inside the procedure the command for resubmit. The best is to put it somewhere near the beginning. But it depends on how your procedure is structured. It's the same as it have been mentioned here.
$subm/noti/log/noprint/after="tomorrow+8:0:0" 'f$environment("procedure")
That will do the job.
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 06:29 PM
09-26-2005 06:29 PM
Re: how to submit a daily job?
The others have given the VSM solution: Let the job resubmit itself.
Otherwise, there are solutions in the market that do the type of thing you want. Eventually, there might even be "cron for VMS"
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 06:43 PM
09-26-2005 06:43 PM
Re: how to submit a daily job?
q
Leave the money on the Fridge...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 08:50 PM
09-26-2005 08:50 PM
Re: how to submit a daily job?
See enclosure.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 11:06 PM
09-26-2005 11:06 PM
Re: how to submit a daily job?
>> let's discard the document here, due to this is simple question, just some command need be typed here, who can answer it?
99% if the people READING this forum can.
I can, and I did answer the question.
Read more. Write less.
Best regards,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 04:47 AM
09-27-2005 04:47 AM
Re: how to submit a daily job?
The product formerly known as DECscheduler is still available from and supported by CA. Now called Unicenter Job Management for OpenVMS, the product is fully supported and even runs on OpenVMS 8.2 on Alpha and I64.
This is a piece of good software that, in my opinion, should not have been sold, and probably should have been integrated into the OpenVMS operating system.
I agree with the other replies, having a job resubmit itself is a reasonable solution is a small number of such jobs are to be managed. I typically break down the command to two or three commands, partly because I want the move recent version submitted, not necessarily the version currently running:
$ procedure_file = f$environment("procedure")
$ procedure = f$element(0,";",procedure_file)
$ submit/after="tomorrow+0-08:00:00" 'procedure'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 05:25 AM
09-27-2005 05:25 AM
Re: how to submit a daily job?
Another way that I've deal with this in some of my DCL code is to have the very beginning of the procedure check to see if there is a more recent version of itself and recurse to that version.
I'm attaching an example procedure that illustrates the recursion method.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 05:28 AM
09-27-2005 05:28 AM
Re: how to submit a daily job?
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 05:36 AM
09-27-2005 05:36 AM
Re: how to submit a daily job?
I'm attaching a copy of FINDJOB here in case anybody's interested in actually making the RESUBMIT work.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 03:01 PM
09-27-2005 03:01 PM
Re: how to submit a daily job?
$ procedure_file = f$environment("procedure")
$ procedure = f$element(0,";",procedure_file)
$ submit/after="tomorrow+0-08:00:00" 'procedure'
can be reduced down to (the single line)
$ submit/after="tomorrow+0-08:00:00" 'f$element(0,";",f$environment("procedure"))'
As said, make it the first line of your procedure.
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 08:50 PM
09-27-2005 08:50 PM
Re: how to submit a daily job?
i'll try the easiest way later :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 10:05 PM
09-27-2005 10:05 PM
Re: how to submit a daily job?
If you create a new version of the file, and purge the old one before the job has run, queue manager won't find it. Even if the file is renamed to the same version it won't be found.
This has implications for batch scripts that are part of installation kits.
The work-round we used was to create a very simple script that takes its parameters and passes them to the real command file. This is created once if necessary, and never changed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:57 PM
09-27-2005 11:57 PM
Re: how to submit a daily job?
We use it heavily on VAX/Alpha, it is cluster aware. It checks for the crontab entries and starts the jobs using batch.
I do not know, if can be found on the web, but if someone is interested I can make it available.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 12:09 AM
09-28-2005 12:09 AM
Re: how to submit a daily job?
please make it available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 12:52 AM
09-28-2005 12:52 AM
Re: how to submit a daily job?
btw, Karl
pls let it available :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 08:28 AM
09-28-2005 08:28 AM
Re: how to submit a daily job?
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 05:53 PM
09-28-2005 05:53 PM
Re: how to submit a daily job?
sitespecifics in CRON and create a fairly
easy to install kit any time soon...
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 08:16 PM
09-28-2005 08:16 PM
Re: how to submit a daily job?
There was a DCL based cron on a VMS SIG tape around 1993 by Ulli Horlacher:
http://wwwvms.mppmu.mpg.de/vmssig/archive.c/cron.zip
Another one from NASA, Fortran based:
http://wwwvms.mppmu.mpg.de/vmssig/nasa/kronos2_11.zip
And Karl, I wonder if this cron.c program is the one You mentioned:
http://wwwvms.mppmu.mpg.de/vmssig/src/c/cron.c
?