$!***************************************************************************** $!* * $!* SYS$EXAMPLES:DAYLIGHT_SAVINGS.COM * $!* * $!* Copyright 2000 Compaq Computer Corporation * $!* * $!* Compaq and the Compaq logo Registered in U.S. Patent and Trademark Office.* $!* * $!* Confidential computer software. Valid license from Compaq required for * $!* possession, use or copying. Consistent with FAR 12.211 and 12.212, * $!* Commercial Computer Software, Computer Software Documentation, and * $!* Technical Data for Commercial Items are licensed to the U.S. Government * $!* under vendors standard commercial license. * $!* * $!***************************************************************************** $! $! The following $DECK/$EOD prevents the comments/instructions $! from being removed if this procedure is DCLDIETed. $ goto after_deck $DECK $! This procedure is useful to change between Daylight Savings Time $! and Standard Time when automatic OpenVMS DST/STD changing and $! DTSS are not in use. $! $! It will either ADD or SUBTRACT one hour from the system time. $! $! It will re-set the system Time Differential Factor, $! including $! the logical name, SYS$TIMEZONE_DIFFERENTIAL, $! the system cell, EXE$GQ_TDF, and $! the file SYS$SYSTEM:SYS$TIMEZONE.DAT. $! $! The following logicals area also reset $! $! SYS$TIMEZONE_DAYLIGHT_SAVING $! SYS$TIMEZONE_NAME $! SYS$TIMEZONE_RULE $! $! N.B. -- These logicals are set based on the time zone rule file $! defined in SYS$SYSTEM:SYS$TIMEZONE_SRC.DAT, and the $! current date and time. This if the time specfied in $! that time zone rule file for the change to/from DST/STD $! is in the future, they will not be set as you might expect. $! After the time for the change has past, you can re-set $! these logicals by executing $! $! $ @SYS$MANAGER:UTC$TIME_SETUP "" RULE" $! $! or by re-booting the system. $! $! This procedure creates a command procedure, DST$CHANGE.COM, in the $! current directory. The created procedure can execute on the current $! node only, or SYSMAN can be used to execute on all nodes in the cluster. $! If you choose to use SYSMAN, a second procedure, DST$SYSMAN.COM is $! created to execute DST$CHANGE.COM by using a SYSMAN DO command. $! $! You can choose to execute immediately; to queue a job for future execution; $! or to save for possible modification. If you choose to queue a job, $! it will be submitted to the SYS$BACH queue; if this is NOT satisfactory, $! save the procedure(s) and manually submit to the correct queue. $! $! INPUT PARAMETERS $! $! All parameters are optional. $! If parameters are not provided, input will be promoted $! and read from SYS$OUTPUT (normally the terminal). $! $! P1 DAYLIGHT or STANDARD -- which you are changing _to_ $! P2 NODE or CLUSTER -- changing this NODE only or the entire CLUSTER $! P3 EXECUTE, QUEUE or SAVE -- EXECUTE now, QUEUE for later $! or just SAVE the sysman procedure(s) $! P4 -- time to run if QUEUED; unused otherwise $! $! To execute this command procedure interactively, enter: $! $! $ @SYS$EXAMPLES:DAYLIGHT_SAVINGS $! $! and respond to the prompts. $! $! To execute this command procedure with input provided by parameters, $! enter: $! $! $ @SYS$EXAMPLES:DAYLIGHT_SAVINGS - $! _$ [ DAYLIGHT | STANDARD ] - $! _$ [ NODE | CLUSTER ] - $! _$ [ EXECUTE | QUEUE