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



David,

My understanding is that any numeric field is stored as packed within the program memory, regardless of how it is stored externally.

If you want to pass field myzone into a procedure, I believe you can define it on the D specs for the procedure as S. as found on your I and O specs.

Alternatively, you could more field myzone to another field name for this purpose.


Regards,
John McKay
www.rpglanguage.com

----- Original Message ----- From: "David FOXWELL" <David.FOXWELL@xxxxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, October 22, 2008 10:46 AM
Subject: Packed and zoned decimal problem


Hi,

If I compile this simple code :
FTST821 UP E K DISK

C UPDATE TST821F1

Where TST821 is a DDS PF with myzone declared as 13S 2,

My compile listing shows 3 references to myzone :

Here,
ITST821F1
I S 13 21 2myzone

Here,
OTST821F1
O myzone 42S ZONE 13,2
And here :
Références de zone globales :
Zone Attributs Références (D=Défini M=Mo
myzone P(13,2) 54M 65


Could someone explain the last definition? If I were to pass myzone by reference to a procedure, it's the packed version that gets passed. How should I pass this zone?

Thanks!

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.