+-------------------------------IBM Extension--------------------------------+
Format 8 of the SET statement allows you to set and query the locale categories of the current locale. A locale is a system object containing language and cultural information. For example, a locale contains the appropriate format for a date or time in a particular region of the world. The information in a locale is divided into locale categories. For example, locale category LC_TIME contains information about date and time formats. For each run unit there is a DEFAULT locale, a current locale, and from zero to many specific locales. The current locale is altered by setting some or all of its locale categories to the DEFAULT or a specific locale. The name of the specific locale to which a locale category (of the current locale) was set can be placed into an identifier. The contents of a locale category can be changed by setting the locale category from:
Each locale category specified remains in effect for the duration of the run unit or until another SET statement specifying the category is processed.
Set Statement - Format 8
.-----------------.
V |
>>-SET--LOCALE----+-LC_ALL------+-+----------------------------->
+-LC_COLLATE--+
+-LC_CTYPE----+
+-LC_MESSAGES-+
+-LC_MONETARY-+
+-LC_NUMERIC--+
+-LC_TIME-----+
'-LC_TOD------'
>--+---------------------------------------------------------+-->
'-INTO--identifier-10--+--------------------------------+-'
'-+----+--LIBRARY--identifier-11-'
'-IN-'
>--+-------------------------------------------------------------+-><
'-FROM--+-DEFAULT-------------------------------------------+-'
+-identifier-12--+--------------------------------+-+
| '-+----+--LIBRARY--identifier-13-' |
| '-IN-' |
'-mnemonic-name-2-----------------------------------'
The IN LIBRARY phrase is used to specify the library where the locale object exists. For the INTO clause, identifier-11 is updated with the library name for the specified locale category. For the FROM clause, identifier-12 is used to locate the locale object that the locale category will be set to.
If identifier-13 is not specified, a library of *LIBL is assumed. Otherwise, identifier-13 must contain the library where the locale object name, specified in identifier-12, exists. If identifier-11 is specified, it will contain the library name of the locale object to which the current locale category was last set. If the locale name in identifier-10 is DEFAULT, identifier-11 will be set to spaces.
Identifier-11 and identifier-13 are not affected by the *MONOPRC compiler option, and can contain an extended name.
+----------------------------End of IBM Extension----------------------------+
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.