Operating System - OpenVMS
1751720 Members
6057 Online
108781 Solutions
New Discussion юеВ

how to submit a daily job?

 
SOLVED
Go to solution
Davor_7
Regular Advisor

how to submit a daily job?

Hi all
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...
21 REPLIES 21
Hein van den Heuvel
Honored Contributor
Solution

Re: how to submit a daily job?


The 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.
Peter Quodling
Trusted Contributor

Re: how to submit a daily job?

Of course, help submit, will also give some clues. (ANd don't forget the System Manager's Manual in the documentation set...)

Peter Q

Leave the Money on the Fridge.
Davor_7
Regular Advisor

Re: how to submit a daily job?

thanks both~

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!
Mike Reznak
Trusted Contributor

Re: how to submit a daily job?

Hi,

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


...and I think to myself, what a wonderful world ;o)
Willem Grooters
Honored Contributor

Re: how to submit a daily job?

Looks you want "cron" implememted on VMS ;-)
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
Willem Grooters
OpenVMS Developer & System Manager
Peter Quodling
Trusted Contributor

Re: how to submit a daily job?

There was a Cron for VMS (albeit sometime back...) DECscheduler, as I recall. But it was sold to CA, who have probably filed it. There was a thing called Kronos on the Freeware distribution - probably back around version 4 or so. (of the freeware distribution).

q
Leave the money on the Fridge...
Leave the Money on the Fridge.
Wim Van den Wyngaert
Honored Contributor

Re: how to submit a daily job?

I have a script that is used at boot time to get a job in a queue at a certain hour.
See enclosure.

Wim
Wim
Hein van den Heuvel
Honored Contributor

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.
Jim Geier_1
Regular Advisor

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'