Operating System - OpenVMS
1753751 Members
5130 Online
108799 Solutions
New Discussion юеВ

Re: Time Change on the VAX

 
Starla Johnston
Occasional Contributor

Time Change on the VAX

Anyone out there have an automated batch job to change the time on a VAX?
5 REPLIES 5
Daniel Fernandez Illan
Trusted Contributor

Re: Time Change on the VAX

Hi Starla
See
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=966078
this question includes time changes in VMS.
Saludos.
Daniel.
Volker Halle
Honored Contributor

Re: Time Change on the VAX

Starla,

see SYS$EXAMPLES:daylight_savings.com - standard OpenVMS example file. You can invoke it and provide answers to the questions and have it submit a batch job, which will change the time at the appropriate date and time.

See the following description from the System Manager's Manual:

http://h71000.www7.hp.com/doc/73final/6017/6017pro_018.html#vax_dst_new_sec

Volker.
Starla Johnston
Occasional Contributor

Re: Time Change on the VAX

These are old servers running VMS 5.5-2 or VMS 7.1 The automated daylight.com is only on Alphas VMS 7.3 However, the information provided was very helpful. I will attempt to write a timechange.com file and submit it to run in a que at the appropriate time. Thanks to everyone.
Robert_Boyd
Respected Contributor

Re: Time Change on the VAX

Starla,

I have some code you can have to work with -- I originally developed it for a mixed VAX and ALPHA site. I think it should be adaptable to still run on V5.5-2. I don't know if I tweaked it beyond that or not.

If you're interested I can email you the code -- there are a couple of utility subprocedures it uses for doing date calculations.

Robert
Master you were right about 1 thing -- the negotiations were SHORT!
Lucinda_1
Frequent Advisor

Re: Time Change on the VAX

not sure if this will help, this is the .com file i used on an old vax
$ set proc/priv=all
$ run sys$system:sysman
set environment/CLUSTER
set profile/priv=all
do set time=3-apr-2004:01:00:0.0
exit


I submitted it to a batch que to run at 2am