× 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.



"Wilt, Charles" wrote:
> 
> And if you happen to be at v5r3 you can simply use:
> 
> cuPD = %dec( %date: *ISO) );
> 
> and skip the conversion to character.
> 
> Question for the list....why did IBM improve %dec but not %int.
> 

%int wouldn't work for timestamps.  Even though an 8 byte integer is
defined as "20i", the maximum value has fewer than twenty digits, so any
timestamp after the year 999 wouldn't fit in an integer.  %INT would be
ok for dates and times, but we thought it was sufficient to enhance %DEC
to take d/t/z types.  If you're thinking that integers perform better
than decimal values, any tiny performance benefit of int over decimal
would be far far outweighed by the cost of actually extracting the
numeric value from the date.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.