Selecting records (ignoring field case) in Query for iSeries
To select records ignoring the case, do one of the following:
v
Define your own collating sequence such that uppercase and lowercase letters have the same weight.
v
Use a system sort sequence with shared collating weights.
You must also set the
Use collating sequence for all character comparisons
option in the Select
Processing Options display to YES. If for some reason you cannot set this option, you will have to use an
EQ (equal) test alternative such as RANGE or a combination of LE (less than or equal) and GE (greater
than or equal). (This works only if there is no DBCS data involved.)
Note:
Changing your collating sequence affects sorting, minimum, maximum, and report breaks. See
“CCSID conversions for Query for iSeries options and functions” on page 249 for more information
about how CCSIDs affect sorting, minimum, maximum, and report breaks.
Define Result Fields
Type definitions using field names or constants and operators, press Enter.
Operators: +, -, *, /, SUBSTR, ||, DATE...
Field
Expression
Column Heading
Len
Dec
RESULT269_ PRN299A__________________________ ____________________
26
_9
_________________________________ ____________________
_________________________________ ____________________
RESULT295_ PRN299B__________________________ ____________________
29
_5
_________________________________ ____________________
_________________________________ ____________________
RESULTA___ RESULT269/RESULT295______________ ____________________
__
__
_________________________________ ____________________
_________________________________ ____________________
Bottom
_______________________________________________________________________________
Field
Text
Len Dec
PRN299A
Field with precision of 29,9
29
9
PRN299B
Field with precision of 29,9
29
9
Bottom
F3=Exit
F5=Report
F9=Insert
F11=Display names only
F12=Cancel
F13=Layout
F20=Reorganize
F24=More keys
Figure 6. Changing Decimal Precision
Chapter 17. Additional information about Query for iSeries for programmers
191
Содержание @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 ...