Selecting a Query for iSeries collating sequence
To select a collating sequence, you have to understand how the data exists in your files. For example, if
both uppercase and lowercase SBCS characters exist in your character fields, you have to decide if you
want uppercase and lowercase characters treated the same. Once you make this analysis, you can select
the collating sequence that produces the desired results, or you can define a collating sequence of your
own.
Select Collating Sequence
The selected collating sequence will be used for character fields when
sorting, selecting records, joining files, finding minimum and maximum
values, and determining when a control break has occurred.
Type choices, press Enter.
Collating sequence
option . . . . . . . .
1
1=Hexadecimal
2=Query for iSeries English
3=Define the sequence
4=Translation table
5=Systemsort sequence
For choice 4=Use translation table:
Table . . . . . . . .
__________
Name, F4 for list
Library . . . . . .
__________ Name, *LIBL, F4 for list
F3=Exit
F4=Prompt
F5=Report
F10=Process/previous
F12=Cancel
F13=Layout
F17=Job sequence
F24=More keys
Using the hexadecimal collating sequence in Query for iSeries
The standard collating sequence is the hexadecimal collating sequence. For any given CCSID, all of the
character-set characters (alphanumeric and special) are assigned a hexadecimal value. The characters
and their related hexadecimal value are called a code page. A code page is shown as a 16 by 16 matrix
as shown in Table 3.
Table 3. Example of How a Code Table Works. The value in the left column is the first half of the hexadecimal value.
The value at the top of each column is the second half of the hexadecimal value. The lowercase a in this table is at
’81’X and the uppercase A is at ’C1’X. This is an example, a real table contains all the alphanumeric and special
characters.
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0
1
2
3
4
5
6
7
8
a
9
A
B
Chapter 9. Selecting a collating sequence in Query for iSeries
113
Содержание @server iSeries
Страница 1: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Страница 2: ......
Страница 3: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Страница 12: ...x Query for iSeries Use V5R2 ...
Страница 14: ...2 Query for iSeries Use V5R2 ...
Страница 18: ...Figure 3 Major Tasks on the Query Menu and the Work with Queries Display 6 Query for iSeries Use V5R2 ...
Страница 32: ...20 Query for iSeries Use V5R2 ...
Страница 38: ...26 Query for iSeries Use V5R2 ...
Страница 44: ...32 Query for iSeries Use V5R2 ...
Страница 116: ...104 Query for iSeries Use V5R2 ...
Страница 122: ...110 Query for iSeries Use V5R2 ...
Страница 146: ...134 Query for iSeries Use V5R2 ...
Страница 150: ...138 Query for iSeries Use V5R2 ...
Страница 174: ...162 Query for iSeries Use V5R2 ...
Страница 178: ...166 Query for iSeries Use V5R2 ...
Страница 196: ...184 Query for iSeries Use V5R2 ...
Страница 198: ...186 Query for iSeries Use V5R2 ...
Страница 204: ...192 Query for iSeries Use V5R2 ...
Страница 205: ...Part 4 Appendixes Copyright IBM Corp 2000 2002 193 ...
Страница 206: ...194 Query for iSeries Use V5R2 ...
Страница 210: ...198 Query for iSeries Use V5R2 ...
Страница 242: ...230 Query for iSeries Use V5R2 ...
Страница 256: ...244 Query for iSeries Use V5R2 ...
Страница 270: ...258 Query for iSeries Use V5R2 ...
Страница 272: ...260 Query for iSeries Use V5R2 ...
Страница 292: ...280 Query for iSeries Use V5R2 ...
Страница 293: ......
Страница 294: ... Printed in U S A SC41 5210 04 ...