|
The DECFMT keyword on the CHGJOB command can be use to override the QDECFMT system value. The bottom line is you don't have to do anything in your programs or DDS to get this to work properly. If the system value QDECFMT is set properly, the thousands separator and character used to indicate decimal positions will be correct. If you need to override this on a system for a particular user, use the CHGJOB command. The following are valid on the DECFMT parameter on CHGJOB. Decimal format (DECFMT) - Help Specifies the decimal format used for the job. The possible values are: *SAME The value does not change. *SYSVAL The value specified for the QDECFMT system value is used. *BLANK A period (.) is used for the decimal format, zero suppression. 'J' A comma (,) is used for the decimal format, one leading zero. 'I' A comma (,) is used for the decimal format, zero suppression. Hope this helps. Charles L.Massoglia, President Massoglia Technical Consulting, Inc. cmassoglia@voyager.net In MI 517-676-9700 or in NC 919-363-9395 ----- Original Message ----- From: "Andy Leisk" <ALeisk@Banta.com> To: <rpg400-l@midrange.com> Sent: Friday, 22 February, 2002 13:58 Subject: EDTCDE for European format numbers > This message is in MIME format. Since your mail reader does not understand > this format, some or all of this message may not be legible. > -- > [ Picked text/plain from multipart/alternative ] > I think this may well be a DDS and not only an RPG question - but anyway > here goes. > > Is there some way to specify for an externally described print file that I > want the numeric edit codes to use European notation. So for example what > in the USA would say 123,456.78 > in Europe would say 123.456,78 > > the period and comma are used backwards from the USA > or should I say > the USA format is backwards from Europe - depends on ones point of view. > > I am writing some new programs that will be used at a European location > (even though I am in USA) and I need to get decimals & commas flip-flopped. > > > > > Andy Leisk > Senior Programmer Analyst > Banta Global Turnkey Group > Menasha, WI 54952 > (920) 751-4434 > > -- > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > or email: RPG400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > >
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.