× 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 2011/7/13 5:25 PM, CRPence wrote:
...
As I recall the Date\Time support in the languages had some performance
issues due to implementation choices. I recall also that [a couple
releases] later some changes were made to improve against that original
implementation [perhaps only in the RPG HLL?]; something to do with
utilization of external-form [visual presentation formats] versus
internal-form [integer data] which required conversion from the former
to the latter before doing calculations, and then the reverse conversion
[to external form] for writing to the database. The original
implementation in the database as I understood, was chosen to fit nicer
with both the interface to and the [original design and] implementation
of, the HLLs. I believe part of the changes to improve performance may
have been via exposing database record buffers to an HLL [perhaps only
RPG updated to take advantage] with date data in internal-form versus
external-form for read, and similarly enabling the record buffer from
the HLL to contain internal-form versus external-form for write.


Chuck, the RPG compiler and runtime only work with date data in external-form. The runtime uses MI functions to do any calculations involving dates, including assignments. I believe those MI functions transform to internal form before doing the actual work, and then back to external form for the returned value.

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.