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

101 lines
5.8 KiB
HTML

<?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="Example: How locales work" />
<meta name="abstract" content="These two examples focus on the LOCALE and SETJOBATR parameter values specified on the user profile." />
<meta name="description" content="These two examples focus on the LOCALE and SETJOBATR parameter values specified on the user profile." />
<meta name="DC.Relation" scheme="URI" content="rbagslocaleprogexamp.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsprimarylanguage.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="rbagsixunderlocales" />
<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>Example: How locales work</title>
</head>
<body id="rbagsixunderlocales"><a name="rbagsixunderlocales"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: How locales work</h1>
<div><p>These two examples focus on the LOCALE and SETJOBATR parameter
values specified on the user profile. </p>
<p>The first example illustrates using locales to establish
job attributes. The user profile parameters LOCALE and SETJOBATR have values
of *SYSVAL. This means that the job attributes at job start time come from
the QLOCALE value based on the values in QSETJOBATR.</p>
<br /><img src="rbags522.gif" alt="Use locales to establish job attributes" /><br /><p>If a job runs based on the information in
the figure, the following conditions are true:</p>
<ul><li>The locale used is XYZ. <p>This is because the user profile parameter
value for LOCALE was *SYSVAL. The *SYSVAL value is XYZ.</p>
</li>
<li>The CCSID is based on the value specified when locale XYZ was created. <p>This
value is specified when the LOCALE object is created using the CRTLOCALE command.</p>
</li>
<li>The time separator is derived from locale XYZ. <p>This value is derived
from the LC_TIME category specified in LOCALE XYZ.</p>
</li>
<li>The date format separator is derived from locale XYZ. <p>This value is
derived from the LC_TIME category specified in LOCALE XYZ.</p>
</li>
<li>The data separator is derived from locale XYZ. <p>This value is derived
from the LC_TIME category specified in LOCALE XYZ.</p>
</li>
<li>The decimal format character is derived from locale XYZ. <p>This value
is derived from the LC_NUMERIC category specified in LOCALE XYZ.</p>
</li>
</ul>
<p>In the second example the user profile LOCALE parameter value is *SYSVAL
and the SETJOBATR parameter values is *NONE. This means that the LOCALE value
is determined by looking at the system value QLOCALE. When the SETJOBATR value
is *NONE, job attributes are determined by the values in the user profile.</p>
<p>Remember, because the user profile SETJOBATR parameter was *NONE, the system's
search resulted in using the values specified for QCCSID, QTIMSEP, QDATFMT,
QSRTSEQ, and QDATSEP.</p>
<br /><img src="rbags523.gif" alt="User profile set to sysval" /><br /><p>If a job runs based on the information in this example,
the following conditions are true:</p>
<ul><li>The locale used is XYZ. <p>This is because the user profile parameter
value for LOCALE was *SYSVAL. The *SYSVAL value is XYZ.</p>
</li>
<li>The CCSID is 00037. <p>This is because the user profile SETJOBATR parameter
value was *NONE. The system search ended with the value for QCCSID being used.</p>
</li>
<li>The time separator is a colon (:). <p>This is because the user profile
SETJOBATR parameter value was *NONE. The system search ended with the value
for QTIMSEP being used.</p>
</li>
<li>The date format separator is a slash (/). <p>This is because the user
profile SETJOBATR parameter value was *NONE. The system search ended with
the value for QDATSEP being used.</p>
</li>
<li>The date format is month/day/year (MDY). <p>This is because the user profile
SETJOBATR parameter value was *NONE. The system search ended with the value
for QDATFMT being used.</p>
</li>
<li>The decimal format character is a period. Zero suppression is performed. <p>This
is because the user profile SETJOBATR parameter value was *NONE. The system
search ended with the value for QDECFMT being used.</p>
</li>
</ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagslocaleprogexamp.htm" title="In addition to the examples in this topic, The locale categories information provides programming examples for each of the different locale categories.">Examples: Locale programming</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbagsprimarylanguage.htm" title="A primary language consists of program code, textual data for each licensed program ordered, and default national language cultural values.">Configure the primary language</a></div>
</div>
</div>
</body>
</html>