SBCS character data in SBCS, DBCS-open, and DBCS-either fields are sorted in the order of the
hexadecimal representation of the characters or an order defined by a selected collating sequence. For
more information on collating sequences, see Chapter 9, “Selecting a collating sequence in Query for
iSeries”.
DBCS data in character fields is sorted by the hexadecimal representation of the data. The collating
sequence is not applied to DBCS data in DBCS character fields.
UCS2-graphic data is sorted by the hexidecimal representation of the data. The collating sequence is not
applied to UCS2-graphic data in UCS2-graphic fields.
Date, time, and timestamp fields are sorted in chronological order.
For all data types, null values are sorted last if the sort is in ascending order and are represented by a
dash (-). For example, for the following data:
field1
value
record
1
B
3
A
2
null value
4
null value
The sorted report looks like this:
A
B
-
-
Chapter 8. Selecting sort fields in Query for iSeries
109
Summary of Contents for @server iSeries
Page 1: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Page 2: ......
Page 3: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Page 12: ...x Query for iSeries Use V5R2 ...
Page 14: ...2 Query for iSeries Use V5R2 ...
Page 32: ...20 Query for iSeries Use V5R2 ...
Page 38: ...26 Query for iSeries Use V5R2 ...
Page 44: ...32 Query for iSeries Use V5R2 ...
Page 116: ...104 Query for iSeries Use V5R2 ...
Page 122: ...110 Query for iSeries Use V5R2 ...
Page 146: ...134 Query for iSeries Use V5R2 ...
Page 150: ...138 Query for iSeries Use V5R2 ...
Page 174: ...162 Query for iSeries Use V5R2 ...
Page 178: ...166 Query for iSeries Use V5R2 ...
Page 196: ...184 Query for iSeries Use V5R2 ...
Page 198: ...186 Query for iSeries Use V5R2 ...
Page 204: ...192 Query for iSeries Use V5R2 ...
Page 205: ...Part 4 Appendixes Copyright IBM Corp 2000 2002 193 ...
Page 206: ...194 Query for iSeries Use V5R2 ...
Page 210: ...198 Query for iSeries Use V5R2 ...
Page 242: ...230 Query for iSeries Use V5R2 ...
Page 256: ...244 Query for iSeries Use V5R2 ...
Page 270: ...258 Query for iSeries Use V5R2 ...
Page 272: ...260 Query for iSeries Use V5R2 ...
Page 292: ...280 Query for iSeries Use V5R2 ...
Page 293: ......
Page 294: ... Printed in U S A SC41 5210 04 ...