Subject: | |
From: | |
Reply To: | PAUL,GUY (HP-Boise,ex1) |
Date: | Thu, 25 Apr 2002 12:35:43 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
It is because your hardware clock is off by 7hours. CLKUTIL should always
be set to GMT time (-7:00 currently for Pacific). The date/time you enter
after you type START NORECOVERY should be current Pacific daylight time.
To set using SETCLOCK you can do the following:
SETCLOCK TIMEZONE=W7:00 then immediately
SETCLOCK;CANCEL then
SETCLOCK DATE=04/25/2002;TIME=HH:MM;NOW
**Although the above does work I wouldn't do this on a production
system and would instead reboot and use CLKUTIL.
-----Original Message-----
From: Brian Donaldson [mailto:[log in to unmask]]
Sent: Thursday, April 25, 2002 13:00
To: [log in to unmask]
Subject: HP COBOLII: When-Compiled and Current-Date Functions
I have a little problem going on :
In all my Cobol programs I have a banner routine that shows the run
date/time
and the date/time the program was compiled.
I use the functions WHEN-COMPILED and CURRENT-DATE. I use the "ACCEPT"
statement to get the system time.
The run date time is being shown correctly. However, the WHEN-COMPILED is
showing the time as 7 hours BEHIND the correct date/time.
At system startup time I set the hardware clock (via CLKUTIL) to the
appropriate date/time for this time zone (California, USA). As I start the
system from the "ISL>" prompt I put in the same date/time as I put in at the
CLKUTIL prompt.
My "TZ" variable is set correctly for my time zone, i.e "PST8PDT"
Why is the compiled date/time off by 7 hours?
Here is a sample of the program banner:
* SPUDRIVR.NMPROG.SPUTIL 04/25/2002 11:25:04 *
* Compiled: 04/25/2002 04:24:28
*
This program was compiled at 11:24am NOT 4:24am.
Thank you in advance,
Brian.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|