HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Patching 7.3-1 for 2007 Daylight change revisited

 
Rodman S. Regier
Occasional Advisor

Patching 7.3-1 for 2007 Daylight change revisited

I tried the process described in thread ID's 990561 and 1054671 to patch 7.3-1 for 2007 daylight support without apparent success.

I performed the following steps without having impact on the resulting SYS$TIMEZONE_RULE logical.

set def sys$common:[sys$zoneinfo.system.sources]

Edit northamerica.
(change and add new US and Canada rule lines for 2007 Daylight change)

zic -v -d sys$common:[sys$zoneinfo.system.sources] northamerica

@sys$manager:utc$time_setup

Old/new northamerica. files:

diff northamerica.2001 .
************
File SYS$COMMON:[SYS$ZONEINFO.SYSTEM.SOURCES]NORTHAMERICA.2001;1
34 Rule US 1987 max - Apr Sun>=1 2:00 1:00
D
!!$ diff northamerica.2001 .
************
File SYS$COMMON:[SYS$ZONEINFO.SYSTEM.SOURCES]NORTHAMERICA.2001;1
34 Rule US 1987 max - Apr Sun>=1 2:00 1:00 D
35
******
File SYS$COMMON:[SYS$ZONEINFO.SYSTEM.SOURCES]NORTHAMERICA.;7
34 Rule US 1987 2006 - Apr Sun>=1 2:00 1:00 D
35 Rule US 2007 max - Mar Sun>=8 2:00 1:00 D
36 Rule US 2007 max - Nov Sun>=1 2:00 0 S
37
************
************
File SYS$COMMON:[SYS$ZONEINFO.SYSTEM.SOURCES]NORTHAMERICA.2001;1
221 Rule Canada 1987 max - Apr Sun>=1 2:00 1:00 D
222
******
File SYS$COMMON:[SYS$ZONEINFO.SYSTEM.SOURCES]NORTHAMERICA.;7
223 Rule Canada 1987 2006 - Apr Sun>=1 2:00 1:00 D
224 Rule Canada 2007 max - Mar Sun>=8 2:00 1:00 D
225 Rule Canada 2007 max - Nov Sun>=1 2:00 0 S
226



3 REPLIES
John Gillings
Honored Contributor

Re: Patching 7.3-1 for 2007 Daylight change revisited

Rodman,

Did the corresponding files in SYS$TZDIR change after running ZIC? Are you sure the compiled file ended up in the right place? I think they should end up in SYS$COMMON:[SYS$ZONEINFO.SYSTEM.AMERICA]*. Check for failes modified by the ZIC command.

I would have expected the ZIC command to be:

$ zic -v -d SYS$COMMON:[SYS$ZONEINFO.SYSTEM] "sources/northamerica"

Perhaps a subtle difference, but it may affect where the output files go. Sorry, the "logic" (for want of a better term) of most Unix derived utilities is a mystery to me, and my usage is as voodoo spells that seem to mostly work, rather than any real understanding.

Looking at a TZ patched V7.3-2 system, I see the following changes for NORTHAMERICA (search for the string "2007"):

SYS$COMMON:[SYS$ZONEINFO.SYSTEM.SOURCES]NORTHAMERICA.;1

Rule US 2007 max - Mar Sun>=8 2:00 1:00 D
Rule US 2007 max - Nov Sun>=1 2:00 0 S
# date of enactment of this Act or March 1, 2007, whichever is later.
# agree with the 2007 US change. This means we assume most of Canada
# rules and will disagree with the US starting in 2007. This
Rule Canada 2007 max - Mar Sun>=8 2:00 1:00 D
Rule Canada 2007 max - Nov Sun>=1 2:00 0 S
Rule Moncton 2007 max - Mar Sun>=8 0:01 1:00 D
Rule Moncton 2007 max - Nov Sun>=1 0:01 0 S
Rule Winn 2007 max - Mar Sun>=8 2:00s 1:00 D
Rule Winn 2007 max - Nov Sun>=1 2:00s 0 S


A crucible of informative mistakes
Rodman S. Regier
Occasional Advisor

Re: Patching 7.3-1 for 2007 Daylight change revisited

Files did change, but I don't know for sure that the *right* files changed.

I'll give the revised ZIC command a spin
and see what happens.

Rodman S. Regier
Occasional Advisor

Re: Patching 7.3-1 for 2007 Daylight change revisited

Tried supplied syntax and variants, not valid syntax.

!!$ zic -v -d SYS$COMMON:[sys$zoneinfo.system] "sources/northamerica"
dsa0:[sys0.syscommon.][sysexe]zic.exe;1: Can't open sources/northamerica: non-tr
anslatable vms error code: 0x186D4
%rms-f-syn, file specification syntax error
!!$ zic -v -d SYS$COMMON:[sys$zoneinfo.system]
!!$ zic -v -d SYS$COMMON:[sys$zoneinfo.system] sources/northamerica
%DCL-W-NOQUAL, qualifiers not allowed - supply only verb and parameters
\NORTHAMERICA\
!!$ zic -v -d SYS$COMMON:[sys$zoneinfo.system] "sources/northamerica"
dsa0:[sys0.syscommon.][sysexe]zic.exe;1: Can't open sources/northamerica: non-tr
anslatable vms error code: 0x186D4
%rms-f-syn, file specification syntax error
!!$ zic -v -d SYS$COMMON:[sys$zoneinfo.system] sources/northamerica
%DCL-W-NOQUAL, qualifiers not allowed - supply only verb and parameters
\NORTHAMERICA\
!!$ zic -v -d SYS$COMMON:[sys$zoneinfo.system] sources /northamerica
%DCL-W-NOQUAL, qualifiers not allowed - supply only verb and parameters
\NORTHAMERICA\


It would appear that even if I got the alternate mixed VMS/UNIX syntax to work
it ultimately references the same tree and file.