Select Records
Type comparisons, press Enter. Specify OR to start each new group.
Tests: EQ, NE, LE, GE, LT, GT, RANGE, LIST, LIKE, IS, ISNOT...
AND/OR Field
Test
Value (Field, Number, or ’Characters’)
STATE
EQ
’LA’
____
______________
_____ ______________________________
____
______________
_____ ______________________________
____
______________
_____ ______________________________
____
______________
_____ ______________________________
Bottom
Field
Text
Len Dec
LASTNAME
Last name
15
FIRSTNAME
First name
10
ADDRESS1
Address line 1
20
ADDRESS2
Address line 2
20
CITY
City
15
More...
F3=Exit
F5=Report
F9=Insert
F11=Display names only
F12=Cancel
F13=Layout
F20=Reorganize
F24=More keys
This tells Query for iSeries to test the field named
STATE
in each record for the value
LA
. Only records
with that value will be included in your report. (If you are using a unique weight system sort sequence
table or *HEX, make sure you type it as
’LA’
because the apostrophes tell the program that
LA
is
what the field contains and not the field name. You must also type this value in all uppercase letters
because that is the way it is specified in the field. If you have any doubt about the case of the data in
the database, you should use a shared weight table.)
8. Press F5 (Report) to run the query and show the report. F5 lets you see the effect your query
changes have on the report before you actually save those changes.
The report appears listing only customers in Louisiana (only the
left
portion of the report is shown on
the following display):
Display Report
Report width . . . . . :
117
Position to line . . . . . ______
Shift to column . . . . . .
_____
Line
....+....1....+....2....+....3....+....4....+....5....+....6....+....7...
LASTNAME
FIRSTNAME
ADDRESS1
ADDRESS2
000001 SEDGEWICK
LILLIAN
200 PARK LANE
000002 SEDGEWICK
LEONA
21ST CANNERY ROW
APT 43
000003 BARKER
RICK
1432 LE GRAND BLVD
****** ******** End of Report ********
Bottom
F3=Exit
F12=Cancel
F19=Left
F20=Right
F21=Split
F22=Width 80
9. Press F20 to display the
right
portion of the report.
Appendix B. Practice exercise for Query for iSeries query
213
Содержание @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 ...