× 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 Thu, Sep 2, 2021 at 5:19 PM DEnglander--- via MIDRANGE-L
<midrange-l@xxxxxxxxxxxxxxxxxx> wrote:

In DDS I can define FILEA with a Zoned numeric field with size 5/2.
In DDS I can define FILEB with a Packed numeric field size 5/2, using
REFFLD as the Keyword to refer to the Zoned field in FILEA. I make the
field in FILEB Packed by placing a "P" in column 35. That will define a
new field in FILEB with the same size as the referenced field in FILEA but
make FILEB's field Packed instead of Zoned.

How do I do that in DDL? I do not want to redefine the field in DDL as
DEC(5,2).

But I think that is the way you specify packed:

https://www.ibm.com/docs/en/i/7.3?topic=elements-data-types

The docs are a little confusing because in the prose, they tend to use
the word "decimal" to refer to the node in the chart that is parent to
both "decimal" and "numeric" terminal (leaf) nodes.

But the chart makes it pretty clear: "decimal" means packed and
"numeric" means zoned.

John Y.

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.