|
The date, time and time stamp fields are not as excessive as DSPPFM would
lead you to believe. Given the following file:
File: ADATE Test date, time & timestamp data types
Libr: CC#PGMPCD Fmt: TESTREC
Mbr : ADATE Scan:
Seq Pg K Field T Len Fd Dd From To Text
5 1 DATE1 L 10 1 10 DATE
10 1 TIME1 T 8 11 18 TIME
15 1 TSTMP Z 26 19 44 TIMESTAMP
the SQL HEX function shows that the lengths are not actually what they seem:
....+....1....+....2....+....3....+....4....+...
DATE1 HEX ( DATE1 )
05/14/97 00256497 actual length 4 bytes
TIME1 HEX ( TIME1 )
15:02:45 150245 actual length 3 bytes
TSTMP HEX ( TSTMP )
1997-05-14-15.02.45.000000 00256497150245000000 actual length 10 bytes
At some level they're playing tricks, and it's apparently a pretty low level
since DSPPFM shows the formatted date, time and timestamp.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.