edit codes and edit words will not truncate digits. they can suppress
leading zeros but not trailing zeros. move the data into a 17s 2 field
and use it for the output field.

Thanks,
Tommy Holden



"Willie J. Moore" <WJMoore@xxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
07/20/2007 01:13 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
<rpg400-l@xxxxxxxxxxxx>
cc

Subject
EDTCDE/EDTWRD Question






I have a field that is defined as 17S 7, with EDTCDE(1). We key in
123.50.
The field prints as follows: 123.5000000. What I would like it to print
like is 123.50. I have tried a couple of different EDTCDEs and EDTWRDs,
but have not been able to get the results it wanted.
Any suggests would be appericated.
William Moore




This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.