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


  • Subject: Re: Re[2]: Numerics PACKED, ODD format -- Always recommended
  • From: Jon Paris <paris@xxxxxxxxxx>
  • Date: Fri, 13 Mar 1998 18:09:35 -0500

>>"PGMs on the AS400 internally default numeric data to packed, translating
zoned
fields before use. Even length packed fields require the first nibble to be
zero, which has no impact on DASD, but which does slightly impact performance.
"<<

Couple of comments.  First only RPG programs exhibit this tendency to convert
everything to packed unless told otherwise.  COBOL, PL/I, C, etc. don't do
this.  I know - I know - RPG is the only language that counts !!!

Second, in most cases the upper nibble of an even length field is only zeroed
when being stored, not whenever it is used.  For this reason it doesn't always
have as much impact on performance as you might imagine.  For example, if you
read a record containing a 6 digit packed field and then use it as the source
in 9 MOVE statements, the overhead would only occur in 10% of the operations
using the field i.e. the one that took the field from the I/O buffer and moved
it into the program's storage area.

Jon Paris - AS/400 AD Market Support - paris@ca.ibm.com
Phone: (416) 448-4019   -   Fax: (416) 448-4414
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.