Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Submit command

 
Nicky Power
Occasional Contributor

Submit command

Folks,

What is the command to submit a backup every 7 days from tomorrow onwards at 7am?

I thought it was something like?

submit/user=operator/after="tomorrow+7"/que=backup/noprinter -
sys$sysdevice:[operator]hqnbck.com

this schedules the backup every morning at 7am..
7 REPLIES
Heinz W Genhart
Honored Contributor

Re: Submit command

Hi Nicky

I attach a commandfile for you, which solves this problem.

Hope that helps

Regards

Heinz
labadie_1
Honored Contributor

Re: Submit command

Your .com file should begin by resubmitting itself every 7 days, so something like

$ submit/noprint 'f$env("procedure")'/user=xxx/noprin
/after="+7-0" /que=mybatch_queue

and if you call this procedure weekly_backup.com, to submit it tomorrow morning, you can do now

subm/after="tom+07:00" weekly_backup/queue=mybatch_queue ...

"tom+07:00" means tomorrow at 7 o clock.
Hoff
Honored Contributor

Re: Submit command

I tend to submit daily, and handle the weekday processing with some logic in DCL. Having the procedure resubmit itself daily means you don't have to worry about job or system restarts. So long as there's always at most one job in the queue and the first thing it does is requeue itself for tomorrow at 7am, it (generally) does the right thing.

I use this daily batch job because I find I tend to have a mixture of daily maintenance and staggered BACKUPs and other such; some daily and staggered weekly stuff. I'll have GOTO or GOSUB or CALL for some processing, based on the weekday. Even if all the job does is re-queue itself for tomorrow and exit, it's not a load on the system.

DECscheduler (now a CA product of some other name, IIRC) and other packages can provide this scheduling more directly, and there's a Freeware Kronos package around IIRC. DECscheduler (now ScheduleIT?) can handle recovery and restart and error reporting, too. Haven't looked in detail at Kronos.

Jan van den Ende
Honored Contributor

Re: Submit command

Nicky,

I once made a procedure that calculates "the next time" to do somthing, based on a wide choice of items, such as "next sunday" "last monday of month" "3rd tuesday" etc.

http://dcl.openvms.org/stories.php?story=04/10/15/8590853

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Jan van den Ende
Honored Contributor

Re: Submit command

PS

>>>
" I have assigned points to 0 of 24 responses to my questions. "<<<
please check out

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Don't rust yours pelled jacker to fine doll missed aches.
Petr Spisek
Regular Advisor

Re: Submit command

$ SubmitTime = F$CvTime("+8-","ABSOLUTE","DATE")+":07:00"
$ Submit ... /After='SubmitTime'

Petr
Petr Spisek
Regular Advisor

Re: Submit command

Sorry, the pervious reply explains every 8 days resubmit.
Every 7 days (included in procedure):
$ SubmitTime = F$CvTime("+7-","ABSOLUTE","DATE")+":07:00"

... The first submit perfotm manualy (Submit/After="tomorow+7").
Petr