Académique Documents
Professionnel Documents
Culture Documents
Jul-22-02
Query/400
Page : 1/15
Objectives
To give an introduction Query/400 and Query
Manager
Jul-22-02
Query/400
Page : 2/15
Prerequisites
Basic knowledge DB2
Jul-22-02
Query/400
Page : 3/15
Course Outline
Query/400
Query Manager
Jul-22-02
Query/400
Page : 4/15
Query/400
An IBM licensed program and a decision
support utility that can be used to obtain
information from the AS/400 database
Can obtain information from any database files
that have been defined on the system using
OS/400 data description specifications (DDS),
interactive data definition utility (IDDU), or the
IBM* Structured Query Language/400
(SQL/400*) program
Jul-22-02
Query/400
Page : 5/15
Query/400 (contd.)
Can be used to select, arrange, and analyze data
stored in one or more database files to produce
reports and other data files
The following can be performed using Query/400
Create query definitions and then run them
Run existing queries
Run a default query against a particular database file
(using an unnamed query)
Jul-22-02
Query/400
Page : 6/15
Query/400 (contd.)
Determine what data the query is to retrieve, the format
of the report, and whether it should be displayed, printed,
or sent to another database file
Use to obtain information from a single file or a combined
set of up to 32 files
Select all the fields, or a few of the fields and organize
them so as to appear in the type of output chosen
It is possible to have all records in the files included in the
output, or select only a few to be included, using record
selection tests
Jul-22-02
Query/400
Page : 7/15
Query/400 (contd.)
To access Query any of the following can be used
Use the Work With Query (WRKQRY)
Select option 3 (Decision support) on the Office Tasks
(OFCTSK) menu. From the Decision Support display,
select option 2 (Query). This causes the Query menu to
appear
Select option 8 (Decision support) on the Office menu.
From the Decision Support display, select option 2
(Query). This causes the Query menu to appear
Use the Start Query (STRQRY) command and then use
GO QUERY command from the query menu
Jul-22-02
Query/400
Page : 8/15
Query Manager
An IBM licensed program
A collection of tools that can be used to obtain
information from the AS/400 database
Used to select, arrange, and analyze information
stored in one or more database tables, to produce
reports or new tables
Used to create and run query definitions, run
existing queries
Jul-22-02
Query/400
Page : 9/15
Jul-22-02
Query/400
Page : 10/15
Jul-22-02
Query/400
Page : 11/15
Jul-22-02
Query/400
Page : 12/15
Jul-22-02
Query/400
Page : 13/15
Jul-22-02
Query/400
Page : 14/15
References
IBM Manual DB2 for AS/400 Query Manager Use
V4R1
Jul-22-02
Query/400
Page : 15/15