|
Thank you, Charles. Brian. -----Original Message----- From: Wilt, Charles [mailto:CWilt@xxxxxxxxxxxx] Sent: Thursday, October 13, 2005 9:46 AM To: RPG programming on the AS400 / iSeries Subject: RE: MOVEL in Freeformat & DDS Actually, DisplayField = %char(NumericField) Left Justifies and trims lead zeros. HTH, Charles Wilt -- iSeries Systems Administrator / Developer Mitsubishi Electric Automotive America ph: 513-573-4343 fax: 513-398-1121 -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Fisher, Don Sent: Thursday, October 13, 2005 9:32 AM To: 'RPG programming on the AS400 / iSeries' Subject: RE: MOVEL in Freeformat & DDS You would have to define the field as character in the DDS and then use EVAL DisplayField = %TRIM(%EDITC(NumericField:'3')) to display the number left justified without leading zeroes. Hope that helps. Donald R. Fisher, III Project Manager Roomstore Furniture Company (804) 784-7600 extension 2124 DFisher@xxxxxxxxxxxxx <clip> I have a numeric field that has an EDTCDE(3) on it in the DDS to strip off leading zeros. However, when I display the field it right-justifies the number. <clip>
As an Amazon Associate we earn from qualifying purchases.
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.