Chapter 4. Specifying and selecting files for a Query for
iSeries query
This chapter describes how you select and use one or more database files that are to be queried for
information. Specifying file selections (the first option on the Define the Query display) is the first of the 11
steps that you can use to define a query. This step includes specifying (or changing) what files you want to
select for your query, seeing what files are already selected, and specifying the join characteristics when
more than one file is selected. This step also allows you to select, when necessary, file members and
record formats for the files.
Notes:
1. Although this chapter discusses this step primarily for the task of
creating
a query definition, most of
the information also applies to the tasks of
changing
or
displaying
an existing definition.
2. If you are creating a query, a 1 is already supplied by the system for the
Specify file selection
option
on the Define the Query display, and it cannot be removed. This is the
only
option in the definition
process that you
must
select when you are
creating
a query.
3. If you make changes to any of the file selection values in this step, Query attempts to keep whatever
parts of the definition that are still valid. For example, if a field in a file being removed from the
definition also exists in a file being added (as a replacement), the field’s uses in other parts of the
definition (such as part of the sort definition) are kept. (However, it is your responsibility to determine
whether the field in the replacement file contains the kind of information you want.)
The displays related to the file selection process are:
v
File selection displays (for one or more files):
– Specify File Selections
– Select Library (optional)
– Select File (optional)
– Select Member (optional)
– Select Record Format (optional)
v
File join displays (for multiple files only):
– Specify Type of Join
– Specify How to Join Files
Specifying file selections for a Query for iSeries query
The file selection process includes selecting each file from which your query will get data and also
specifying the library containing the file, the file member, and the record format (or using the values
supplied by Query when the display first appears). If you select multiple files, the process also includes
specifying the file join characteristics.
After you have selected your definition steps on the Define the Query display and you press the Enter key
or F21 (Select all), the first display that you see is the Specify File Selections display.
© Copyright IBM Corp. 2000, 2002
33
Summary of Contents for ISERIES SC41-5210-04
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 ...