HP3000-L Archives

April 2002, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Brian Donaldson <[log in to unmask]>
Reply To:
Date:
Thu, 25 Apr 2002 14:59:43 EDT
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
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 *

ATOM RSS1 RSS2