|
As others have pointed out, you may want to consider using an API such as QlgConvertCase to provide your casing. In addition to previously made comments, you might also keep in mind that toupper() is locale sensitive so unless you also set an appropriate locale prior to using toupper() you may not get the casing you are expecting when running in various environments (a lot of iSeries may have the right CCSID setting for a job (which can be used by QlgConvertCase), but not the right locale). Bruce > >I want to use the C function toupper() in an RPG program. I'm not sure >what I need to code to allow me to use it. It is a little tricky because >toupper() expects ints as arguments and I don't think RPG will let me pass >a non-int as an argument. >
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.