Beruflich Dokumente
Kultur Dokumente
GC18-9683-00
GC18-9683-00
Note!
Before using this information and the product it supports, be sure to read the general information under Notices, on page
45.
Contents
Chapter 1. QMF at a glance . . . . .
How does QMF work? . . . . . . .
Products in the QMF family . . . . . .
DB2 QMF for TSO/CICS . . . . . .
DB2 QMF for Workstation . . . . .
DB2 QMF for WebSphere . . . . .
DB2 QMF High Performance Option for
Features and benefits of QMF . . . . .
Purchasing options . . . . . . . . .
Product requirements and support . . .
Accessibility features . . . . . . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
TSO/CICS
. . . .
. . . .
. . . .
. . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
1
1
2
2
2
3
3
3
4
4
4
. . 9
. . 9
. . 10
. . 10
. . 11
. . 11
. . 11
. . 12
. . 12
. . 12
. . 12
. . 12
. . 12
. . 13
. . 13
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
17
17
17
18
20
20
20
21
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
23
23
23
25
27
28
28
28
29
applications .
. . . . . .
. . . . . .
. . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
31
31
31
31
Chapter 6. Seamless
Command interface .
Callable interface . .
Using REXX in QMF .
Copyright IBM Corp. 1982, 2007
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
iii
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
35
35
36
36
36
36
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
39
39
40
41
41
42
42
administration
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
features .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
iv
Data
Query
Chart
Web
1. When you need information from your database, build and save your question in
a QMF query. Your query acts as a request to the database to get specific
information.
2. QMF sends the query to the database in Structured Query Language (SQL),
and the database returns the data that satisfies your query.
QMF at a glance
3. You can use a default report format so that you can see the results quickly or
create your own format to suit your business needs.
4. You can then browse, print, chart, or export the formatted results or include the
results in your own custom application.
Not only does QMF allow you to look at data, it is also a powerful tool for data
manipulation on all levels. Whether you know SQL or not, you can access the data
you need and change it easily.
1. Eclipse is an award-winning, open source platform for the construction of powerful software development tools and rich desktop
applications. Leveraging the Eclipse plug-in framework to integrate technology on the desktop saves technology providers time and
money by enabling them to focus their efforts on delivering differentiation and value for their offerings. Eclipse is a multilanguage,
multiplatform, multivendor supported environment that it is built by an open source community of developers and it is provided
royalty-free by the Eclipse Foundation. Eclipse is written in the Java language, includes extensive plug-in construction toolkits and
examples, and can be extended and deployed on a range of desktop operating systems including Windows, Linux, QNX and
Macintosh OS X. Full details on Eclipse and the Eclipse Foundation are available at http://www.eclipse.org.
QMF at a glance
The QMF product family offers access to data on multiple Chapter 3, Multiplatform data access, on page 15
platforms, meaning your business installations don't have
to be homogenous to get the data you need.
QMF offers data access methods that scale to the levels Chapter 4, Data access that scales to all skill levels, on
of data processing knowledge in your organization. Users page 17
don't have to know Structured Query Language to
retrieve and manipulate data.
QMF offers powerful and flexible data formatting functions Chapter 5, Flexible data formatting capabilities, on page
that can help you transform raw data into a variety of
23
effective visual formats and presentations.
Using command and callable interfaces in QMF for
TSO/CICS, you can build sophisticated applications that
seamlessly integrate powerful QMF functions.
QMF at a glance
Table 1. Main features and benefits of QMF (continued)
QMF feature:
Purchasing options
The packaging of DB2 QMF offers simple selection and pricing to easily match the
on-demand information needs of any enterprise, whatever end-user and DB2
platforms may be in use.
v DB2 QMF Enterprise Edition
DB2 QMF Enterprise Edition enables enterprise-wide access to business
information across end-user and database platforms. It consists of the entire
QMF family of products:
DB2 QMF for TSO/CICS
DB2 QMF for Workstation
DB2 QMF for WebSphere
DB2 QMF High Performance Option (HPO)
v DB2 QMF Classic Edition
DB2 QMF Classic Edition supports end users who work entirely from traditional
mainframe terminals and emulators to access DB2 databases. This edition
consists of DB2 QMF for TSO/CICS only.
Accessibility features
Accessibility features help a user who has a physical disability, such as restricted
mobility or limited vision, to use a software product successfully. Accessibility
features are available in QMF in all of its operating environments.
QMF at a glance
QMF at a glance
QMF for Workstation follows the standards with regard to the typical keys used for
keyboard navigation, such as using the Tab key and Shift+Tab to move between
controls, as well as arrow keys to move up, down, and sideways between items.
Do the following...
Press F1 or Alt+H.
Note: In online help, use the Tab key to navigate from link to link,
then press Enter to open the link.
1. Press the Tab key to navigate to the pane you need, such as in
the Prompted Query dialog box.
2. Press the Tab key again to get to the Add icon.
3. Press the spacebar to display the Add dialog box.
QMF at a glance
Table 2. Navigation aids in QMF for Workstation (continued)
To...
Do the following...
Option 1:
1. Tab to the list box, such as the Global Variables dialog box.
2. Press the spacebar or move the arrow key to select the row.
3. Press F2 to activate edit mode.
4. Use the Tab key to move between columns and rows.
5. Press Enter to accept edits.
6. Press the Tab key to exit the listbox and move to the next
control in the dialog.
QMF at a glance
Do the following...
Use the Tab key to navigate from link to link, then press Enter.
Use the Tab key to navigate from button to button, then press the
key.
Press Enter.
Press Esc.
Press Alt+C.
Press the left Alt key. Navigate through the menu commands using
the arrow keys.
Eclipse-based architecture
The new Version 9.1 Eclipse-based architecture provides the following benefits:
v No longer limited to the Windows platform, QMF for Workstation now supports
popular workstation environments such as Windows, Linux, UNIX, Solaris and
AIX.
v Reduces training costs by leveraging the common look and feel of Eclipse-based
applications, an increasingly familiar environment across the enterprise.
10
11
12
13
14
Custom
applications
DB2 for
z/OS
Office Suites
DB2 for
VSE & VM
DB2
for iSeries
e-business
applications
WebSphere
DB2 QMF
for
TSO/CICS
Browser
access
WebSphere
Information
Integrator
Figure 2. The many sources of data that the QMF product family can access and integrate
15
16
17
Figure 3. The multi-pane OLAP editor provides two different views of an OLAP query
18
PROMPTED QUERY
Tables:
Q.STAFF
Columns:
NAME
DEPT
JOB
SALARY
COMM
Row Conditions:
> If...
*** END ***
MODIFIED LINE
1
+--------------------------------------------+
|
Row Conditions
|
|
|
| Begin a condition by selecting one column, |
| or by entering an expression or function. |
|
1 to 8 of 8 |
| * Q.STAFF
|
|
2.
ID
|
| 3.
NAME
|
| 4.
DEPT
|
| 5.
JOB
|
| 6.
YEARS
|
| 7.
SALARY
|
| 8.
COMM
|
|
|
| Expression (A+B, and so forth)...
|
+--------------------------------------------+
| F1=Help F5=Describe F7=Backward
|
| F8=Forward F12=Cancel
|
+--------------------------------------------+
Figure 5 shows a sample prompted query in QMF for Workstation. To see the SQL
in QMF for Workstation (or QMF for WebSphere), you click the SQL tab at the
bottom of the interface window.
Not only can you see the generated SQL, you can also modify it if necessary. In
QMF for Workstation and QMF for WebSphere, you always have live access to the
19
ACCTNO.
COMPANY
STREET.
CITY. .
STATE .
ZIP . .
NOTES .
USERID.PERS
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
1 to 7 of 7
(_15002__)
(_S & J Supply Co.__________)
(_948 C Street_________)
(_Boston_______________)
(_MA_)
(_06000__)
(_-__________________________________________________>
Editing data is as easy as typing over the values on the Table Editor panel and
pressing the Change key. Confirmation panels help ensure security and integrity by
prompting the user before making any updates final. For extra security, you can
also use column-level authorization to control exactly which columns of a table a
user can view or change.
20
21
22
Reporting functions
QMF lets you determine what data is important for your reports and gives you the
capability to format it the way you want. See one of the following topics for more
information on the functions available in specific products in the QMF family:
v QMF for TSO/CICS
v QMF for Workstation on page 25
v QMF for WebSphere on page 27
DEPT
-----10
15
20
38
42
51
66
84
LINE 1
POS 1
23
MODIFIED
COLUMNS:
NUM
--1
2
3
PAGE:
FINAL:
BREAK1:
BREAK2:
OPTIONS:
HEADING
FOOTING
TEXT
NEW PAGE
FOOTING
NEW PAGE
FOOTING
OUTLINE?
Columns:
C
INDENT
-----2
2
2
4=Show
10=Insert
B
C
D
E
F
X 15)
E
F
EDIT
SEQ
----- --L
1
C
2
D2
3
===>
G
===> COMPANY NAME
===>
H
FOR BREAK? ===> NO
===> DEPT. &2 TOTALS
I
FOR BREAK? ===> NO
===>
===> YES
DEFAULT BREAK TEXT? ===> NO
1=Help
2=Check
3=End
7=Backward
8=Forward
9=
OK, FORM.MAIN is displayed.
COMMAND ===>
24
23 + (N
D
WIDTH
----6
5
11
5=Chart
11=Delete
J
6=Query
12=Report
Specify a heading and footing for the top and bottom of each page
H
I
Enter footing text to use when the value in the control column changes
J
Classic reports
Classic reports are page-based reports that present data with arbitrary breaks and
sections. An intuitive full-page designer with side-by-side runtime and design views
is provided to help you design the forms that control the look and the sectional
content of the report. Figure 10 on page 26 shows an example of a classic report in
QMF for Workstation.
25
Visual reports
Visual reports are page-based reports that include both text and graphics. Figure 11
on page 27 shows an example of a visual report in QMF for Workstation.
26
27
Charting capabilities
The QMF family offers many options to suit your data charting needs, including
features in QMF for TSO/CICS and QMF for Workstation.
28
Figure 13. A Microsoft Excel chart automatically generated by QMF for Workstation
29
30
Command interface
The command interface allows you to use QMF services from an Interactive System
Productivity Facility (ISPF) dialog. You can integrate QMF for TSO/CICS functions
within ISPF dialogs so users see only ISPF menus.
Callable interface
The callable interface lets you integrate QMF functions by using different
programming languages or ISPF. The languages you can use include COBOL, PL/I,
REXX, C, FORTRAN, and High-Level Assembler.
31
MODIFIED
LINE
You can create procedures with logic that include any REXX command or function
and make calls to the operating system or other available environments. In a
procedure with logic, you can perform conditional logic, make calculations, or pass
commands back to the host environment. You can even include both QMF and
REXX variables, so you can change the behavior of your procedure without
rewriting it. Assign new values to the variables by entering values on the RUN
command when the procedure is started, or by prompting the user for input values
using REXX Say and Pull statements.
QMF procedures help you automate common tasks. A QMF procedure can contain
many different QMF commands. You can run all of the commands in sequence by
issuing the RUN PROC command.
Users can be prompted for variable data while running a procedure to customize
the results.
For example, suppose that you need the same type of information or report each
week. You can create and save a procedure that uses saved queries, forms, and
procedures repeatedly. Alternatively, you can substitute variables to make variations
32
33
34
35
36
37
38
QMF HPO/Manager
QMF HPO/Manager is a family of utilities for managing and administering QMF. The
QMF HPO/Manager comprises these integrated components:
v Governor Module
v Activity Log
v Online Facilities
Governor Module
This module replaces the QMF default governor exit routine and is the
direct interface to QMF processing for the QMF HPO/Manager. This
enhanced governor module is more than a QMF governor because it
services the following facilities:
Object Manager
The Object Manager tracks QMF session activity. It records
information about the commands and objects and writes this
information directly to the Activity Log.
You can also produce lists of QMF objects that are based on the
content of the object. Object Manager has a list filter that allows
you to locate queries that contain references to specific table
names, column names, SQL verbs, and so on. Object Manager
supports the migration and copying of objects to and from QMF. It
recognizes and appropriately handles columns in the
OBJECT_DIRECTORY table.
All Q.PROFILES environment values supported in the current QMF
release are supported.
Governor
The Governor controls QMF session activity. It obtains thresholds
and controls from resource groups in the same way as the QMF
sample governor, but provides a much wider and more flexible set
of controls. These controls enforce the proper use of resources in
QMF sessions.
Monitor
The Monitor supplies a real-time user interface to QMF session
activity information. It accepts administrator commands and passes
them to the Governor Module.
Query analyzer
The Query Analyzer provides preemptive governing capabilities. It
traps queries before DB2 processes them, and estimates their
39
Using the QMF HPO/Manager session activity list, QMF administrators can browse
the SQL text associated with a query or cancel an active QMF command with
database activity.
QMF HPO/Compiler
QMF HPO/Compiler is a family of system utilities for generating, preparing, and
running report programs for QMF. The QMF HPO/Compiler performs these tasks:
v Provides a stored-procedure development environment to create stored
procedures.
v Reduces resource contention by optimizing resource-intensive queries, forms,
and procedures.
v Converts dynamic SQL to static SQL, which helps reduce DB2 catalog contention
and DB2 optimization overhead. The compiled applications run faster and more
efficiently, lowering your production costs.
40
41
Governor functions
QMF for TSO/CICS provides a default governor exit routine that limits processor
use for queries, as well as the number of rows that are returned from the database.
The governor exit routine supplied for CICS (DSQUnGV3, where n is a
one-character identifier for the NLF you are using) controls how many rows a user
can retrieve from the database. The governor exit routine supplied for TSO, ISPF,
and native z/OS (DSQUnGV1) controls how many rows a user can retrieve from the
database or the processor time used running a QMF command.
You can replace this default governor exit routine with your own customized
routines to control resource utilization and gather QMF usage information, or you
can use the QMF HPO/Manager feature for sophisticated performance management
as explained in QMF HPO/Manager on page 39.
Administrative interfaces
The administrative interfaces of QMF for Workstation and QMF for WebSphere
streamline the process of setting up user access to data sources, including creating
repositories and setting up connection information.
The administrator interfaces are used to perform the administrative tasks that
enable users of the QMF for Workstation and QMF for WebSphere applications to
access DB2 and non-DB2 data. These tasks include:
v Installing QMF for Workstation
v Installing QMF for WebSphere
v Configuring JDBC drivers
v Creating repositories
v
v
v
v
Connecting to repositories
Configuring data source information
Setting up resource limits
Monitoring query environment performance
42
Danish
Belgian French
Canadian
French
English
Spanish
Swedish
German
Swiss German
Uppercase English
Czechoslovakian
Kanji (Japanese)
Italian
Hebrew
Swiss Italian
Hangeul
(Korean)
Arabic
Traditional Chinese
French
Swiss French
Portuguese
Brazilian Portuguese
43
44
Appendix. Notices
This information was developed for products and services offered in the U.S.A. IBM
may not offer the products, services, or features discussed in this document in other
countries. Consult your local IBM representative for information on the products and
services currently available in your area. Any reference to an IBM product, program,
or service is not intended to state or imply that only that IBM product, program, or
service may be used. Any functionally equivalent product, program, or service that
does not infringe any IBM intellectual property right may be used instead. However,
it is the users responsibility to evaluate and verify the operation of any non-IBM
product, program, or service.
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not give you any
license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.
For license inquiries regarding double-byte (DBCS) information, contact the IBM
Intellectual Property Department in your country or send inquiries, in writing, to:
IBM World Trade Asia Corporation
Licensing
2-31 Roppongi 3-chome, Minato-ku
Tokyo 106-0032, Japan
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE. Some states do not allow disclaimer of express or
implied warranties in certain transactions, therefore, this statement may not apply to
you.
This information could include technical inaccuracies or typographical errors.
Changes are periodically made to the information herein; these changes will be
incorporated in new editions of the publication. IBM may make improvements and/or
changes in the product(s) and/or the program(s) described in this publication at any
time without notice.
IBM may use or distribute any of the information you supply in any way it believes
appropriate without incurring any obligation to you.
Licensees of this program who wish to have information about it for the purpose of
enabling: (i) the exchange of information between independently created programs
and other programs (including this one) and (ii) the mutual use of the information
which has been exchanged, should contact:
IBM Corporation
J46A/G4
555 Bailey Avenue
Copyright IBM Corp. 1982, 2007
45
Trademarks
The following terms are trademarks of International Business Machines Corporation
in the United States, other countries, or both.
CICS
QMF
DB2
RACF
GDDM
z/OS
IBM
Java is a trademark of Sun Microsystems, Inc. in the United States, other countries,
or both.
Linux is a trademark of Linus Torvalds in the United States, other countries, or both.
Microsoft and Windows are trademarks of Microsoft Corporation in the United
States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Other company, product, and service names may be trademarks or service marks
of others.
46
Printed in USA
GC18-9683-00