HP3000-L Archives

February 2000, 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:
Jim Phillips <[log in to unmask]>
Reply To:
Jim Phillips <[log in to unmask]>
Date:
Thu, 24 Feb 2000 13:08:42 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
Tracy Pierce <[log in to unmask]> writes:

> There's no such thing as a DATE field to Image.  You need eight decimal
> digits to really do dates right, storing via ccyymmdd format.  If you have
> the space, Z8 (pic 9(8)) works nicely - you can then select a particular
> month or year quite nicely without any data conversion.   If space is at a
> premium, I2 (pic s9(9) comp) will work, but your software will pay a data
> conversion price.

Having been there, done that; I would recommend against using Z8 for a date
field.  Z8 is not equivalent to COBOL PIC 9(8), but COBOL PIC S9(8), a
subtle distinction to be sure, but one that can bite you when using
IMAGE/SQL and/or ODBC access.  My recommendation is to use the X8 IMAGE
definition for dates.  These can be readily redefined as COBOL 9(8) with no
repercussions.


Jim Phillips                            Manager of Information Systems
E-Mail: [log in to unmask]     Therm-O-Link, Inc.
Phone: (330) 527-2124                   P. O. Box 285
  Fax: (330) 527-2123                   Garrettsville, Ohio  44231

ATOM RSS1 RSS2