CL Command Reference - CRTLOCALE
CL Command List > CRTLOCALE Reference
Description:
The Create Locale (CRTLOCALE) command creates a locale object (*LOCALE) using the source information from the file provided on the SRCFILE parameter.
A locale is an object that can determine how data is processed, printed, and displayed. Locales are made up of categories that define language, cultural data, and character sets. Locales, in the form of a system object, are not shipped with the operating system. Rather, the locale definition source files are provided.
Restriction
Locales must be created in the QSYS file system.
Examples:
CRTLOCALE LOCALE(¡¯/QSYS.LIB/MYLIB.LIB/USLOCALE.LOCALE¡¯)
SRCFILE(¡¯/QSYS.LIB/MYLIB.LIB/LSRC.FILE/USLOCALE.MBR¡¯)
CCSID(37) TEXT(¡¯Locale for USA¡¯)
This command creates a locale named USLOCALE in the library called MYLIB in the QSYS.LIB file system with a CCSID of 37. The text parameter describes this as a locale for the USA.
CRTLOCALE LOCALE(¡¯/QSYS.LIB/MYLIB.LIB/USLOCALE.EXAMPLE¡¯)
SRCFILE(¡¯/QSYS.LIB/MYLIB.LIB/LSRC.FILE/EXAMPLE.MBR¡¯)
CCSID(*UTF)) TEXT(¡¯UTF Locale examples¡¯)
This command creates two locales named EXAMPLE_4 with a CCSID of 1232 and EXAMPLE_8 with a CCSID of 1208 in the library called MYLIB in the QSYS.LIB file system. The text parameter describes them as UTF locale examples.