|
Hello Rod, You wrote: >Does anyone know how to take any AS/400 CCSID and determine the >equivalent PC Code page as IBM does in the parameter values *PCASCII and >*STDASCII? I know the values when using US CCSID 037 but the rest . . .? There is a CDRA API called Get Related Default CCSID described in the National Language APIs which will return the CCSID for a given CCSID and Encoding Scheme (ES). The tricky part is determining the ES. The ES is described in the Character Data Representation Architecture Reference and Registry (SC09-2190) which you will need if you intend to do much with NLS APIs. When I got mine it was only available in hardcopy. I haven't seen it on softcopy (other than the CD that come with the book). You can borrow my copy if you wish. For your requirements you could simply use an ES of x'4105' for *PCASCII and x'2100' for *STDASCII since you are likely to be using SBCS data only. x'4105' is ISO 8 (ASCII Code), SBCS x'2100' is IBM-PC Data, SBCS There are two versions of this API on the AS/400. The 'official' CDRA one is called CDRGRDC and is in QSYS2. The other is QTQGRDC and is in QSYS. Other than the name differences they are identical. I use the QTQGRDC API because it will be on all systems. The CDRGRDC API is only present if BOSS option 1 (Extended Base Support) is installed -- although I haven't seen a system that did not have that installed. Regards, Simon Coulter. -------------------------------------------------------------------- FlyByNight Software AS/400 Technical Specialists http://www.flybynight.com.au/ Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au \ / X ASCII Ribbon campaign against HTML E-Mail / \ --------------------------------------------------------------------
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.