ibm-information-center/dist/eclipse/plugins/i5OS.ic.nls_5.4.0.1/rbagslocale.htm

99 lines
7.1 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Work with locales" />
<meta name="abstract" content="Locales are used primarily in ILE-based application programs. Additionally, the Retrieve Locale Information (OPM, QLGRTVLC; ILE, QlgRetrieveLocaleInformation) API retrieves one or all categories of a locale." />
<meta name="description" content="Locales are used primarily in ILE-based application programs. Additionally, the Retrieve Locale Information (OPM, QLGRTVLC; ILE, QlgRetrieveLocaleInformation) API retrieves one or all categories of a locale." />
<meta name="DC.Relation" scheme="URI" content="rbagshandlingdata.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslocalerestrictions.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslocalecatdetail.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslocalesymbolicnames.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslocaleprogexamp.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslocaleover.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsinstalllocales.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslocaleover.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/QLGRTVLC.htm" />
<meta name="DC.Relation" scheme="URI" content="../apiref/api.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtlocale.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagssyssuplocalesourcedef.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsixamplecreatelocale.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagslocaleover.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsinstalllocales.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagssyssuplocalesourcedef.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbagslocale" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Work with locales</title>
</head>
<body id="rbagslocale"><a name="rbagslocale"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Work with locales</h1>
<div><p>Locales are used primarily in ILE-based application programs. Additionally,
the Retrieve Locale Information (OPM, QLGRTVLC; ILE, QlgRetrieveLocaleInformation)
API retrieves one or all categories of a locale.</p>
<div class="section" id="rbagslocale__HDRLOCALEBENEFITS"><a name="rbagslocale__HDRLOCALEBENEFITS"><!-- --></a><h4 class="sectiontitle">Benefits of using locales in global
applications</h4><p>Applications can be created independent of language,
cultural data, or specific characters. Locales can be accessed to provide
this type of support to any integrated language environment-based application.</p>
<p>For
example, the LC_TIME category within a locale can be defined in any of the
following ways, or in any combination that is convenient for the environment
in which the application runs:</p>
<ul><li>HH:MM:SS</li>
<li>MM:SS:HH</li>
<li>SS:MM:HH</li>
</ul>
</div>
<div class="section"><h4 class="sectiontitle">Create locales</h4><p>Locales are created
using the Create Locale (CRTLOCALE) command. The source file used to create
the locale is named QLOCALESRC, in the QSYSLOCALE library. This library is
loaded with option 21 of the operating system. These source files cannot be
changed. Instead, they must be copied and then edited if changes are required.</p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbagslocalerestrictions.htm">Locale restrictions</a></strong><br />
This list contains restrictions when using locales to set job attributes.</li>
<li class="ulchildlink"><strong><a href="rbagslocalecatdetail.htm">Locale categories</a></strong><br />
This table describes the locale categories that are supported on i5/OS™.</li>
<li class="ulchildlink"><strong><a href="rbagslocalesymbolicnames.htm">Locale symbolic names</a></strong><br />
i5/OS™ supports
locale symbolic names based on predefined names from the X/Open Standard portable
character set.</li>
<li class="ulchildlink"><strong><a href="rbagslocaleprogexamp.htm">Examples: Locale programming</a></strong><br />
In addition to the examples in this topic, The locale categories information provides programming examples for each of the different locale categories.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagshandlingdata.htm" title="There are ways in which the operating system enables you to handle data in a globalized environment. These topics describe Unicode and Unicode data, the Chinese standard GB18030, how to use CCSIDs to integrate multiple language environments consistently, and how to use bidirectional data, DBCS data, and locales.">Handle data in globalized applications</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbagslocaleover.htm" title="A locale is an object that can determine how data is processed, printed, and displayed.">Locales</a></div>
<div><a href="rbagsinstalllocales.htm" title="If you are installing a new release, you can request that library QSYSLOCALE be installed on the system at that time.">Install and enable locales</a></div>
<div><a href="rbagssyssuplocalesourcedef.htm" title="The system-supplied locale source definition file members are in the optionally installable library QSYSLOCALE in the QLOCALESRC source file. The source file members are encoded in CCSID 37 and are read only.">System-supplied locales and recommended CCSIDs</a></div>
<div><a href="rbagsixamplecreatelocale.htm" title="This example contains the steps necessary for creating a locale. The example also shows how to enable the locale.">Example: Create a locale</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../apis/QLGRTVLC.htm">Retrieve Locale Information (QLGRTVLC) API</a></div>
<div><a href="../apiref/api.htm">Application programming interfaces (APIs)</a></div>
<div><a href="../cl/crtlocale.htm">Create Locale (CRTLOCALE) command</a></div>
</div>
</div>
</body>
</html>