HP3000-L Archives

January 2000, Week 1

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:
Cecile Chi <[log in to unmask]>
Reply To:
Date:
Mon, 3 Jan 2000 15:51:04 EST
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
In a message dated 1/3/00 1:44:39 PM Eastern Standard Time,
[log in to unmask] writes:

<<
 Get the Julian date from COBOL ("00003") in YYDDD format.
 Pass (YY*512) + DDD to FMTCALENDAR intrinsic.
 The intrinsic returns a string of characters like
 "FRI, DEC 31, 1999" and then I'd simply take the year and
 century from that string. It's been working great since 1989, but
 today it returns  WED, JAN  3, 1900
  >>
FMTCALENDAR is working correctly.  You are passing it the internal
"CALENDAR" format date for Jan. 3, 1900.  To get the result you expect,
change your call preparation to pass "(YY + 100) * 512 + DDD"  if the
value of YY is small.

Cecile Chi

ATOM RSS1 RSS2