Even if it is zoned on the file, unless you took steps to force it to be zoned in the program (and that basically means placing it in a DS) numeric fields are always redefined by RPG as packed.

Since you have only shown a small piece of code I can't tell.

But I would suspect that rather than RDi making a mistake.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Feb 14, 2018, at 1:29 PM, Buddy McClean <Buddy.McClean@xxxxxxxxxxxx> wrote:

I have this code in RDI 9.5 in an RPGLE program.


DCL-PR INV619;
I619 Like(OHInv);
Code1619 Char(5);
Code2619 Char(5);
ACD619 Char(1);
RCD619 Char(1);
End-PR;
OHInv in the 2nd line is ( and has been forever ) Zoned Dec. , and it says zoned decimal in the outline display ( most of the time, see below ), and the disk file, and all other programs that use it. The program that calls this program uses the same definition, and it says zoned decimal for the same field.

But the hover note and the compile say OHInv ( and I619 ) is Packed Dec. . Is there something I'm missing?

The prog is short, only has one file, nothing copied from other members.

In various attempts to fix this, ( changing workspace, restarting, etc ) at one time the Outline also said packed decimal for OHInv and EVERY field in that file whether it was zoned or packed.

Only this one program. Weird. Would it be a general RDI patch time?


Has it been this way a while and I didn't notice?
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/wdsci-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.