|
Hi John - >I want it to read nice, ie. >if the number is 115090 (say 11 long, 2 decimal) >i want it to appear in string as: 1,150.90 but >in a readable fashion > >GOOD...: Yadda yadda 1,150.90 sumtin else. >NO GOOD: Yadda yadda 1,150.90 sumtin else. ... > >From the work with messages msgfile screen: >----------------------------------------------------------- > Change Message Description (CHGMSGD) > > Type choices, press Enter. > > Message data fields formats: _ > Data type . . . . . . . . . . *CHAR___ *SAME, *NONE, *QTDCHAR... > Length . . . . . . . . . . . . *VARY_ Number, *VARY > *VARY bytes or dec pos . . . . 2_____ Number > + for more values _ >----------------------------------------------------------- You don't need to use a varying field. Make it a fixed length character field as long as the longest possible edited value. In your program use %TRIML(%EDITC to load the field with the number left-justified. The substitution process itself will strip off the trailing blanks. Ken Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.