× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Great Dennis, thanks. That seems to be what I'm looking for.

Mark:
My user profile uses *SYSVAL for the locale, and the sys attribute is *NONE.
So for locale specific stuff this means I'm getting '.' for decimal point
whereas the swedish locale, had my system been been set up to use it, really
is ','. So I can't use my current locale, I have to find out which one
I *should
*be using.

My need is basically that I want to enable users who are using different
CCSIDs to be able to use locale specific functions, eg the regex functions.
(Curiousity: regerror() ignores the locale setting and always seem to return
data in CCSID 37 so for that I also have to convert the data back to
whatever CCSID the user job is running under).

Thanks again,
Erik

2010/11/4 Dennis Lovelady <iseries@xxxxxxxxxxxx>

No need to hard code them (nor store them at all, for that matter).

You can use QUSLOBJ to obtain the locale names, and their associated CCSID.
Object type is *LOCALE.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
Fear less, hope more,
eat less, chew more,
whine less, breathe more,
talk less, say more,
hate less, love more,
and all good things will be yours.
-- Swedish proverb



Does anybody of a place on the system where one can find a specific
locale
object for a particular CCSID or language? There is such a table
printed in
the Qshell manual but I'd rather not have to hardcode all that myself.

Eg:
CCSID Corresponding locale
500 /QSYS.LIB/NL_BE.LOCALE
1148 /QSYS.LIB/NL_BE_E.LOCALE
etc

Many thanks.


--
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.