×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On 06-Jul-2011 14:20 , Bradley Stone wrote:
Clarification (which I tried to do before).
Date is stored 8,0P. Format is MMDDCCYY
Jan 1, 2011 is stored as
1012011
Oct 10, 2011 is stored as
10102011
Does this help? :)
Presumably then, the "stored as" means to suggest instead "presented
as [when either implicitly or explicitly cast to a character string;
with minimal\default editing]". The two example values would be "stored
as" x'001012011F' and x'010102011F' respectively for the Binary Coded
Decimal internal representation used for SQL DECIMAL(8). Instead of
first casting to character string, first cast to the string-of-digits
using DIGITS, then substring [optionally by RIGHT() instead of SUBSTR()]
the digits that represent the four-digit year:
substr( digits( decimal8field ), 5, 4 )
or perhaps if a[n explicit cast to a] numeric value is desired:
dec( substr( digits( decimal8field ), 5, 4 ), 4 )
Regards, Chuck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.