Install and enable locales

If you are installing a new release, you can request that library QSYSLOCALE be installed on the system at that time.

To install library QSYSLOCALE at a later time, type GO LICPGM and press the Enter key. Scroll until you find Extended NLS Support. Select option 1 to install Extended NLS Support.

Locales can be enabled on i5/OS™ by using system values or user profiles.

Enable locales with system values

Two system values are related to locales:

QLOCALE
The system value specifying the locale object. The default is *NONE. Other possible values are:
  • *C

    The C locale is assigned for this user (same result as using *POSIX)

  • *POSIX

    The POSIX (Portable Operating System Interface for Computer Environments) locale path name is assigned for this user.

  • locale path name

    The path name of the locale to be assigned for this user.

QSETJOBATR
A system value that sets job attributes at job start time. The default is *NONE. The following values indicate the job attributes that are to be set from the locale object specified by QLOCALE:
  • *CCSID (Coded character set identifier)

    The CCSID associated with a locale when the locale object is created.

  • *DATFMT (Date format)

    The date format is determined from the locale object.

  • *DATSEP (Date separator)

    The date separator is determined from the locale object.

  • *SRTSEQ (Sort sequence)

    The sort sequence is determined from the locale object

  • *TIMSEP (Time separator)

    The time separator is determined from the locale object.

  • *DECFMT (Decimal format)

    The decimal format is determined from the locale object.

Enable locales with user profiles

Two parameters on the user profile are related to locales:

LOCALE
The parameter value specifying the locale object to use for the LANG environment variable. The default is *NONE. Other possible values are:
  • *SYSVAL

    The system value QLOCALE is used to determine the locale path name to be assigned for this user.

  • *C

    The C locale is assigned for this user (same result as using *POSIX).

  • *POSIX

    The POSIX locale path name is assigned for this user.

  • locale path name

    The path name of the locale to be assigned for this user.

SETJOBATR
The parameter value that sets job attributes at job start time. The default is *NONE. If *SYSVAL is specified, then the attributes are set from the QSETJOBATR value. The same attributes (*CCSID, *TIMSEP, *DATFMT, *DATSEP, *DECFMT, *SRTSEQ) that can be specified on the system value QSETJOBATR can be specified on the SETJOBATR parameter of the user profile.

If you want all users on the system to use locales, setting system values accomplishes this. Alternatively, the user profile is an ideal mechanism if you want to provide locale function to a limited or specific group of users.

Related concepts
Locales
System-supplied locales and recommended CCSIDs
Work with locales