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



Aruna Thota wrote:
Hello everybody,
          I want to know the diffrence between the datatypes zoned and
packed.
Are there any specific situations where they have to be used? i.e Usage of
both datatypes.

Thanks


Functionally, zoned decimal numeric, packed decimal numeric, and binary decimal numeric all work exactly the same way. However, you need to explicitly use one of them when a procedure or program requires a (reference) parameter of a specific decimal format. Otherwise, for most RPG programmers, if a decimal numeric field is needed, packed format is the usual choice since it is the most efficient of the decimal numeric formats. (But of course, integer and unsigned are the most efficient numeric formats on the iSeries.)


Cheers! Hans


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.