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

104 lines
5.3 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="iSeries Access sort sequence" />
<meta name="abstract" content="You can specify the sort sequence in the iSeries Access functions. When performing queries on the server databases and SQL tables, you can specify the system-supplied or user-supplied sort sequence tables." />
<meta name="description" content="You can specify the sort sequence in the iSeries Access functions. When performing queries on the server databases and SQL tables, you can specify the system-supplied or user-supplied sort sequence tables." />
<meta name="DC.Relation" scheme="URI" content="rbagshilevellangproggde.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsqsrtsequse.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsqlangiduse.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="rbagspcsc3" />
<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>iSeries Access
sort sequence</title>
</head>
<body id="rbagspcsc3"><a name="rbagspcsc3"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">iSeries Access
sort sequence</h1>
<div><p>You can specify the sort sequence in the iSeries™ Access functions. When performing
queries on the server databases and SQL tables, you can specify the system-supplied
or user-supplied sort sequence tables.</p>
<div class="section" id="rbagspcsc3__Header_411"><a name="rbagspcsc3__Header_411"><!-- --></a><h4 class="sectiontitle">Remote SQL support</h4><p>You can specify
the way the selected data has to be sorted when performing the query. For
that purpose, sort fields must be specified in the ORDER BY clause. The following
clauses also use the specified sort sequence:</p>
<ul><li>WHERE clause</li>
<li>GROUP BY clause</li>
<li>HAVING clause</li>
<li>JOIN BY clause</li>
<li>UNION clause</li>
<li>DISTINCT clause</li>
<li>IN predicate</li>
<li>LIKE predicate</li>
<li>BETWEEN predicate</li>
<li>RANGE predicate</li>
<li>MAX function</li>
<li>MIN function</li>
</ul>
<p>The actual sort sequence table is retrieved from the job attributes
of the user. The SRTSEQ and LANGID parameters can be affected through changing
the user profile or changing the job attributes.</p>
</div>
<div class="section" id="rbagspcsc3__Header_412"><a name="rbagspcsc3__Header_412"><!-- --></a><h4 class="sectiontitle">Data transfer support</h4><p>When transferring
data from the iSeries server
to the workstation, you can specify the sort sequence to be applied on selected
data. The sort sequence table is also used in the following string comparison
operations:</p>
<ul><li>WHERE clause</li>
<li>GROUP BY clause</li>
<li>HAVING clause</li>
<li>JOIN BY clause</li>
<li>IN predicate</li>
<li>LIKE predicate</li>
<li>BETWEEN predicate</li>
<li>MAX function</li>
<li>MIN function</li>
</ul>
<p>You can specify in the OPTION statement the following parameters related
to sort sequence:</p>
<ul><li>SRTSEQ (sort sequence table) <ul><li>*JOB</li>
<li>*HEX</li>
<li>*LANGIDSHR</li>
<li>*LANGIDUNQ</li>
<li>*LIBL/sort-seq-table-name</li>
<li>*CURLIB/sort-seq-table-name</li>
<li>library-name/sort-seq-table-name</li>
</ul>
</li>
<li>LANGID (language identifier) <ul><li>*JOB</li>
<li>language-identifier</li>
</ul>
</li>
</ul>
<p>You can choose the appropriate sort sequence through options on iSeries Access
displays.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagshilevellangproggde.htm" title="Your major goal must be to have only one general set of running code that is common for all language versions and to make your programs table-driven as much as possible.">Code globalized applications with high-level languages</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbagsqsrtsequse.htm" title="The sort sequence (QSRTSEQ), along with QLANGID, is used to determine the sort sequence table to be used for sorting character data.">Sort sequence (QSRTSEQ) system value</a></div>
<div><a href="rbagsqlangiduse.htm" title="The language identifier (QLANGID) is used to specify the default language identifier for the server.">Language identifier (QLANGID) system value</a></div>
</div>
</div>
</body>
</html>