HP3000-L Archives

May 1999, Week 3

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:
John Zoltak <[log in to unmask]>
Reply To:
John Zoltak <[log in to unmask]>
Date:
Tue, 18 May 1999 08:55:09 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (70 lines)
Ron,

The time and date are in the CLOCK and CALENDAR formats. You can pass
these values to the FMTCALENDAR/FMTCLOCK/FMTDATE intrinsics and extract
the parts you want. Or using the layout shown in the intrinsic manual,
construct your own formatting routines.

John Zoltak
North American Mfg Co
Cleveland Ohio

> -----Original Message-----
> From: [log in to unmask]
> [mailto:[log in to unmask]]
> Sent: Tuesday, May 18, 1999 2:23 AM
> To: [log in to unmask]
> Subject: [HP3000-L] Writelog and date time format
>
>
> I am trying to extract DBMemo records out of image log files to a file
> and use them for some reporting. Bradmark's DBAudit can report it but
> cannot extract it to a file and as such I am trying to do it directly
> from the log files. I can get the records okay but cannot
> interpret the
> date and time correctly. These details are apparently written
> using the
> "WRITELOG" intrinsic but I do not know in what form the date and time
> are in. I assume I will need to convert them but from what?
>
> The documentation says "WRITELOG" is of format
> WRITELOG
>
>    HALFWORD(0)   -   RECORD NUMBER (1 WORD)
>
>    HALFWORD(2)   -   CHECKSUM
>
>    HALFWORD(3)   -   SUBSYSTEM IDENTIFIER (lST BYTE)
>
>    HALFWORD(3)   -   LOG RECORD CODE (2ND BYTE - 2)
>
>    HALFWORD(4)   -   TIME
>
>    HALFWORD(6)   -   DATE
>
>    HALFWORD(7)   -   LOG NUMBER
>
>    HALFWORD(8)   -   USER BUFFER LENGTH
>
>    HALFWORD(9)   -   USER BUFFER AREA
>
>
> Defining the time as an double integer (in COBOL speak S9(9) comp)
> gives me a value of 235341321. DB Audit reports the time as 14:07. The
> date when defined as an integer (S9(4) comp) gives me 14710-, the
> reports say 17th May 99.
>
> Can anyone shed some light.
>
>
> Thanks
>
> Ron McFarlane
> Project Manager
> Mercantile Mutual
>
>
> --== Sent via Deja.com http://www.deja.com/ ==--
> ---Share what you know. Learn what you don't.---
>

ATOM RSS1 RSS2