IBM Class Author book content - IBM Learner Portal
IBM Class Author book content - IBM Learner Portal
IBM Class Author book content - IBM Learner Portal
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
V5.4<br />
cover<br />
Front cover<br />
DB2 Web Query for <strong>IBM</strong> i<br />
(Course code AT91)<br />
Student Note<strong>book</strong><br />
ERC 1.0
Student Note<strong>book</strong><br />
Trademarks<br />
<strong>IBM</strong>® and the <strong>IBM</strong> logo are registered trademarks of International Business Machines<br />
Corporation.<br />
The following are trademarks of International Business Machines Corporation, registered in<br />
many jurisdictions worldwide:<br />
AIX® DB2® DRDA®<br />
i5/OS® iSeries® POWER®<br />
System i®<br />
Java and all Java-based trademarks and logos are trademarks of Sun Microsystems, Inc.<br />
in the United States, other countries, or both.<br />
Microsoft and Windows are trademarks of Microsoft Corporation in the United States, other<br />
countries, or both.<br />
Other product and service names might be trademarks of <strong>IBM</strong> or other companies.<br />
June 2010 edition<br />
The information contained in this document has not been submitted to any formal <strong>IBM</strong> test and is distributed on an “as is” basis without<br />
any warranty either express or implied. The use of this information or the implementation of any of these techniques is a customer<br />
responsibility and depends on the customer’s ability to evaluate and integrate them into the customer’s operational environment. While<br />
each item may have been reviewed by <strong>IBM</strong> for accuracy in a specific situation, there is no guarantee that the same or similar results will<br />
result elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk.<br />
© Copyright International Business Machines Corporation 2010.<br />
This document may not be reproduced in whole or in part without the prior written permission of <strong>IBM</strong>.<br />
Note to U.S. Government Users — Documentation related to restricted rights — Use, duplication or disclosure is subject to restrictions<br />
set forth in GSA ADP Schedule Contract with <strong>IBM</strong> Corp.
V5.4.0.1<br />
TOC<br />
Contents<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vii<br />
Course description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix<br />
Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1<br />
<strong>IBM</strong> Systems Education Test Drives for Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2<br />
<strong>IBM</strong> Technical Training . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3<br />
Course objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4<br />
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5<br />
Today’s BI requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6<br />
Today’s Mid-market BI landscape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7<br />
DB2 for i enablers for DW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8<br />
Upgrade into BASE product from Query/400 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10<br />
What is different about DB2 Web Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12<br />
<strong>IBM</strong> DB2 Web Query for <strong>IBM</strong> i powered by Information Builders . . . . . . . . . . . . . 1-13<br />
DB2 Web Query enhancement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15<br />
DB2 Web Query: Making information easily accessible . . . . . . . . . . . . . . . . . . . . 1-16<br />
DB2 Web Query interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-17<br />
Active reports: Disconnected support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18<br />
Portable analytics: Active reports (1 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19<br />
Portable analytics: Active reports (2 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-20<br />
Portable analytics: Active reports (3 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-21<br />
On-Line Analytical Processing feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-22<br />
DB2 Web Query developer workbench . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-23<br />
Web Query spreadsheet client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-24<br />
Web Query spreadsheet client guided ad hoc within Excel . . . . . . . . . . . . . . . . . 1-25<br />
SQL server adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-26<br />
DB2 Web Query Report Broker: 5733-QU3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-27<br />
DB2 Web Query Software Development Kit: 5733-QU4 . . . . . . . . . . . . . . . . . . . . 1-28<br />
Report assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-29<br />
Report assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-30<br />
Graph assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-31<br />
Graphing assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-32<br />
Graph assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-33<br />
Power Painter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-34<br />
Web Enable QRY/400 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-35<br />
Web Enable Query/400 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-36<br />
Active reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-37<br />
WebFOCUS Active Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-38<br />
OLAP reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-39<br />
On-Line Analytical Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-40<br />
Three ways of working with OLAP reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-41<br />
OLAP tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-42<br />
OLAP report body . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-43<br />
©Copyright <strong>IBM</strong> Corp. 2010 Contents iii
Student Note<strong>book</strong><br />
OLAP Control Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-44<br />
OLAP dimension building (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-45<br />
OLAP dimension building (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-46<br />
OLAP analysis demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-47<br />
Break: 15 minutes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-48<br />
Developers workbench . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-49<br />
DB2 Web Query developer workbench . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-50<br />
HTML composer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-51<br />
HTML composer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-52<br />
Creating a corporate overview dashboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-53<br />
Creating dashboards with HTML composer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-54<br />
Highly parameterized reports (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-55<br />
Highly parameterized reports (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-56<br />
Spreadsheet client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-57<br />
Spreadsheet client feature 5733QU2: Option 5 . . . . . . . . . . . . . . . . . . . . . . . . . . .1-58<br />
Report Broker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-59<br />
Automate report execution and distribution with Report Broker: 5733-QU3 . . . . . .1-60<br />
Who can schedule a report? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-61<br />
End user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-62<br />
First distribution method: Email . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-63<br />
Second distribution method: Printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-64<br />
Third distribution method: Web Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-65<br />
Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-66<br />
Report options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-67<br />
Intelligent bursting and parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-68<br />
Notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-69<br />
Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-70<br />
CL command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-71<br />
DB2 Web Query Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-72<br />
Software Development Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-73<br />
DB2 Web Query Software Development Kit: 5733QU4 . . . . . . . . . . . . . . . . . . . . .1-74<br />
Integration with PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-75<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (1 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-76<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (2 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-77<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (3 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-78<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (4 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-79<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (5 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-80<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (6 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-81<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (7 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-82<br />
Advanced topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-83<br />
Domain name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-84<br />
Access to domains (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-85<br />
Access to domains (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-87<br />
Steps to create domain NICKDOM1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-88<br />
Base licensing model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-89<br />
Run time user enablement licensing model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-90<br />
Run time user enablement (1 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-91<br />
Run time user enablement (2 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-92<br />
iv DB2 Web Query for <strong>IBM</strong> i ©Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4.0.1<br />
TOC<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Run time user enablement (3 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-93<br />
DB2 Web Query security (1 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-94<br />
DB2 Web Query security (2 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-95<br />
DB2 Web Query security (3 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-96<br />
DB2 Web Query metadata (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-97<br />
Metadata objects (1 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-98<br />
Metadata objects (2 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-99<br />
Metadata objects (3 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-100<br />
DB2 Web Query metadata (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-101<br />
SQL views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-103<br />
Join at metadata layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-104<br />
Report created joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-105<br />
Library lists: Step one . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-106<br />
Library lists: Step two . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-108<br />
Details of exit point creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-110<br />
Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-111<br />
Connections: ADDRDBDIRE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-112<br />
Adding connections to DRDA accessible databases . . . . . . . . . . . . . . . . . . . . . 1-113<br />
Cross <strong>IBM</strong> i join . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-115<br />
Exporting a domain to another system (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . 1-116<br />
Exporting a domain to another system (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . 1-118<br />
Exporting: Create domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-119<br />
Exporting: Using i5/OS commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-120<br />
Exporting: Copying objects using your pc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-121<br />
Using RUNWEBQRY to execute reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-122<br />
Example of executing RUNWEBQRY on Gross Profit Ranking Report . . . . . . . 1-123<br />
Gather needed information from report properties . . . . . . . . . . . . . . . . . . . . . . . 1-124<br />
DB2 Web Query services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-125<br />
Education links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-126<br />
Building a DB2 Web Query community . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-127<br />
Questions and answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-128<br />
Course summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-129<br />
What Technical Training offers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-130<br />
Additional Technical Training . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-131<br />
Lab Services offerings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-132<br />
©Copyright <strong>IBM</strong> Corp. 2010 Contents v
Student Note<strong>book</strong><br />
vi DB2 Web Query for <strong>IBM</strong> i ©Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
TMK Trademarks<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
The reader should recognize that the following terms, which appear in the <strong>content</strong> of this<br />
training document, are official trademarks of <strong>IBM</strong> or other companies:<br />
<strong>IBM</strong>® and the <strong>IBM</strong> logo are registered trademarks of International Business Machines<br />
Corporation.<br />
The following are trademarks of International Business Machines Corporation, registered in<br />
many jurisdictions worldwide:<br />
AIX® DB2® DRDA®<br />
i5/OS® iSeries® POWER®<br />
System i®<br />
Java and all Java-based trademarks and logos are trademarks of Sun Microsystems, Inc.<br />
in the United States, other countries, or both.<br />
Microsoft and Windows are trademarks of Microsoft Corporation in the United States, other<br />
countries, or both.<br />
Other product and service names might be trademarks of <strong>IBM</strong> or other companies.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Trademarks vii
Student Note<strong>book</strong><br />
viii DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
pref Course description<br />
DB2 Web Query for <strong>IBM</strong> i<br />
Duration: Half day<br />
Purpose<br />
Audience<br />
Prerequisites<br />
Objectives<br />
Contents<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Train attendees how to use, implement and support the new<br />
Web-based query and report writing product DB2 Web Query for <strong>IBM</strong> i<br />
End users, system operators, system administrators, database<br />
administrators, application developers who plan to implement, use or<br />
support DB2 WebQuery for <strong>IBM</strong> i are the intended audience for this<br />
class.<br />
You should have an understanding of <strong>IBM</strong> i and i5/OS concepts.<br />
After completing this course, you should be able to:<br />
• Use, implement and support the new Web-based query and report<br />
writing product <strong>IBM</strong> DB2 Web Query for <strong>IBM</strong> i through lecture with<br />
examples.<br />
Topics<br />
• DB2 Web Query overview<br />
• Report assistant<br />
• Graph assistant<br />
• Converting existing query reports<br />
• Active reports<br />
• Online Analytical Processing (OLAP)<br />
• Developer's workbench<br />
• HTML composer<br />
© Copyright <strong>IBM</strong> Corp. 2010 Course description ix
Student Note<strong>book</strong><br />
• Spreadsheet client<br />
• Report Broker<br />
• Software Development Kit<br />
• Advanced topics<br />
- Backup<br />
- Security<br />
- Metadata<br />
x DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive<br />
What this unit is about<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
This unit describes how to use, implement and support the new<br />
Web-based query and report writing product DB2 Web Query for <strong>IBM</strong> i.<br />
What you should be able to do<br />
After completing this unit, you should be able to:<br />
• Use, implement and support the new Web-based query and report<br />
writing product <strong>IBM</strong> DB2 Web Query for <strong>IBM</strong> i through lecture with<br />
examples.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-1
Student Note<strong>book</strong><br />
<strong>IBM</strong> Systems Education Test Drives for Power<br />
• Welcome to a Test Drive on Power!<br />
Figure 1-1. <strong>IBM</strong> Systems Education Test Drives for Power AT911.0<br />
Notes:<br />
– This course is designed to provide you with introductory information<br />
on leading edge technology. You may be surprised about the<br />
capabilities, functions and solutions that are available. Get ready to<br />
take the wheel and enjoy the ride!<br />
• Test Drives:<br />
– Series of free 3-4 hour classes in key systems technologies<br />
– A technical presentation where you can interact with the instructors<br />
• See complete schedule:<br />
– Check out the schedule at www.ibm.com/training/stg/testdrive<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-2 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
<strong>IBM</strong> Technical Training<br />
• Comprehensive education & training<br />
offerings<br />
• Expert instructors, world-class<br />
<strong>content</strong><br />
• Multiple delivery options, including<br />
classroom public and private<br />
classes, online learning and<br />
customized<br />
• <strong>IBM</strong> Technical Conferences explore<br />
emerging trends and product<br />
strategies<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• www.ibm.com/training ibm.com/training<br />
Figure 1-2. <strong>IBM</strong> Technical Training AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
We are here to offer you a breadth of technical topics in your areas of interest and need.<br />
Nobody knows <strong>IBM</strong>’s hardware and software products better than we do – our instructors<br />
are experts in the technologies they teach, and our course developers work closely with<br />
product development. Whether you choose public classes, onsite training, e-learning or a<br />
combination of all three, you’ll find that our classes cover everything your employees need<br />
to know, from product basics to time-saving tips and tricks.<br />
We also offer a wide range of training services to help streamline your technology<br />
implementation even further. Instructor mentoring brings <strong>IBM</strong>’s expert instructors right to<br />
your employees’ desks for on-the-job assistance learning to use new hardware and<br />
software. Technical conferences let your key IT people network with peers, explore new<br />
technologies, and learn about evolving IT trends from the people who set them.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-3
Student Note<strong>book</strong><br />
Course objectives<br />
After completing this course, you should be able to:<br />
• Use, implement and support the new Web-based query and<br />
report writing product <strong>IBM</strong> DB2 Web Query for <strong>IBM</strong> i through<br />
lecture with examples<br />
Figure 1-3. Course objectives AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-4 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Overview<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-4. Overview AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview DB2 Web Query<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-5
Student Note<strong>book</strong><br />
Today’s BI requirements<br />
• Remove dependency on IT for reporting purposes<br />
– Ease IT backlog of reporting requests<br />
– Parameterized Reporting<br />
• Reduce Report Maintenance<br />
• Empower End Users<br />
• Client Independence<br />
– Web Based<br />
• Reduce Software Maintenance<br />
• Multiple Viewing Options<br />
– Dashboards/Scorecards<br />
– Spreadsheet Integration<br />
– Static Reports/Intelligent Bursting<br />
– Report Archival<br />
• Operational or Data Warehouse<br />
– Real time or Historical Reporting<br />
• Secure the Data<br />
– Avoid Data replication<br />
– Adhere to compliance requirements<br />
Figure 1-5. Today’s BI requirements AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-6 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Today’s Mid-market BI landscape<br />
• Business Intelligence Remains HOT<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-6. Today’s Mid-market BI landscape AT911.0<br />
Notes:<br />
– BI ranked #1 four straight years in Gartner<br />
CIO survey of top priorities<br />
– BI ranks #1 in Aberdeen Group study of<br />
technologies with the most business impact<br />
in the next 2-5 years<br />
• Mid-market companies have different<br />
requirements but want similar benefits:<br />
– Budget is smaller<br />
– Staff is limited– Admin, DBAs<br />
– “The full capabilities of most BI tools are<br />
overkill for the typical SMB (Small and<br />
Medium Business).” – Aberdeen Group<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-7
Student Note<strong>book</strong><br />
DB2 for i enablers for DW<br />
• DB2 Engine<br />
Figure 1-7. DB2 for i enablers for DW AT911.0<br />
Notes:<br />
– SQL Query Engine (SQE)<br />
• 5x Query Performance Improvement<br />
• Real time statistics<br />
• Autonomic Indexes<br />
• Star Schema Awareness<br />
– Database Parallelism<br />
– Materialized Query Tables<br />
– Encoded Vector Indexing<br />
– Remote Journaling (Trickle Feed)<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• Management<br />
– On Demand Performance Center<br />
• Business Intelligence<br />
– DB2 Web Query<br />
*See detailed certified benchmark results at http://www.sap.com/solutions/benchmark/bimxl.epx<br />
<strong>IBM</strong> has been investing heavily in DB2 for i query optimization for many years now, going<br />
way back to 1995 and V3R1 when we first introduced DB2 symmetric multi-processing<br />
(SMP). More recently, in V5R3, <strong>IBM</strong> introduced a totally re-architected query engine called<br />
SQE (SQL Query Engine). This component of DB2 is the brains behind processing queries<br />
and can improve query performance up to 5 times (as proven by internal <strong>IBM</strong> performance<br />
test cases). Actual performance could be much better than that. Products like Query/400<br />
cannot leverage this technology now and for the foreseeable future. SQE can also use<br />
many more techniques to process queries, such as a new real-time statistics engine<br />
(again, part of DB2), and ability to process a popular data model used in data marts and<br />
data warehouses called a star schema. Autonomic Indexes are another DB2 “self<br />
managing, self adjusting” technique where the database can actually create an index<br />
automatically if it thinks that is a better way to process a query, and then keep that index<br />
around for other users and queries to leverage.<br />
A key consideration in any database platform in support of BI applications is its ability to<br />
scale while maintaining acceptable performance. DB2 for i offers a variety of techniques to<br />
address scalability/performance. Parallel database operations through the Symmetric<br />
1-8 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Uempty Multiprocessing (SMP) feature of <strong>IBM</strong> i provide the ability to split single database<br />
tasks/requests across multiple processors within a single iSeries system or logical partition<br />
(LPAR). The SMP feature provides significant performance enhancements to database<br />
queries, loads, index builds and other operations commonly used by BI applications.<br />
A key performance technology introduced in DB2 for i is <strong>IBM</strong>'s patented Encoded Vector<br />
Indexing (EVIs). EVIs offer dramatic advancement to bitmap indexing technology. Using<br />
this advanced indexing feature, DB2 for i was able to run a query across a 225 GB table in<br />
a little over 35 seconds. This same query previously took over two hours.<br />
With DB2 for i there are some fundamental approaches that can make your life easier. With<br />
Remote Journaling, you can capture changed production data and have the system route<br />
the changed data logs (journal receivers) to another iSeries logical partition (LPAR) or<br />
system.<br />
To read the database changes from the journal receivers, you could use a low cost utility<br />
called Data Propagator to add the changed records to the reporting repository (on this 2nd<br />
partition/system). This essentially eliminates a key issue with any BI application - the<br />
impact of extraction or data transport on the production environment.<br />
Materialized Query Tables (MQTs) and result set caching: Performance in a data<br />
warehouse environment can be significantly improved for repetitive user queries through<br />
the use of summary tables or caching techniques. Recent DB2 enhancements include<br />
query result set caching, which can mean for repetitive queries DB2 can benefit from work<br />
that has already been done, minimizing the need to re-run the entire query. Materialized<br />
Query Tables are an implementation of DB2-aware materialized views (or summary<br />
tables). DB2 currently supports creation of MQTs through SQL syntax, and will be<br />
enhanced to support automatic maintenance of MQTs by DB2.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-9
Student Note<strong>book</strong><br />
Upgrade into BASE product from Query/400<br />
• The BASE product:<br />
Figure 1-8. Upgrade into BASE product from Query/400 AT911.0<br />
Notes:<br />
– Web enables Query/400<br />
• Add additional functionality (compared to Query/400) to reports<br />
– Link Reports by clicking on “hot spot”<br />
– Add Conditional Styling (“if revenue less than forecast, highlight in RED”)<br />
– Push data directly from DB2 into Spreadsheets<br />
– Over 100 charts and graphs<br />
– Boardroom quality PDF output<br />
– Access remote DB2 for i5/OS data sources<br />
– Leverages the LATEST in DB2 for <strong>IBM</strong> i Query Optimization<br />
Technology<br />
– Better performance, better analysis tools<br />
– Many more functions available for query performance<br />
– Strategic optimizer<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
DB2 Web Query BASE product is offered as an upgrade from Query/400. In fact, you<br />
probably already OWN the BASE product of DB2 Web Query because as of January of<br />
2008, any client who ordered V5R4 or V6R1 that owned Query/400 and was current on<br />
<strong>IBM</strong> i Group SW Maintenance was shipped a DB2 Web Query CD and provided license<br />
keys to the BASE product.<br />
With this BASE product, you can web enable your query environment. It offers much more<br />
functionality than Query/400 did, including the ability to link reports together such that an<br />
end user can single click navigate to a drill down report or chart. You can add conditional<br />
styling to your report, often called “traffic lighting”, to highlight EXCEPTIONS or GOOD<br />
NEWS. Output options are significantly improved, including the ability to push DB2 data<br />
directly into spreadsheets, eliminating the multiple step process many of you are probably<br />
going through today in using Query/400 to get data from DB2 into a spreadsheet. The<br />
BASE product offers over 100 charts and graphs to significantly improve the visualization<br />
of data.<br />
1-10 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Uempty Create board room quality PDF output with the Power Painter layout tool that is included in<br />
the BASE product. Add company logos, images, and format multiple reports onto a single<br />
PDF with this tool.<br />
You can install the BASE product in a single copy of <strong>IBM</strong> i, but access any number of<br />
remote (either separate LPARs or separate server) DB2 for i databases (and you can even<br />
add a feature to access remote Microsoft SQLServer databases as of august of 2009).<br />
Maybe most important about DB2 Web Query, and a MAJOR reason for developing this<br />
product, was that Query/400 could not leverage the 10 years of query processing research<br />
and development that we have been putting into DB2 for i. With DB2 Web Query, you can<br />
improve performance of queries by 5 times because it can take advantage of many of the<br />
technologies built into DB2 for i at 5.4 and 6.1, including:<br />
• A completely re-written query engine (the DB2 component that handles SQL/Query<br />
requests<br />
• Query acceleration technologies like Encoded Vector Indexes and Materialized Query<br />
Tables<br />
And there are better management tools to understand why a query may not be meeting<br />
performance expectations, with automated index creation and/or wizards to simplify the<br />
process of optimizing the query for immediate and future improved performance.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-11
Student Note<strong>book</strong><br />
What is different about DB2 Web Query<br />
• Single Server Solution<br />
– Simpler Software Maintenance<br />
– Multiple functions in single OS/server<br />
• OLAP, Report Writer, Web Server, Meta Data,<br />
Database<br />
– Simpler Licensing<br />
• Vertical Scalability<br />
– Grow without Disruption<br />
• Start Small, Grow Big<br />
– DB2 Web Query provides FOUNDATON<br />
– Add additional features per requirements<br />
• Security/Auditability<br />
– All the data in ONE PLACE<br />
– No Viruses, No “Patch Tuesday”<br />
• DB2 Query Optimization<br />
– Patented <strong>IBM</strong> Technology<br />
– SQE vs. CQE (Query/400)<br />
• Simplified Data Access<br />
– No Data Replication Required<br />
Figure 1-9. What is different about DB2 Web Query AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Database<br />
Server<br />
OLAP<br />
Server<br />
1-12 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Report<br />
Server<br />
Web<br />
Server<br />
ETL<br />
Server
V5.4<br />
Uempty<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
<strong>IBM</strong> DB2 Web Query for <strong>IBM</strong> i powered by Information<br />
Builders<br />
• 5733-QU2 V1R1 Available 9/14<br />
• Base Program Product Includes:<br />
– i5/OS Web Reporting Server<br />
– Several Web Based authoring tools<br />
• RA, GA, Power Painter<br />
– Query/400 (5722-QU1)<br />
• Web Enable Query/400 Reports<br />
– BASE PRODUCT OFFERED AS NO<br />
CHARGE UPGRADE FROM QU1<br />
• Does not include Software Maintenance<br />
• Additional Features<br />
– Additional Users<br />
– Run Time User Enablement ***NEW***<br />
– Active Reports (Disconnected Analysis)<br />
– On Line Analytical Processing<br />
• Requires Meta Data provided with<br />
Developer Workbench<br />
– Developer Workbench<br />
• IT Tool for meta data<br />
Figure 1-10. <strong>IBM</strong> DB2 Web Query for <strong>IBM</strong> i powered by Information Builders AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
On April 10, 2007, <strong>IBM</strong> announced plans to deliver a Web-based query and report writing<br />
product that replaces the <strong>IBM</strong> Query for iSeries (also commonly known as Query/400)<br />
product.<br />
The DB2 Web Query “base” product will provide capabilities to query or build reports<br />
against data stored in DB2 for i5/OS databases through the latest browser based user<br />
interface technologies. Build new reports with ease through Power Painter or Report and<br />
Graph Assistant components. Simplify the management of reports by leveraging<br />
parameterized reporting. Deliver data to end users in many different formats, including<br />
spreadsheets, PDF, HTML or through the Java based thin client interface browser support.<br />
Import Query/400 definitions and enhance their look and functionality with Power Painter or<br />
Graph Assistant. Interface to all data in i5/OS through either DB2 or Open Query File native<br />
adapters that automatically identify the files to be accessed and import the metadata into<br />
DB2 Web Query.<br />
Additional priced features can be added from <strong>IBM</strong> for OLAP analysis, or disconnected (but<br />
“active”) reporting. All users licensed to the “base” product will be able to use OLAP or<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-13
Student Note<strong>book</strong><br />
Active Report features. Add a Developer’s Workbench to build more customized reports or<br />
enhance a meta data layer.<br />
This product is an OEM agreement with Information Builder’s WebFocus product. Add<br />
additional components from Information Builders such as ERP or other database adapters<br />
(to query Oracle, for instance, you’d add an Oracle Adapter). Grow into more complete BI<br />
solutions leveraging the product’s API support for SPSS’ Clementine (data mining) or<br />
ESSBASE/400 (cubing) technologies. Add a light weight ETL (Extract Transformation and<br />
Loading) tool for building data marts or data warehouses with Data Migrator.<br />
1-14 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DB2 Web Query enhancement<br />
• New Run-Time User License Enablement Feature<br />
– New Flexible Pricing option<br />
– Can now define a single user license as either<br />
a:<br />
• Report “<strong>Author</strong>”<br />
– Can create/edit reports with web based tools<br />
– Synonymous with a Named User as known today<br />
• Run Time Only Group of Users<br />
– Can only run reports<br />
• Can Group multiple users into a single license<br />
• Significantly reduced prices for scenarios with large set of<br />
run-time users<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-11. DB2 Web Query enhancement AT911.0<br />
Notes:<br />
Named User Pricing<br />
Tier Number of<br />
Named Users<br />
Price*<br />
P05 40 $15,200<br />
P10 80 $32,000<br />
P20 150 $57,600<br />
US list prices, subject to change without notice<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
New Run Time Pricing<br />
Tier Number<br />
of<br />
“<strong>Author</strong>s<br />
”<br />
Number<br />
of Run<br />
Time<br />
Groups<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-15<br />
Price*<br />
P05 4 5 $6,000<br />
P10 4 10 $10,400<br />
P20 8 20 $23,200<br />
•Assumes upgrade into QU2 from QU1
Student Note<strong>book</strong><br />
DB2 Web Query: Making information easily<br />
accessible<br />
Figure 1-12. DB2 Web Query: Making information easily accessible AT911.0<br />
Notes:<br />
Report<br />
Assist<br />
OLAP<br />
3-Click Click<br />
Guided Ad<br />
Hoc<br />
2-Click Click<br />
Dashboards<br />
1-Click Click<br />
Run Time User<br />
1-Click Click<br />
Email<br />
0-Click Click<br />
Internal<br />
Our 2-Click, InfoAssist, browser-based tool typically serves the power user (the 20%).<br />
Intuitive 1-Click access allows BI to be pervasive. Meaning that all users, even your most<br />
novice, non-sophisticated users, can leverage your BI investment.<br />
Expanding usage outside the firewall to include all people.<br />
Increasing the 20% to 100% and beyond!<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Analysts or<br />
Developers<br />
External – Customers, Partners, Citizens<br />
1-16 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Business Users<br />
And Executives<br />
Others
V5.4<br />
Uempty<br />
DB2 Web Query interface<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-13. DB2 Web Query interface AT911.0<br />
Notes:<br />
MAIN interface<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Left side: Major application areas with sub folders and reports and graphs within the folders<br />
Right side: Reports, but these can be full window sized too.<br />
This chart shows a “compound” report which actually combined several reports/charts into<br />
one VIEW, with a drop-down parameter box to select a REGION. This is just a simple<br />
example of the POWER of DB2 Web Query and the flexibility to look at data through<br />
parameters. Select a different country in the drop down box and all the reports will change<br />
to reflect that different region’s data.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-17
Student Note<strong>book</strong><br />
Active reports: Disconnected support<br />
• Self-contained analytical reports<br />
Figure 1-14. Active reports: Disconnected support AT911.0<br />
Notes:<br />
– Delivered to users via email or browser<br />
• Users interact with the data on the report<br />
without being connected to infrastructure<br />
• Intuitive built-in controls<br />
– Sorting, Filtering, Visualization,<br />
Charting, Dynamic Roll-ups<br />
– Export to HTML, CSV or Excel<br />
– Export Charts to Word, Excel, or PowerPoint<br />
• Great for mobile sales reps and other users<br />
that are not connected or defined to the <strong>IBM</strong> i<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
The Active Reports feature lets you analyze the data while disconnected. But this is NOT<br />
static reporting, users can interact with the reports as we’ll download the Java Scripts,<br />
HTML to provide “active” use of the reports.<br />
1-18 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Portable analytics: Active reports (1 of 3)<br />
• Enables implementation of<br />
“self-contained” reports that can<br />
be used when disconnected by<br />
unregistered users<br />
– Embed both extracted data and<br />
related controls<br />
• Filter and/or highlight values<br />
• Hide columns<br />
• Build graph<br />
• Calculate (sum, average, min,<br />
max, and so on)<br />
– Can be sent to end users via email<br />
or saved in file system as<br />
HTML pages<br />
• Can be used while<br />
disconnected from i5/OS<br />
– Offline Mode<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-15. Portable analytics: Active reports (1 of 3) AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-19
Student Note<strong>book</strong><br />
Portable analytics: Active reports (2 of 3)<br />
• Perfect for large scale information delivery applications in<br />
which extensive user training is not possible/desired<br />
Figure 1-16. Portable analytics: Active reports (2 of 3) AT911.0<br />
Notes:<br />
– Great for non-technical users<br />
– Empower front-line/mobile workers: sales force, merchandizing,<br />
purchasing, retail managers<br />
– Service external customers: billing statements, order histories,<br />
transaction histories and statements.<br />
• Users can interact with the data on the report w/o being<br />
connected to <strong>IBM</strong> i<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-20 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Portable analytics: Active reports (3 of 3)<br />
• Ease of use<br />
– Intuitive filtering<br />
• Multiple filtering criteria made easier<br />
• Multiple-chart global filtering<br />
– Visualization bars<br />
– Simplified pivot tabling<br />
– Charting directly from selected<br />
cells<br />
– “Single Click” user interface<br />
• No training required<br />
– Slice, dice and share<br />
• Replace custom applications: Excel<br />
sheets, Access applications, plug-in<br />
solutions for offline analytics<br />
• Possible alternative to ad-hoc tools<br />
or OLAP<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-17. Portable analytics: Active reports (3 of 3) AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-21
Student Note<strong>book</strong><br />
On-Line Analytical Processing feature<br />
• DB2 Web Query OLAP features combines<br />
Figure 1-18. On-Line Analytical Processing feature AT911.0<br />
Notes:<br />
– Standard Web Query Query/Reports<br />
– Relational database access<br />
– OLAP analytic functionality<br />
– into one solution with one common interface<br />
• Powerful in-depth analysis enabled<br />
• Slice and dice data<br />
• Attach bar-graph columns to each measure<br />
• Users can filter, resort, pivot and analyze their data<br />
• Create customer queries and formatted reports<br />
• Pure thin-client tools require no Java or plug-ins<br />
• No cubes required for OLAP analysis<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
The On-Line Analytical Processing (OLAP) feature has a lot of powerful functionality. It<br />
gives the user capabilities normally found in query tools, reporting tools and of course<br />
OLAP slice and dice functionality all while going against your DB2/400 database. There is<br />
no need to create proprietary OLAP cubes and reformat your data. With the DB2 Web<br />
Query OLAP feature you can slice and dice your operational data if you want real time<br />
access or you can perform your analysis on a relational data mart. It is your choice. Nothing<br />
is forced on you.<br />
Simplify deployment, pure thin-client tools require no Java or plug-ins (and no Cubes<br />
needed for OLAP analysis)<br />
1-22 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
19
V5.4<br />
Uempty<br />
DB2 Web Query developer workbench<br />
• Excellent Date understanding and added functionality<br />
including Date decomposition (Year, Quarter, Month,<br />
Day)<br />
• Creation of Hierarchies and Dimension<br />
• Very good awareness of DB2 Foreign Key constraints<br />
• Basic DB2 Web Query metadata also includes:<br />
Column-titles, Business Descriptions, Alias, Format,<br />
Usage, Pre and Post Processing Calculations,<br />
hundreds of data manipulation functions<br />
• SQL Wizard<br />
• HTML Layout Painter<br />
• Impact Analysis, Data Profiling<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-19. DB2 Web Query developer workbench AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Developer workbench is a fat client development environment for working with meta data,<br />
building more sophisticated reports (like compound reports) with an HTML report painter,<br />
and offering other features like Impact Analysis and data profiling that the developer may<br />
leverage.<br />
Federated queries is the idea of joining data from multiple databases into a single query.<br />
This function is built into db2 web query for db2 for i5/OS database, but for oracle,<br />
sqlserver, db2 on aix, you’ll need adapters from information Builders.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-23
Student Note<strong>book</strong><br />
Web Query spreadsheet client<br />
• Benefits:<br />
Figure 1-20. Web Query spreadsheet client AT911.0<br />
Notes:<br />
– Secure access<br />
– Create, edit, and save<br />
queries<br />
– Automatic Refresh of data<br />
– Format and style query data with Web Query engine<br />
– Automatic Named Ranges and Formulas<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-24 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Web Query spreadsheet client guided ad hoc<br />
within Excel<br />
• Data and query are<br />
pre-built<br />
• Users simply work<br />
with parameters<br />
• Utilize DB2 Web Query security<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-21. Web Query spreadsheet client guided ad hoc within Excel AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
An overview of the new guided ad hoc feature for Quick Data which opens up QD to basic<br />
users.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-25
Student Note<strong>book</strong><br />
SQL server adapter<br />
• Benefits:<br />
Figure 1-22. SQL server adapter AT911.0<br />
Notes:<br />
– Extend the reach of DB2 Web Query<br />
– Support pulling data from multiple<br />
SQL Server databases with a single<br />
adapter<br />
– Join data between DB2 and SQL<br />
Server in a single report*<br />
– Use one tool for all your needs!<br />
* Performance considerations apply<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-26 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DB2 Web Query Report Broker: 5733-QU3<br />
• Automated Delivery Of Information<br />
– On Scheduled Basis<br />
• Through Admin GUI<br />
• Daily, Weekly, Specific Days, exclude<br />
rules, and so on.<br />
– On Event Basis<br />
• Some customization required<br />
• Intelligent bursting<br />
– Example: Regional Sales Report<br />
• Additional output formats for batch reporting<br />
– (HTML, PDF, Excel, Active HTML)<br />
• Delivery Destinations<br />
– E-mail<br />
– Printer<br />
– Save the reports for later viewing<br />
• Notify Function<br />
– Send notification when report is complete or fails<br />
– Report Logging<br />
• Requires DB2 Web Query BASE Product to<br />
be installed<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-23. DB2 Web Query Report Broker: 5733-QU3 AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
One of the most important aspects of a BI tool is its capability for automated delivery. Many<br />
information workers don’t have hours of time to spend looking for data, so if you can have<br />
the data find them it makes their days much more productive.<br />
This function can automatically deliver reports. This is known in the industry as “pushing” or<br />
“casting” information. This can be setup by an administrator.<br />
Delivery can be based on a schedule or through a CL interface that could be called based<br />
on some event (for example, a trigger program). A trigger could be placed on a transaction<br />
indicating if a stock price falls below a certain value to invoke the CL command to route a<br />
report out to a distribution list.<br />
This function can intelligently burst the pages of a single report out to the appropriate<br />
people. For example you might a a Profit and Loss statement that shows the P&L for each<br />
business unit on a different page and each page can automatically be burst out to the head<br />
of each business unit.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-27
Student Note<strong>book</strong><br />
DB2 Web Query Software Development Kit: 5733-<br />
QU4<br />
• A set of Web Services that allow<br />
invocation of DB2 Web Query functions<br />
from within an application<br />
– Enables ISV Developers to access and<br />
integrate Web Query Content into any web<br />
application<br />
• Web Services are programming<br />
language independent<br />
– The foundation for SOA<br />
– C, C++, VB.NET, Java, and so on<br />
• Requires the BASE product to be<br />
installed (run time and development)<br />
– Developer Workbench also a development<br />
requirement<br />
• Simple to Deliver powerful BI <strong>content</strong><br />
– Self service parameterized reports<br />
– Active reports and OLAP<br />
Figure 1-24. DB2 Web Query Software Development Kit: 5733-QU4 AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
One of the most important aspects of a BI tool is its capability for automated delivery. Many<br />
information workers don’t have hours of time to spend looking for data, so if you can have<br />
the data find them it makes their days much more productive.<br />
This function can automatically deliver reports. This is known in the industry as “pushing” or<br />
“casting” information. This can be setup by an administrator.<br />
Delivery can be based on a schedule or through a CL interface that could be called based<br />
on some event (for example, a trigger program). A trigger could be placed on a transaction<br />
indicating if a stock price falls below a certain value to invoke the CL command to route a<br />
report out to a distribution list.<br />
This function can intelligently burst the pages of a single report out to the appropriate<br />
people. For example you might a a Profit and Loss statement that shows the P&L for each<br />
business unit on a different page and each page can automatically be burst out to the head<br />
of each business unit.<br />
1-28 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Report assistant<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-25. Report assistant AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview Report Assistant<br />
• Build a Summary Report<br />
• Build a Detailed Report<br />
• Use Excel Output Option<br />
• Link Summary to Detail via Drill-Down<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-29
Student Note<strong>book</strong><br />
Report assistant<br />
Figure 1-26. Report assistant AT911.0<br />
Notes:<br />
Report Assistant<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Report Assistant provides an intuitive, graphical interface with drag-and-drop functionality.<br />
It enables you to quickly create a report in which you can: sort the data; include record<br />
selection criteria; add headings, footings, subtotals, and page-breaks; apply a style<br />
template; and more.<br />
The first report is a simple summary showing revenue by product type. The second report<br />
is a more detailed report calculating gross profit for each product category within a specific<br />
user-requested product type. Finally enable a user who is viewing the initial summary<br />
report to click on product type and automatically drill down to see the more detailed gross<br />
profit report.<br />
1-30 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Graph assistant<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-27. Graph assistant AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview Graph assistant<br />
• Build Bar Graph<br />
• Link Bar Graph to Detail Report via<br />
Drill-Down<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-31
Student Note<strong>book</strong><br />
Graphing assistant<br />
Figure 1-28. Graphing assistant AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Similar to Report Assistant, an easy to use graphing assistant allows users to build<br />
powerful graphs/charts in over 100 different styles.<br />
You can also have drill downs, parameterized selection, headings/footers, and so on.<br />
1-32 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Graph assistant<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-29. Graph assistant AT911.0<br />
Notes:<br />
Graph Assistant<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Graph Assistant provides a wide variety of graph types and graphing functionality to allow<br />
users to choose how to present their data in the best possible format. The available graph<br />
types range from a variety of bar and line charts through histograms and area charts, stock<br />
charts, gauges for key performance indicators and much more.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-33
Student Note<strong>book</strong><br />
Power Painter<br />
• Business people<br />
designing reports for<br />
business people<br />
• Powerful thin-AJAX<br />
based Report Design<br />
tool<br />
• Build Rich Compound<br />
Reports in your<br />
business unit<br />
• Simple, flexible access<br />
without the need to<br />
rely on IT<br />
Figure 1-30. Power Painter AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Power Painter, a new AJAX based WYSIWYG Query design tool.<br />
An intuitive state of the art thin client tool for compound ad-hoc reports, graphs and page<br />
layouts.<br />
1-34 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Web Enable QRY/400<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-31. Web Enable QRY/400 AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Web Enable QRY/400<br />
• Build Metadata Over QRY/400<br />
• Build Report Over QRY/400<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-35
Student Note<strong>book</strong><br />
Web Enable Query/400 definitions<br />
Figure 1-32. Web Enable Query/400 definitions AT911.0<br />
Notes:<br />
Then Modify with<br />
Report<br />
Assistant<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
DB2 Web Query offers an import function to “webify” query/400 reports. The first step is to<br />
import the query/400 definition into DB2 Web Query, and then if desired, the reports can be<br />
prettied up with Report Assistant. Add cross tabs, parameter driven selection criteria, style<br />
sheets or conditional styling, or burst it into multiple pages for easier navigation.<br />
1-36 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Active reports<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-33. Active reports AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview Active reports<br />
• Use Active Reports for Analysis<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-37
Student Note<strong>book</strong><br />
WebFOCUS Active Report<br />
Figure 1-34. WebFOCUS Active Report AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
WebFOCUS Active Report - Microsoft Internet Explorer screen is displayed.<br />
1-38 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
OLAP reports<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-35. OLAP reports AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview OLAP Reports<br />
• Use OLAP Reports for Analysis<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-39
Student Note<strong>book</strong><br />
On-Line Analytical Processing<br />
Figure 1-36. On-Line Analytical Processing AT911.0<br />
Notes:<br />
On-Line Analytical Processing (OLAP)<br />
• One check box allows you to OLAP enable an existing report<br />
• Assumes that you have previously told DB2 Web Query about the hierarchies in your<br />
tables<br />
• Drill down on dimensions<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• Add/remove columns chosen from hierarchies<br />
• Drill down on the measures shows the details records that made up the summary<br />
measure<br />
• Users can change which columns data is summed by, they can pivot and move columns<br />
from the sum by to sum across areas<br />
1-40 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Three ways of working with OLAP reports<br />
• Tabs<br />
• The Report<br />
• OLAP Control Panel<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-37. Three ways of working with OLAP reports AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
We have an individual slide on each one of these 3 bullets.<br />
Not every OLAP report gives the user access to all three features.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-41<br />
38
Student Note<strong>book</strong><br />
OLAP tabs<br />
• Filter or limit data<br />
– Multi-select<br />
– Date ranges<br />
– Equal, not equal, greater than<br />
• Control display of measures<br />
– Visualization bars<br />
–Graphs<br />
– Hide measure<br />
• Modify report<br />
Figure 1-38. OLAP tabs AT911.0<br />
Notes:<br />
– Add columns/cross tabs from dimensions<br />
• Save Report<br />
– Excel, Active Report, OLAP report<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
A lot of Web Query customers have started using OLAP for data analysis without<br />
understanding all the advanced capabilities available. Of course, if everyone understood<br />
the product in its entirety then there wouldn’t be any reason for me being here and giving<br />
this presentation today.<br />
1-42 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
39
V5.4<br />
Uempty<br />
OLAP report body<br />
• Sort columns<br />
• Drill down<br />
• Hide fields<br />
• Pivot By and Across fields<br />
• Visualization Bars<br />
• Rearrange Fields<br />
• Graph fields<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-39. OLAP report body AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Even without the tabs and the OCP the body of the report itself gives us plenty of analytical<br />
capabilities.<br />
This may or may not include drilling down on the measures and/or the dimensions.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-43<br />
40
Student Note<strong>book</strong><br />
OLAP Control Panel<br />
• Includes all tab and report analytical capabilities<br />
• Dimensions Box<br />
– Dimensions / Levels / Values<br />
• Drill Across / Down boxes<br />
– Pivot<br />
– Add delete sort columns from Dimensions box<br />
– Add ranking columns<br />
– Top/Bottom n<br />
– Group numeric data into percentiles<br />
• Measures box<br />
– Stack measures (OCP only)<br />
– Hide/Display/Visualize/Graph measures<br />
– Top/Bottom n<br />
– Calculation measures (count, avg., min., and so on<br />
• Selections Panel<br />
– Relational operators<br />
– Date ranges<br />
– Multi-select from list of values or type value<br />
Figure 1-40. OLAP Control Panel AT911.0<br />
Notes:<br />
OLAP Control Panel (OCP)<br />
• Very powerful<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• Let’s you do pretty well everything that you could do from the tabs or the report itself<br />
• There are actually a few things that you can do in the OLAP Control Panel that you can’t<br />
do in Report Assistant or Power Painter. On the odd occasion the IT developers may<br />
need to use this control panel to create their report the way the end user wants to see it.<br />
There are examples of all this coming up.<br />
1-44 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
41
V5.4<br />
Uempty<br />
OLAP dimension building (1 of 2)<br />
• Requires Developer<br />
Workbench<br />
• Select Modeling View<br />
tab<br />
• Expand table icons to<br />
see field names<br />
• Right click<br />
dimensions<br />
– Add Hierarchy<br />
– Levels<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-41. OLAP dimension building (1 of 2) AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-45<br />
42
Student Note<strong>book</strong><br />
OLAP dimension building (2 of 2)<br />
• Drag and drop<br />
column names into<br />
the dimension panel<br />
• Column can only be<br />
included once per set<br />
of dimensions<br />
Figure 1-42. OLAP dimension building (2 of 2) AT911.0<br />
Notes:<br />
– To include one<br />
column twice double<br />
define the column in<br />
the metadata<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-46 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
43
V5.4<br />
Uempty<br />
OLAP analysis demonstration<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-43. OLAP analysis demonstration AT911.0<br />
Notes:<br />
• Simply by enabling OLAP we went from the static report we saw earlier to this report<br />
with drill down, tabs and many analytical capabilities<br />
• Let’s look at the drill down first<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• As an end user looking at this report I want more details on our TVs<br />
• Drill down on TV will take us from Product category down to the Product Names within<br />
TV<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-47<br />
44
Student Note<strong>book</strong><br />
Break: 15 minutes<br />
Figure 1-44. Break: 15 minutes AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-48 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Developers workbench<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-45. Developers workbench AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview developers workbench<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-49
Student Note<strong>book</strong><br />
DB2 Web Query developer workbench<br />
• Excellent Date understanding and added<br />
functionality including Date decomposition<br />
(Year, Quarter, Month, Day)<br />
• Creation of Hierarchies and Dimension<br />
• Very good awareness of DB2 Foreign Key<br />
constraints<br />
• Basic DB2 Web Query metadata also<br />
includes: Column-titles, Business<br />
Descriptions, Alias, Format, Usage, Pre<br />
and Post Processing Calculations,<br />
hundreds of data manipulation functions<br />
• HTML Composer component to build<br />
dashboards and KPI reports<br />
Figure 1-46. DB2 Web Query developer workbench AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Developer workbench is a fat client development environment for working with meta data,<br />
building more sophisticated reports (like compound reports) with an HTML report painter,<br />
and offering other features like Impact Analysis and data profiling that the developer may<br />
leverage.<br />
Federated queries is the idea of joining data from multiple databases into a single query.<br />
This function is built into db2 web query for db2 for i5/OS database, but for oracle,<br />
sqlserver, db2 on aix, you’ll need adapters from information Builders.<br />
1-50 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
HTML composer<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-47. HTML composer AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview HTML Composer<br />
• Overview of Creating a<br />
Dashboard<br />
• Demonstration<br />
– Creating the Dashboard<br />
Overview Tab<br />
– Creating the Dashboard<br />
Countries Tab<br />
– Creating the Dashboard<br />
Products Tab<br />
– Overview of Creating a<br />
Highly Parameterized Report<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-51
Student Note<strong>book</strong><br />
HTML composer<br />
• Merge multiple reports and graphs into a<br />
single dashboard<br />
• Add pictures, animation, URLs to web<br />
page<br />
• Add parameters as drop down lists,<br />
radio buttons, sliders and more<br />
• Chain multiple parameters<br />
• Create Active Report controls<br />
• Control tab sequence<br />
• Create a highly parameterized report<br />
Figure 1-48. HTML composer AT911.0<br />
Notes:<br />
Below line is what we didn’t do today and could have<br />
• Import AR gives us a new screen<br />
• Tabs<br />
That is it for dashboards but we have an additional function in HTML Composer that I<br />
wanted to show you quickly because we probably won’t be doing another HMTL Composer<br />
webcast in the near future and it is worthy of your attention<br />
• Highly parameterized report<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-52 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Creating a corporate overview dashboard<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-49. Creating a corporate overview dashboard AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-53
Student Note<strong>book</strong><br />
Creating dashboards with HTML composer<br />
Figure 1-50. Creating dashboards with HTML composer AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Here is a standard dashboard that you can see in a live demonstration on the web from the<br />
web query home page. In the presentation on the home page we look at the dashboard<br />
and it’s components from an end users point of view. It is available for you to show to<br />
others in your company if you want to show them what can be done.<br />
Today is strictly technical, how do we create these web pages.<br />
1-54 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Highly parameterized reports (1 of 2)<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-51. Highly parameterized reports (1 of 2) AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-55
Student Note<strong>book</strong><br />
Highly parameterized reports (2 of 2)<br />
Steps:<br />
• Create and test basic report<br />
• Add multiple parameters<br />
• Create HTML layout and<br />
reference parameterized report<br />
• Assign hyperlink controls<br />
– Select control types<br />
• Use calendars for dates<br />
– Link appropriate parameters<br />
• country -> state -> city<br />
• Output report in separate<br />
window<br />
• Enhance appearance of<br />
parameters<br />
– Frames, panels, images<br />
• Delete initial report box<br />
– Report will output to a separate<br />
window<br />
Figure 1-52. Highly parameterized reports (2 of 2) AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-56 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Spreadsheet client<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-53. Spreadsheet client AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview Spreadsheet client<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-57
Student Note<strong>book</strong><br />
Spreadsheet client feature 5733QU2: Option 5<br />
• Improve the experience for<br />
Excel Users<br />
• Excel Plug In<br />
• Embed queries in Excel<br />
templates<br />
Figure 1-54. Spreadsheet client feature 5733QU2: Option 5 AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-58 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Report Broker<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-55. Report Broker AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this exercise, you will:<br />
– Overview of Report Broker<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-59
Student Note<strong>book</strong><br />
Automate report execution and distribution with Report<br />
Broker: 5733-QU3<br />
• Automated Delivery Of Information<br />
– On Scheduled Basis<br />
• Through Admin GUI<br />
• Daily, Weekly, Specific Days, exclude rules, etc.<br />
– On Event Basis<br />
• Some customization required<br />
• Intelligent bursting<br />
– Ex: Regional Sales Report<br />
• Additional output formats for batch reporting<br />
– (HTML, PDF, Excel, Active HTML)<br />
• Delivery Destinations<br />
– E-mail<br />
– Printer<br />
– Save the reports for later viewing<br />
• Notify Function<br />
– Send notification when report is complete or fails<br />
– Report Logging<br />
• Requires DB2 Web Query BASE Product to be installed<br />
Figure 1-56. Automate report execution and distribution with Report Broker: 5733-QU3 AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
One of the most important aspects of a BI tool is its capability for automated delivery. Many<br />
information workers don’t have hours of time to spend looking for data, so if you can have<br />
the data find them it makes their days much more productive.<br />
This function can automatically deliver reports. This is known in the industry as “pushing” or<br />
“casting” information. This can be setup by an administrator.<br />
Delivery can be based on a schedule or through a CL interface that could be called based<br />
on some event (for example, a trigger program). A trigger could be placed on a transaction<br />
indicating if a stock price falls below a certain value to invoke the CL command to route a<br />
report out to a distribution list.<br />
This function can intelligently burst the pages of a single report out to the appropriate<br />
people. For example you might a a Profit and Loss statement that shows the P&L for each<br />
business unit on a different page and each page can automatically be burst out to the head<br />
of each business unit.<br />
1-60 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Who can schedule a report?<br />
• Two levels of profiles in Report Broker:<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-57. Who can schedule a report? AT911.0<br />
Notes:<br />
– Report Broker Users<br />
• Set via the MRSCHEDULE group profile<br />
– Report Broker Administrators<br />
• Set via the MRADMIN group profile<br />
• Same as Web Query Administrators<br />
• To schedule a report, you must be a Report Broker User or<br />
Administrator<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-61
Student Note<strong>book</strong><br />
End user interface<br />
Figure 1-58. End user interface AT911.0<br />
Notes:<br />
• To create a schedule, right click on a report and select<br />
Schedule<br />
Developer<br />
User<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-62 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
First distribution method: Email<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• Choose a single address or a distribution list to send emails to<br />
• In the box to the right, type the email address or distribution list<br />
name<br />
• Update the From or Reply To address, if desired<br />
• Update the Subject line for the email<br />
Figure 1-59. First distribution method: Email AT911.0<br />
Notes:<br />
– Defaults to Report name, Date, Time<br />
• Can send inline or as attachment<br />
– If attachment:<br />
• Can provide a body for<br />
the message<br />
• Can send as Zip file<br />
– Can set Zip file name<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-63
Student Note<strong>book</strong><br />
Second distribution method: Printer<br />
• Sends to a LP (Line Protocol) Printer<br />
• Choose a single printer or distribution list of printers<br />
• Address the printer as printqueue@printserver<br />
Figure 1-60. Second distribution method: Printer AT911.0<br />
Notes:<br />
– The printerserver portion can be an IP address or DNS name<br />
• DNS must be resolvable from the <strong>IBM</strong> i, not the PC<br />
– Use PING from the green screen to verify<br />
– Samples:<br />
• simplex@itprinter.mycompany.com<br />
• printer7@192.168.0.1<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-64 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Third distribution method: Web Query<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• The Web Query method of distribution stores the reports on<br />
the server<br />
– Use for “Run once – View many” styles of reports<br />
– Resource intensive reports<br />
– Unchanging data<br />
– Example: Last month’s sales report – resource intensive, non-volatile<br />
data<br />
• Folder Name defines the folder within the domain that the<br />
report will be stored to<br />
– Created in the domain that contains the report<br />
– Report name is the schedule description<br />
– Requires Developer authority to domain<br />
• Creates a report<br />
Figure 1-61. Third distribution method: Web Query AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-65
Student Note<strong>book</strong><br />
Frequency<br />
• Determines how often the report is run<br />
• Can be set for:<br />
–Once<br />
– Minute(s)<br />
– Hour(s)<br />
–Day(s)<br />
– Week(s)<br />
– Month(s)<br />
– Year(s)<br />
• Options change depending on duration<br />
selected<br />
• Keep in mind the interval from setup<br />
Figure 1-62. Frequency AT911.0<br />
Notes:<br />
– Only “wakes up” every n minutes<br />
• If report is set every minute but interval is 5,<br />
it will only run every five minutes<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-66 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Report options<br />
• Several formats can be used<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-63. Report options AT911.0<br />
Notes:<br />
– Will override report value<br />
– May show non-valid options<br />
• Reports cannot be PNG<br />
• Graphs cannot be DOC<br />
• Burst this Report enables<br />
Intelligent Bursting<br />
• Execution ID is the<br />
profile used to run<br />
the report<br />
– Keep in mind for row<br />
level security and views<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-67
Student Note<strong>book</strong><br />
Intelligent bursting and parameters<br />
• Intelligent Bursting takes a single report and separates it based on the<br />
first Sort By column in the report<br />
– Each individual report contains:<br />
• Header<br />
• That section of data<br />
• Footer<br />
• It then sends these mini-reports based on the distribution lists and<br />
burst values<br />
– If no report data for the burst value, no report sent<br />
– If no burst value for the report data, data discarded<br />
• Will cover burst values when we cover distribution lists<br />
• If there are parameters in the reports, the value needs to be preset<br />
– Can use the auto-prompting facility here as well to select from a list of<br />
valid values<br />
Figure 1-64. Intelligent bursting and parameters AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-68 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Notification<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• Can send notifications on error or always<br />
• Can send brief (ideal for text messages) or complete logs<br />
• Enter the email address for either the full or brief notification<br />
• Enter the email address for the reply address<br />
• Set the subject line of the message<br />
• Note that if On Error or Always is set as the default from the<br />
configuration, the notification address and reply are required<br />
fields<br />
– No way to set defaults<br />
• The Notification section is collapsed by default<br />
Figure 1-65. Notification AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-69
Student Note<strong>book</strong><br />
Advanced<br />
• Can set the priority level<br />
Figure 1-66. Advanced AT911.0<br />
Notes:<br />
– Lower number is higher priority<br />
• Just like <strong>IBM</strong> i priority<br />
• Priority 1 higher than Priority 3<br />
• Can set to enabled or just created but not running<br />
• Can choose to delete if no longer being run<br />
– Many of the repeating reports have stop dates<br />
• The Advanced section is collapsed by default<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-70 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
CL command<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• The QWEBQRY76/RUNBRSCHED CL command can be used<br />
to instantly invoke a stored schedule to run<br />
• Cannot pass parameters in via the CL<br />
– Must be stored in the Schedule<br />
• Can tie to native programs to monitor for conditions and send<br />
reports<br />
• Could link to a trigger program on a physical file<br />
– If inventory too low, trigger report to be emailed to Purchasing<br />
Department<br />
Figure 1-67. CL command AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-71
Student Note<strong>book</strong><br />
DB2 Web Query Domains<br />
• Domains are “baskets” to organize,<br />
classify and separate reports and<br />
graphs<br />
– Common Domain is the default product<br />
domain<br />
– domains are created in path<br />
– /qibm/UserData/webquery/ibi/webfocus76/b<br />
asedir/<br />
• The administrator group profile<br />
MRADMIN is the only one authorized<br />
to create new domains<br />
• Inside each domain, there are two<br />
folders<br />
– Reports: this folder contains permanent<br />
report and graphs objects organized in subfolders<br />
– Other Files: this folder contains files like<br />
style sheets and jpegs to import into your<br />
reports and graphs<br />
Figure 1-68. DB2 Web Query Domains AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Domains are central to DB2 Web Query. They are similar in function to a library or folder in<br />
that they’re “Baskets” to organize, classify, and separate reports and graphs and are the<br />
main authorization level for DB2 Web Query.<br />
To create a new domain all users must be part of the MRADMIN domain. All of the users in<br />
this lab have been authorized to MRADMIN.<br />
If a user is already a member of a group profile use the SUPGRP parameter, for example,<br />
CHGUSRPRF USRPRF(userid) SUPGRPPRF(MRADMIN)<br />
1-72 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Software Development Kit<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-69. Software Development Kit AT911.0<br />
Notes:<br />
Software Development Kit (SDK)<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview SDK<br />
• 5733-QU4<br />
• SOA Toolkit<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-73
Student Note<strong>book</strong><br />
DB2 Web Query Software Development Kit:<br />
5733QU4<br />
• The Web Query SDK is a collection of Web Services that allow Web<br />
Query <strong>content</strong> to be easily exposed to any application that can call a<br />
Web Service<br />
• Callable from many languages:<br />
Figure 1-70. DB2 Web Query Software Development Kit: 5733QU4 AT911.0<br />
Notes:<br />
– C, C++, C#, VB.NET, PHP, Java, RPG, COBOL<br />
• Web Query customers<br />
– Create their own front-end applications to run<br />
Web Query reports and graphs<br />
(<strong>Portal</strong>, Corporate Look and Feel)<br />
• ISVs<br />
– Simple way to deliver an applications that<br />
contains Web Query <strong>content</strong><br />
– Simple way to deliver an application that<br />
controls Web Query <strong>content</strong>, e.g., Change<br />
Management Application<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Can be a windows .net program communicating with unix program written in java.<br />
1-74 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Integration with PHP<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-71. Integration with PHP AT911.0<br />
Notes:<br />
DB2 Web Query Integration from PHP - Leveraging DB2 Web Query web services<br />
from <strong>IBM</strong> i applications<br />
http://ibm.com/partnerworld/wps/whitepaper/i/php_db2/webquery<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-75
Student Note<strong>book</strong><br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (1 of 7)<br />
• What is the SOA toolkit??<br />
Figure 1-72. DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (1 of 7) AT911.0<br />
Notes:<br />
– Web Application allowing Remote calls for DB2 Web Query Reports/Graphs<br />
• HTML/.Net/PHP/Java Servlet/JSP/ASP<br />
• Rich Client, RPG, COBOL, C, C++, JAVA<br />
• E-Mail/IM<br />
• What are the advantages of using the toolkit??<br />
• Ease of development/integration – simply install and start plugging in DB2 Web Query<br />
reports to your applications with a simple URL reference<br />
• Saves development cost/time – Faster adaptation!<br />
• Integrated Application Server (IAS) will allow the toolkit to be called from any Web<br />
Interface capable of calling an URL<br />
• Ability to email a link to a specific report to run real-time!!!!<br />
Contact: stgls@us.ibm.com or visit<br />
www.ibm.com/systems/services/labservices<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-76 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (2 of 7)<br />
Easy Integration!<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-73. DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (2 of 7) AT911.0<br />
Notes:<br />
Links<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Reports<br />
Graphs<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-77
Student Note<strong>book</strong><br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (3 of 7)<br />
Figure 1-74. DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (3 of 7) AT911.0<br />
Notes:<br />
Greatly simplifies report integration process<br />
http://lp12ut21:12321/wqsoa/report/?&zrdDomain=db2wbqry<br />
%2Fdb2wbqry.htm&zrdFolder=%23visiblea56gb&zrdReport<br />
=app%2Fproduct_revenue_state_report.fex<br />
&STATE=California<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-78 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (4 of 7)<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-75. DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (4 of 7) AT911.0<br />
Notes:<br />
Greatly simplifies report integration process<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-79
Student Note<strong>book</strong><br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (5 of 7)<br />
Figure 1-76. DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (5 of 7) AT911.0<br />
Notes:<br />
Greatly simplifies report integration process<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-80 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (6 of 7)<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-77. DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (6 of 7) AT911.0<br />
Notes:<br />
Provide links in emails to run reports<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-81
Student Note<strong>book</strong><br />
DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (7 of 7)<br />
Figure 1-78. DB2 Web Query for <strong>IBM</strong> i SOA Toolkit (7 of 7) AT911.0<br />
Notes:<br />
Greatly simplifies report integration process<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-82 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Advanced topics<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-79. Advanced topics AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
• In this topic, you will:<br />
– Overview advanced topics<br />
• Metadata<br />
• Security<br />
• User Management<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-83
Student Note<strong>book</strong><br />
Domain name<br />
• Each domain has an “internal” 8<br />
characters name known as Href<br />
– Right click on the domain and select<br />
Properties<br />
• Exactly 8 characters domain name<br />
Figure 1-80. Domain name AT911.0<br />
Notes:<br />
– Href will be the same as domain name<br />
• Less than 8 characters domain name<br />
– The domain name will be padded to<br />
complete the 8 characters to generate<br />
Href<br />
• More than 8 characters domain name<br />
– The domain name will be truncated to 8<br />
characters to generate Href<br />
– If the first 8 characters of the Href are<br />
already being used by another domain, a<br />
totally random Href will be generated<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
DB2 Web Query has an “internal” eight character name reference construct knows an Href.<br />
If you Domain name is eight character long and hasn’t already been used the Domain<br />
name and the Href are the same. If your domain name is not eight characters long DB2<br />
web query will either pad or truncate the domain name to create the eight character Href<br />
name.<br />
For Simplicity in implementing security and problem determination eight character Domain<br />
names are highly suggested. Once you create the domain you can Modify the description<br />
to make it more meaningful to the end users. The underlying domain name will still remain<br />
the eight characters.<br />
1-84 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Access to domains (1 of 2)<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• DB2 Web Query uses Href to control user access to the domains<br />
• DB2 Web Query will check which i5/OS group the user belongs to<br />
Figure 1-81. Access to domains (1 of 2) AT911.0<br />
Notes:<br />
– MDHrefname group the user is a developer in the domain with the<br />
associated Href and he can create, modify and run queries in that domain<br />
– MUHrefname group the user is a basic user in the domain with the<br />
associated Href and he can only run queries in that domain<br />
• Default Common Domain Href is UNTITLED<br />
– for a user to be a developer in the Common Domain he would need to belong to<br />
the group MDUNTITLED<br />
– all registered DB2 Web Query users are entitled to run reports in the Common<br />
Domain by default and they don’t need to belong to a group MUUNTITLED<br />
It is a good practice to name your domains exactly with 8 characters!<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Users log into DB2 Web Query using their i5/OS user profiles and passwords. If that user<br />
has been registered as a named user, access is allowed to the DB2 Web Query launch<br />
page.<br />
From the launch page, a user is allowed to work with reports within a DB2 Web Query<br />
domain.<br />
Each domain is associated with two group profiles: one for report developers and one for<br />
report users. User profiles are then added to the appropriate group profile. If a user profile<br />
is a member of the “report developer” group profile associated with the domain, that user<br />
can create, edit, and run reports within that domain. Similarly, user profiles that are<br />
members of the “report user” group profile can (only) run all reports within the associated<br />
domain.<br />
The developer class named users are members of a group user profile name prefixed by<br />
MD, and user class named users are members of a group user profile name that is prefixed<br />
by MU. For example, if your domain is named SALESREP, the developer group profile is<br />
named MDSALESREP, and the user level group profile is MUSALESREP.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-85
Student Note<strong>book</strong><br />
In addition, when the report is executing, normal i5/OS object-level security is enforced.<br />
Therefore, if the user who running the query does not have the appropriate authority to the<br />
underlying database object, the query execution fails accordingly<br />
1-86 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Access to domains (2 of 2)<br />
• Create a domain named NICKDOM1<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-82. Access to domains (2 of 2) AT911.0<br />
Notes:<br />
Group Profile<br />
name<br />
Administrator Developer Basic User<br />
MRADMIN MDNICKDOM1 MUNICKDOM1<br />
Create<br />
Domain<br />
YES<br />
Create subfolder<br />
YES YES<br />
Create Report YES YES<br />
Change<br />
Report<br />
YES YES<br />
Run Report YES YES YES<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Here’s an example of operations authority to a domain called NickDom1 The next visual<br />
shows the steps to assign users to these authorities.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-87
Student Note<strong>book</strong><br />
Steps to create domain NICKDOM1<br />
1. Create the new domain NICKDOM1 from the DB2 Web Query home<br />
page by a user who is member of MDADMIN group.<br />
2. From the <strong>IBM</strong> i command line, create the user profiles using the<br />
following CL commands:<br />
• CRTUSRPRF USRPRF(MDNICKDOM1) TEXT(‘Group Profile for Developers’)<br />
• CRTUSRPRF USRPRF(MUNICKDOM1) TEXT(‘Group Profile for Basic Users’)<br />
3. After you create the group profiles for Developers and Users for the<br />
domain nickdom1, assign the existing users their correct authority.<br />
Enter the CHGUSRPRF CL command as follows:<br />
• CHGUSRPRF USRPRF(FRED) GRPPRF(MDMONTHEND)<br />
• CHGUSRPRF USRPRF(NICK) GRPPRF(MUMONTHEND)<br />
4. If you use the CHGUSRPRF command to change the group profile<br />
name while a user is currently signed on to DB2 Web Query, the user<br />
must log off and log on again to see the new authority reflected.<br />
5. If a user does not belong to any group profiles for a domain, the user is<br />
only authorized to run reports in the Common Domain. No other<br />
domains are visible to the user.<br />
Figure 1-83. Steps to create domain NICKDOM1 AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Here’s the basic steps to create a domain and authorize users to the domain so the domain<br />
name appears in their list when they sign on.<br />
1-88 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Base licensing model<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-84. Base licensing model AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-89
Student Note<strong>book</strong><br />
Run time user enablement licensing model<br />
Figure 1-85. Run time user enablement licensing model AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-90 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Run time user enablement (1 of 3)<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-86. Run time user enablement (1 of 3) AT911.0<br />
Notes:<br />
Less secure environment<br />
MUALLREPOR (Domain MU group<br />
profile)<br />
HRUSER01<br />
. . . .<br />
HRUSER12<br />
PURCHUSR01<br />
. . . .<br />
PURCHUSR15<br />
RDUSER01<br />
. . . .<br />
RDUSER12<br />
SALEREP01<br />
. . . .<br />
SALESREP67<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
One domain<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-91
Student Note<strong>book</strong><br />
Run time user enablement (2 of 3)<br />
Figure 1-87. Run time user enablement (2 of 3) AT911.0<br />
Notes:<br />
More secure environment<br />
MUHUMANRES (Domain MU group<br />
profile)<br />
HRUSER01<br />
. . . .<br />
HRUSER12<br />
MUPURCHASE (Domain MU group<br />
profile)<br />
PURCHUSR01<br />
. . . .<br />
PURCHUSR15<br />
MURESEARCH (Domain MU group<br />
profile)<br />
RDUSER01<br />
. . . .<br />
RDUSER12<br />
MUSALESMKT (Domain MU group<br />
profile)<br />
SALESREP01<br />
. . . .<br />
SALESREP67<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-92 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Four domains
V5.4<br />
Uempty<br />
Run time user enablement (3 of 3)<br />
• Option 1:<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-88. Run time user enablement (3 of 3) AT911.0<br />
Notes:<br />
Now you have a choice!<br />
– 5 Developers<br />
– 95 Users<br />
– P20 System<br />
– 5 Domains<br />
• 5733QU2 Base<br />
– Includes 6 user profiles<br />
– $9,600<br />
• 94 additional users<br />
– (5 + 95) needed – 6<br />
included<br />
– $400 each<br />
– $37,600<br />
• Total: $47,200<br />
SAME<br />
• Option 2:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
– 5 Developers<br />
– 95 Users<br />
– P20 System<br />
– 5 Domains<br />
• 5733QU2 Base<br />
– Includes 6 user profiles<br />
– $9,600<br />
• 5733QU2 Option 4<br />
– $9,600<br />
• 4 additional users<br />
– (5 + 5) needed – 6 included<br />
– $400 each<br />
– $1,600<br />
Saved<br />
$26,400!!!!<br />
• Total: $20,800<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-93
Student Note<strong>book</strong><br />
DB2 Web Query security (1 of 3)<br />
Figure 1-89. DB2 Web Query security (1 of 3) AT911.0<br />
Notes:<br />
Row and column level security<br />
Report Requirements:<br />
• Show all employees, as well as only those employees in the manager’s division.<br />
Note: This requires row-level security.<br />
• Sort and group the employees by division and department name.<br />
• Include other columns (employee name [first and last], job title and salary).<br />
• Display salaries only for employees who directly report to the manager (that is, they are in the same<br />
department as the manager who runs the report). Otherwise, show blanks for this column.<br />
Note: This requires column-level security.<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
DB2 Web Query utilizes a virtualization technique called Metadata. Metadata allows DB2<br />
Web Query to reference existing database records without having to create another copy in<br />
a proprietary format. You’re always working with one version of the truth.<br />
This metadata allow DB2 Query to aggregate data from different types of databases, for<br />
example, DB2 for i5/OS, DB2 for AIX, Oracle, SQL Server, and so on.<br />
Metadata is a permanent object in the IFS. You do not have to create the metadata again<br />
if you delete the file and recreate it later with the same format. DB2 Web Query will still be<br />
able to access the file.<br />
Metadata is created by different adapters as you saw in the labs. There is DB2 CLI for<br />
i5/OS DB2, Query/400 CLI for *QRYDFN object, and the HERITAGE FILE adapter for<br />
Multiple Format Physical files.<br />
The QUERY/400 Adapter creates metadata whenever you import *QRYDFN objecting into<br />
DB2 Web Query.<br />
1-94 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DB2 Web Query security (2 of 3)<br />
• i5/OS object level security is ALWAYS enforced!!<br />
• Use SQL views and UDF’s to enhance security<br />
– Can provide row and column level security<br />
– Reduces report creation/maintenance!<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-90. DB2 Web Query security (2 of 3) AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
DB2 Web Query utilizes a virtualization technique called Metadata. Metadata allows DB2<br />
Web Query to reference existing database records without having to create another copy in<br />
a proprietary format. You’re always working with one version of the truth.<br />
This metadata allow DB2 Query to aggregate data from different types of databases, for<br />
example, DB2 for i5/OS, DB2 for AIX, Oracle, SQL Server, etc.<br />
Metadata is a permanent object in the IFS. You do not have to create the metadata again<br />
if you delete the file and recreate it later with the same format. DB2 Web Query will still be<br />
able to access the file.<br />
Metadata is created by different adapters as you saw in the labs. There is DB2 CLI for<br />
i5/OS DB2, Query/400 CLI for *QRYDFN object, and the HERITAGE FILE adapter for<br />
Multiple Format Physical files.<br />
The QUERY/400 Adapter creates metadata whenever you import *QRYDFN objecting into<br />
DB2 Web Query.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-95
Student Note<strong>book</strong><br />
DB2 Web Query security (3 of 3)<br />
Figure 1-91. DB2 Web Query security (3 of 3) AT911.0<br />
Notes:<br />
Row and column level security<br />
Technique described in white paper: Using SQL views and stored procedures with DB2 Web Query<br />
http://www-304.ibm.com/jct09002c/partnerworld/wps/servlet/ContentHandler/whitepaper/i5os/db2_sql/security<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
DB2 Web Query utilizes a virtualization technique called Metadata. Metadata allows DB2<br />
Web Query to reference existing database records without having to create another copy in<br />
a proprietary format. You’re always working with one version of the truth.<br />
This metadata allow DB2 Query to aggregate data from different types of databases, for<br />
example, DB2 for i5/OS, DB2 for AIX, Oracle, SQL Server, etc.<br />
Metadata is a permanent object in the IFS. You do not have to create the metadata again<br />
if you delete the file and recreate it later with the same format. DB2 Web Query will still be<br />
able to access the file.<br />
Metadata is created by different adapters as you saw in the labs. There is DB2 CLI for<br />
i5/OS DB2, Query/400 CLI for *QRYDFN object, and the HERITAGE FILE adapter for<br />
Multiple Format Physical files.<br />
The QUERY/400 Adapter creates metadata whenever you import *QRYDFN objecting into<br />
DB2 Web Query.<br />
1-96 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DB2 Web Query metadata (1 of 2)<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• DB2 Web Query queries all DB2 for i5/OS data (tables, physical files, views,<br />
logical files, aliases, stored procedures and materialized query tables)<br />
Figure 1-92. DB2 Web Query metadata (1 of 2) AT911.0<br />
Notes:<br />
• DB2 Web Query doesn’t use DB2 for i5/OS data directly but it<br />
requires it's own Metadata (Synonyms)<br />
– Metadata created on tables/files contain similar information provided<br />
by i5/OS command DSPFFD<br />
– Metadata created on a stored procedure defines its result set<br />
• Metadata are permanent stream files in IFS<br />
– You do not need to create them again unless the file layout changes<br />
� Metadata is also created when existing *QRYDFN objects are<br />
imported<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
DB2 Web Query utilizes a virtualization technique called Metadata. Metadata allows DB2<br />
Web Query to reference existing database records without having to create another copy in<br />
a proprietary format. You’re always working with one version of the truth.<br />
This metadata allow DB2 Query to aggregate data from different types of databases, for<br />
example, DB2 for i5/OS, DB2 for AIX, Oracle, SQL Server, and so on.<br />
Metadata is a permanent object in the IFS. You do not have to create the metadata again<br />
if you delete the file and recreate it later with the same format. DB2 Web Query will still be<br />
able to access the file.<br />
Metadata is created by different adapters as you saw in the labs. There is DB2 CLI for<br />
i5/OS DB2, Query/400 CLI for *QRYDFN object, and the HERITAGE FILE adapter for<br />
Multiple Format Physical files.<br />
The QUERY/400 Adapter creates metadata whenever you import *QRYDFN objecting into<br />
DB2 Web Query.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-97
Student Note<strong>book</strong><br />
Metadata objects (1 of 3)<br />
• For each metadata, two files are automatically created in<br />
Figure 1-93. Metadata objects (1 of 3) AT911.0<br />
Notes:<br />
/qibm/userdata/webquery/ibi/apps/baseapp<br />
• Default metadata file name is the name of the object described by<br />
metadata<br />
– Prefix and/or suffix can be specified<br />
– A different name can be specified overwriting the original object name<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
All Metadata is stored in /qibm/userdata/webquery/ibi/apps/baseapp . An MAS file and<br />
an ACS file.<br />
Prefixes or suffixes can be assigned to group metadata object. You can overwrite the<br />
metadata name when creating the metadata or overwriting the original object name.<br />
1-98 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Metadata objects (2 of 3)<br />
• Master files .mas extension<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-94. Metadata objects (2 of 3) AT911.0<br />
Notes:<br />
– It describes the fields (length and data type) of the table or, if the<br />
object is a QRYDFN, the fields of the query’s result set<br />
• Access files .acx extension<br />
– It contains the object type and name that the metadata describes<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
The .MAS extension describes the fields and the .acx extension contains the object type<br />
and name the metadata describes.<br />
It’s these objects we need to reference if we want to save individual metadata or QRYDFN<br />
objects.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-99
Student Note<strong>book</strong><br />
Metadata objects (3 of 3)<br />
• DB2 Web Query base product doesn’t have any<br />
interface to delete metadata. You have two<br />
different options<br />
– From Windows Explorer or WRKLNK CL command,<br />
manually delete .mas and .acx corresponding files<br />
Figure 1-95. Metadata objects (3 of 3) AT911.0<br />
Notes:<br />
• Be careful! First check that no dependencies<br />
(reports or other synonyms) based on these<br />
metadata exist!<br />
– Buy a Developer Workbench license and use that<br />
interface<br />
• Impact Analysis component of Developer<br />
Workbench displays all dependencies<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
If you want to delete metadata from DB2 Web Query there are two methods.<br />
Manually delete the two objects using WRKLNK CL commands or Windows Explorer<br />
Or Use the Developer Workbench to delete them.<br />
1-100 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DB2 Web Query metadata (2 of 2)<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• Multi-members files support<br />
– DB2 CLI adapter<br />
• sends SQL statements to database, SQL can only read data from the first<br />
member in a file, so you must first create an SQL ALIAS for the member on<br />
which you want to define the metadata<br />
Figure 1-96. DB2 Web Query metadata (2 of 2) AT911.0<br />
Notes:<br />
CREATE ALIAS MYLIB/MYALIAS FOR MYLIB/MULTI_MBR_FILE (MBR_NUM_2)<br />
Knowledge Base doc. Number 13664534 - Accessing Files with Multiple Members Using SQL<br />
http://www-912.ibm.com/s_dir/slkbase.NSF/f5ed8d76fdf9afb88625680b00020384/f1eaeecc0af19cc38625669100569213?OpenDocument<br />
– DB Heritage Files adapter<br />
• sends OPNQRYF CL commands<br />
to database, so you can directly<br />
specify the member name creating<br />
metadata<br />
• NOTE: SQE will NOT be used!<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
The DB2 CLI adapter sends SQL statements to i5/OS, where the DB2 Heritage File<br />
adapter sends the OPNQRYF CL commands. As indicated earlier, DB2 for i5/OS optimizes<br />
SQL and OPNQRYF differently. SQL can go down the codepath of the newer SQE, where<br />
OPNQRYF must still go down the CQE path. In general, SQE tends to be faster than CQE.<br />
A limitation of SQL is that it can only read data from the first member in a file. Perhaps you<br />
have run into this limitation when writing SQL queries on multimember files before. One<br />
option is to consider using an SQL alias, which enables your query to use the DB2 CLI<br />
adapter and makes the query eligible for SQE. The alias is a permanent i5/OS object that<br />
“points” to a specific member in a file. It is easy to create, and after it exists, SQL treats the<br />
alias the same as it would a table. You simply substitute the alias name in any query where<br />
you would put a table name.<br />
Here is an example of a CREATE ALIAS command in SQL:<br />
CREATE ALIAS QGPL/MYALIAS FOR QGPL/MULTI_MBR_FILE (MBR_NUM_2)<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-101
Student Note<strong>book</strong><br />
You can run this command in the Run SQL Scripts window of iSeries Navigator or in<br />
STRSQL from the command line. STRSQL has a prompt for CREATE ALIAS that is<br />
intuitive.<br />
1-102 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
SQL views<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• Create joins in SQL views (Create metadata against the views)<br />
Figure 1-97. SQL views AT911.0<br />
Notes:<br />
– Technique for implementing row and column level security<br />
– Encourages database optimization (“pushes” logic down to DB2)<br />
– Take advantage of additional join types, unions, intersects, excepts,<br />
Common Table Expressions<br />
– Data-centric<br />
– Accessible by any SQL interface<br />
• Embedded SQL<br />
• JDBC<br />
• ODBC<br />
• and so on<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
For advanced SQL performance and tuning you can create joins in SQL Views and then<br />
create metadata against those view. The functionality is too great to cover in this class but<br />
attend OL40 DB2 UDB for iSeries and SQL and Query Performance Workshop. A 4.5 day<br />
class that teaches these techniques and more.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-103
Student Note<strong>book</strong><br />
Join at metadata layer<br />
• DB2 Web Query join syntax stored in metadata – translated to SQL<br />
statement<br />
– Requires Developer Workbench<br />
– Can be accessed by all DB2 Web Query reports and graphs<br />
– Not accessible from other SQL interfaces<br />
Figure 1-98. Join at metadata layer AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
You can easily create DB2 Web Query File join syntax in the Developers Workbench. This<br />
easy to use interfaces is translated to SQL statements. It will provide all of your end users<br />
simplicity in just referencing on “metadata” instead of multiple files. This join can be<br />
access by all functions within DB2 Web Query<br />
1-104 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Report created joins<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• Create joins in Report Assistant, Graph Assistant. DB2 Web Query join<br />
syntax in Report “procedure” – translated to SQL statement<br />
– Developer Workbench not required<br />
– Can be accessed ONLY by that DB2 Web Query report/graph<br />
Figure 1-99. Report created joins AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Just as you could create joins for Query/400 within an individual report, DB2 Web Query<br />
also has that function. That “Join” is just valid for that report so efficiencies aren’t nearly as<br />
great as having the join accessible to all applications.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-105
Student Note<strong>book</strong><br />
Library lists: Step one<br />
• Select “One-part name” during metadata creation process<br />
(DB2 CLI Only)<br />
Figure 1-100. Library lists: Step one AT911.0<br />
Notes:<br />
– Removes hard coding of library<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
To obtain the library list behavior and avoid creating a separate report for each data library,<br />
you must select the One part name synonym setting as shown.<br />
Specifying one part name for the synonym prevents DB2 Web Query from hard coding the<br />
library name in the metadata. When the report (based on a one part name synonym) is run,<br />
the requesting user’s library list is searched for the table or view names on which the<br />
synonym is based. This means that you must either log in as a different user profile in order<br />
to have the report access data in a different library, or use an easier technique to change<br />
the library list of the job description that is defined to the user profile.<br />
As long as the formats of the files in the different libraries are the same, this method is<br />
possible to carry out.<br />
Note: From a DB2 Web Query perspective, the user’s library list is determined and<br />
controlled by the system values QSYSLIBL and QUSRLIBL as well as the job description<br />
that is defined for the user profile. Any other method of setting the library list is not<br />
recognized by DB2 Web Query. For example, if you are using the initial program (specified<br />
1-106 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Uempty in the user profile) to manipulate the library list when the user signs on, this method will fail<br />
because the initial program is not executed during the DB2 Web Query session You will<br />
need to create an Exit Point Program for the DB2 CLI in order to accomplish this.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-107
Student Note<strong>book</strong><br />
Library lists: Step two<br />
• Set library list<br />
Figure 1-101. Library lists: Step two AT911.0<br />
Notes:<br />
– System value QUSRLIBL<br />
– Job description of user profile<br />
• Initial program of user profile<br />
– Requires creation of exit program and use of CLI connect exit point<br />
Tip from Gene Cobb Rochester Development Lab<br />
Prior to implementing, here are some things you need to consider:<br />
• This ONLY works for DB2 Web Query reports/graphs that access synonyms (metadata)<br />
created against the DB2 CLI adapter - it will NOT work for imported query/400 reports<br />
or the DB Heritage File adapter.<br />
• Depending on what your initial program actually does, it may require some modification<br />
of that program.<br />
• A requirement: The synonym/metadata your report is based on must have the One-Part<br />
name setting checked. See attached screenshot.<br />
Here is what you do:<br />
PGM PARM(&USER)<br />
DCL VAR(&USER) TYPE(*CHAR) LEN(10)<br />
DCL VAR(&INLPGM) TYPE(*CHAR) LEN(10)<br />
DCL VAR(&INLPGMLIB) TYPE(*CHAR) LEN(10)<br />
RTVUSRPRF USRPRF(&USER) INLPGM(&INLPGM) INLPGMLIB(&INLPGMLIB)<br />
IF COND(&INLPGM *NE *NONE) THEN(DO)<br />
CALL &INLPGMLIB/&INLPGM<br />
ENDDO<br />
ENDPGM<br />
1. Copy/paste the following source code into a new source file member. It is named<br />
CLI_EXIT.<br />
PGM PARM(&USER)<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-108 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DCL VAR(&USER) TYPE(*CHAR) LEN(10)<br />
DCL VAR(&INLPGM) TYPE(*CHAR) LEN(10)<br />
DCL VAR(&INLPGMLIB) TYPE(*CHAR) LEN(10)<br />
RTVUSRPRF USRPRF(&USER) INLPGM(&INLPGM) +<br />
INLPGMLIB(&INLPGMLIB)<br />
IF COND(&INLPGM *NE *NONE) THEN(DO)<br />
CALL &INLPGMLIB/&INLPGM<br />
ENDDO<br />
ENDPGM<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
2. Compile this new program into QGPL. So you should have program object named<br />
QGPL/CLI_EXIT<br />
3. Issue the following CL command to add a new exit point. The new program will be<br />
called every time a CLI connect event occurs (this is the database access mechanism<br />
used by the DB2 CLI adapter). So every time you run a report, the exit program is called<br />
in the QSQSRVR job that is running the SQL request. Before the database request<br />
happens, the exit program calls the user's initial program to set up the lib list.<br />
ADDEXITPGM EXITPNT(Q<strong>IBM</strong>_QSQ_CLI_CONNECT) FORMAT(CLIC0100)<br />
PGMNBR(1) PGM(QGPL/CLI_EXIT)<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-109
Student Note<strong>book</strong><br />
Details of exit point creation<br />
1. Copy/paste the following source code into a new source file member. It is named<br />
CLI_EXIT.<br />
PGM PARM(&USER)<br />
DCL VAR(&USER) TYPE(*CHAR) LEN(10)<br />
DCL VAR(&INLPGM) TYPE(*CHAR) LEN(10)<br />
DCL VAR(&INLPGMLIB) TYPE(*CHAR) LEN(10)<br />
RTVUSRPRF USRPRF(&USER) INLPGM(&INLPGM) INLPGMLIB(&INLPGMLIB)<br />
IF COND(&INLPGM *NE *NONE) THEN(DO)<br />
CALL &INLPGMLIB/&INLPGM<br />
ENDDO<br />
ENDPGM<br />
2. Compile this new program into QGPL. So you should have program object named<br />
QGPL/CLI_EXIT<br />
3. Issue the following CL command to add a new exit point. The new program will be<br />
called every time a CLI connect event occurs (this is the database access mechanism<br />
used by the DB2 CLI adapter). So every time you run a report, the exit program is<br />
called in the QSQSRVR job that is running the SQL request. Before the database<br />
request happens, the exit program calls the user's initial program to set up the lib list.<br />
ADDEXITPGM EXITPNT(Q<strong>IBM</strong>_QSQ_CLI_CONNECT) FORMAT(CLIC0100) PGMNBR(1)<br />
PGM(QGPL/CLI_EXIT)<br />
Figure 1-102. Details of exit point creation AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
An optional chart on the previous explanation if you want to use it.<br />
1-110 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Connections<br />
• It is possible to query data<br />
available on connected<br />
DRDA remote databases<br />
– any i5/OS or OS/400<br />
supported release can be<br />
connected using DRDA<br />
• To be able to query data on<br />
remote datasources<br />
– add an entry into your<br />
RDBDIRE using command<br />
ADDRDBDIRE<br />
– add a connection into DB2<br />
Web Query<br />
– add metadata definitions for<br />
remote data objects you wish<br />
to query<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-103. Connections AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
The Base License of DB2 Web Query includes the ability to query data on other i5/OS<br />
partitions or Systems.<br />
Information Builders sells adapters that all you to query over 45 other different databases<br />
from your DB2 WebQuery on i5/OS<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-111
Student Note<strong>book</strong><br />
Connections: ADDRDBDIRE<br />
• To be able to query data on remote datasources you have to add<br />
an entry into your Relational DataBase Directory and be all<br />
configured connections<br />
• In 5250 use<br />
– ADDRDBDIRE to add a connection<br />
– WRKRDBDIRE to check all configured connections<br />
Figure 1-104. Connections: ADDRDBDIRE AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
It’s not difficult to set up a connection to another i5/OS relational database. Use the<br />
ADDRDBDIRE CL Command to add a database connection. Needed parameters are the<br />
relational database name (usually the name of the system), the TCP/IP Address, and the<br />
type of connection (TCP).<br />
1-112 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Adding connections to DRDA accessible<br />
databases<br />
• Right click on your folder and select METADATA<br />
• Right click on DB2 CLI and select ADD<br />
CONNECTION<br />
• In the Add Connection panel type the name you<br />
want to publish for the connection and the name of<br />
the remote datasource as previously specified in<br />
the ADDRDBDIRE command<br />
• Select CONFIGURE to create the connection<br />
• Configured connections are listed in file<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-105. Adding connections to DRDA accessible databases AT911.0<br />
Notes:<br />
/qibm/UserData/webquery/ibi/srv76/wfs/etc/edasprof.prf<br />
Open your Web browser to the DB2 Web Query console on port 11331, for example:<br />
http://yoursystemname:11331/webquery<br />
Enter your System i user ID and password.<br />
Navigate down to any folder under Reports, right-click, and select the Metadata option.<br />
Select Data Adapter from the menu bar.<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
In the Data Adapters window, click DB2 cli and select Add connection.<br />
In the Add Connection for DB2 cli pane, specify the following options:<br />
• Connection Name: This is the logical name that is used to identify this particular set of<br />
connection attributes. It is usually the remote system or partition name, but it does not<br />
have to match any value that is specified during the Add RDB Directory Entry step–<br />
• Datasource: This is the DB2 database name that is used for this connection. The name<br />
must match the Relational Database value that is specified during the Add RDB<br />
Directory Entry step.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-113
Student Note<strong>book</strong><br />
• Security:<br />
There are three methods by which a user can be authenticated when connecting to a DB2<br />
database server:<br />
1. Explicit: The user ID and password are explicitly specified for each<br />
connection and passed to DB2, at connection time, for<br />
authentication.<br />
2. Password Passthru: The user ID and password received from the<br />
client application are passed to DB2, at connection time, for<br />
authentication.<br />
3. Trusted: The adapter connects to DB2 as a Windows login using<br />
the credentials of the Windows user, who impersonated by the<br />
server data access agent.<br />
• User For Explicit security only: This field is for the i5/OS user profile<br />
• Password For Explicit security: This field is for the password that is associated with<br />
the specified i5/OS user profile.<br />
Click the Configure button.<br />
1-114 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Cross <strong>IBM</strong> i join<br />
• DB2 Web query allows to create reports against data on<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-106. Cross <strong>IBM</strong> i join AT911.0<br />
Notes:<br />
– Local system<br />
– Remote (or LPAR) DRDA accessible databases<br />
– A combination of both of the above<br />
• It is possible to create reports using a federated or cross<br />
system join<br />
– The underlying database tables reside on multiple systems<br />
– All databases (both local and remote) must be DB2 for i5/OS<br />
• If you want to access data on another DRDA accessible platform (such<br />
as DB2 LUW) you will need to acquire the specific add-on data adapter<br />
for that database<br />
• CAUTION: possible performance impacts<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-115
Student Note<strong>book</strong><br />
Exporting a domain to another system (1 of 2)<br />
• To export a domain with its objects 3 steps are needed<br />
Figure 1-107. Exporting a domain to another system (1 of 2) AT911.0<br />
Notes:<br />
– Create DOMAIN with SAME name and Href as the original one on<br />
target installation<br />
– Copy report procedures contained in the original domain<br />
• /qibm/UserData/webquery/ibi/webfocus76/basedir/group003<br />
• (Contains objects stored in domain Group003)<br />
– Copy metadata referenced by reports<br />
• /qibm/UserData/webquery/ibi/apps/baseapp<br />
• (Contains metadata for ALL reports)<br />
Here’s the steps to export a domain to another system.<br />
1. Create a DOMAIN with the same name & href as the original one on the target system<br />
2. Copy report procedures contained in the original document<br />
3. Copy Metadata referenced by the reports<br />
• This is the same procedure you used when you imported the Jackie Jansen demo onto<br />
the system Here’s the steps to refresh your memory<br />
On the import side.<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
From DB2 Web Query create a domain called DB2WBQRY<br />
Verify that the href is DB2WBQRY and then, via the properties tab, rename the domain to<br />
DB2 Web Query Demo. Actually, if you don’t want it to say “demo” the display name can be<br />
anything you want.<br />
To verify the href, right mouse click on the new domain, look at the properties tab. You<br />
should see “Href: db2wbqry/db2wbqry.htm”. If you have used the domain name db2wbqry<br />
1-116 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Uempty previously and are assigned a new href, you will need to go through the demo step by step,<br />
find all the report linkages and update them to your new domain name (href).<br />
Next you need to copy some files from your PC to the IFS. You have two easy choices. You<br />
can use iSeries Navigator or you can use network drives. Since many users aren’t<br />
completely comfortable using these tools I have included fairly detailed instructions on both<br />
approaches available for moving the files between the PC and the System i IFS.<br />
iSeries Navigator<br />
Open iSeries Navigator and navigate down the following chain and select basedir.<br />
File Systems \ Integrated File System \ Root \ Q<strong>IBM</strong> \ UserData \ webquery \ ibi \<br />
webfocus76 \ basedir<br />
After you select basedir you should see multiple folders in the right hand panel including<br />
your new db2wbqry.<br />
Open up Windows Explorer and navigate to and select DB2 Web Query Reports. The right<br />
hand panel will show a folder called db2wbqry. Drag db2wbqry and drop it on the right hand<br />
panel open in iSeries navigator. Basically you are taking the PC folder and replacing the<br />
System i folder of the same name.<br />
From iSeries Navigator drill down to the files in File Systems \ Integrated File System \ Root<br />
\ Q<strong>IBM</strong> \ UserData \ webquery \ ibi \ apps \ baseapp. Drag and drop the <strong>content</strong>s of the<br />
Metadata folder on your PC into the baseapp directory.<br />
This will overwrite the CEN_xxxxxx master files you created when you executed the<br />
tutorials. It will create the master files with the required OLAP dimensions and foreign key<br />
support.<br />
Skip using windows explorer.<br />
Map network drive (alternative approach to iSeries Navigator)<br />
Create a network drive \\systemname\Q<strong>IBM</strong>\userdata\webquery\ibi\.<br />
Display the folders in webfocus76\basedir. One of them will be your new DB2WBQRY.<br />
Move the DB2WBQRY directory from your PC onto the network drive (in the basedir<br />
folder). You should get a message asking if you want to replace the existing DB2WBQRY<br />
directory. Say yes to all. If you don’t get that message you have done something wrong. Go<br />
back to step 2 and try again.<br />
Go back to the root directory on your network drive. Drill down to the files in apps\baseapp.<br />
Copy the <strong>content</strong>s of Metadata into the baseapp directory.<br />
This will overwrite the CEN_xxxxxx master files you created when you executed the<br />
tutorials. It will create the master files with the required OLAP dimensions and foreign key<br />
support.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-117
Student Note<strong>book</strong><br />
Exporting a domain to another system (2 of 2)<br />
Figure 1-108. Exporting a domain to another system (2 of 2) AT911.0<br />
Notes:<br />
To determine what synonyms a report/graph is using:<br />
These are the steps you would use to prepare the DB2 Web Query Domains you want to<br />
distribute.<br />
Click Properties on the DOMAIN<br />
Click Details<br />
Notice the Master Files the Domain is using.<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-118 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Exporting: Create domain<br />
• From DB2 Web Query create a<br />
domain with the same name as the<br />
one where the objects were originally<br />
created (for example Group003)<br />
– Right click on DOMAIN and select New<br />
domain<br />
Note: if the domain name is not exactly<br />
eight characters long, Href will likely<br />
not match!!!<br />
• Verify that the Href is the same name<br />
(for example, Group003)<br />
– To verify the Href, right mouse click on the<br />
new domain, look at the properties tab<br />
– In this example you should see “Href:<br />
Group003/Group003.htm”<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-109. Exporting: Create domain AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-119
Student Note<strong>book</strong><br />
Exporting: Using i5/OS commands<br />
• On source system<br />
– Create SAVFs to hold the DOMAIN with its objects and METADATA<br />
• CRTSAVF FILE(QGPL/GROUP003)<br />
• CRTSAVF FILE(QGPL/METADATA)<br />
– Save domain and metadata<br />
• SAV DEV('/qsys.lib/qgpl.lib/group003.file')<br />
OBJ(('/qibm/UserData/webquery/ibi/webfocus76/basedir/group003' *INCLUDE))<br />
DTACPR(*YES)<br />
• SAV DEV('/qsys.lib/qgpl.lib/metadata.file')<br />
OBJ(('/qibm/UserData/webquery/ibi/apps/baseapp/cen_o*' *INCLUDE))<br />
• On target system<br />
– Create SAVFs to hold the DOMAIN with its objects and METADATA<br />
• CRTSAVF FILE(QGPL/GROUP003)<br />
• CRTSAVF FILE(QGPL/METADATA)<br />
– FTP savf from source to target system in BINARY<br />
– Restore domain with its objects and metadata<br />
• RST DEV('/qsys.lib/qgpl.lib/group003.file')<br />
OBJ(('/qibm/UserData/webquery/ibi/webfocus76/basedir/group003'))<br />
• RST DEV('/qsys.lib/qgpl.lib/metadata.file')<br />
OBJ(('/qibm/UserData/webquery/ibi/apps/baseapp/cen_o*'))<br />
Note: user profile to perform commands MUST be in MRADMIN group<br />
In this example domain name is Group003 and metadata name is cen_orders<br />
Figure 1-110. Exporting: Using i5/OS commands AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Here’s the i5/OS commands to perform distribution via Save/Restore and FTP.<br />
1-120 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Exporting: Copying objects using your pc<br />
• Use your PC as a bridge between the two systems<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-111. Exporting: Copying objects using your pc AT911.0<br />
Notes:<br />
– Map a network drive using default share Q<strong>IBM</strong> on your source system<br />
NET USE J: \\your_source_system\Q<strong>IBM</strong><br />
– Copy the directory containing reports to your PC<br />
/qibm/UserData/webquery/ibi/webfocus76/basedir/group003 contains<br />
objects stored in domain Group003<br />
– Map a network drive using default share Q<strong>IBM</strong> on your target system<br />
NET USE J: \\your_target_system\Q<strong>IBM</strong><br />
– Copy the directory containing reports from your PC to the target<br />
system /qibm/UserData/webquery/ibi/webfocus76/basedir/group003<br />
contains objects stored in folder Group003<br />
• Repeat the process for METADATA used by reports<br />
– /qibm/UserData/webquery/ibi/apps/baseapp contains objects ALL<br />
metadata<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Here’s the method used when we exported the Jackie Jansen Demo. As you can see DB2<br />
Web Query bridges both the i5/OS environment as well as the mapped network<br />
environment.<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-121
Student Note<strong>book</strong><br />
Using RUNWEBQRY to execute reports<br />
• RUNWEBQRY i5/OS Command<br />
Figure 1-112. Using RUNWEBQRY to execute reports AT911.0<br />
Notes:<br />
– Provides spooled and Database file support for reports<br />
– Must be registered as a named user in DB2 WebQuery or have<br />
enough authority to submit a job on behalf of another user profile who<br />
is a valid named user.<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-122 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Example of executing RUNWEBQRY on Gross Profit<br />
Ranking Report<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-113. Example of executing RUNWEBQRY on Gross Profit Ranking Report AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
Let’s see what we need to do to execute the Gross Profit Ranking Report. Highlight the<br />
Report and click properties<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-123
Student Note<strong>book</strong><br />
Gather needed information from report properties<br />
Figure 1-114. Gather needed information from report properties AT911.0<br />
Notes:<br />
When we Right-Click the report and select properties we have the information we need for<br />
the RUNWEBQRY Command.<br />
The Domain HREF<br />
The Folder HREF<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
And the FEX name (the file that contains the report definition)<br />
1-124 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
DB2 Web Query services<br />
DB2 Web Query Getting Started Services<br />
• Advanced DB2 Web Query Skills Transfer<br />
– Best Practices<br />
– Additional Features Skill Transfer<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
• DB2 Web Query SDK Enablement<br />
– Use Lab Services to help implement the DB2 Web Query SDK. We can provide skills transfer and<br />
custom built assets to move your SDK project forward quickly.<br />
• DB2 Web Query Implementation Services<br />
– Use Lab Services expertise to quickly create production ready reports for your environment.<br />
• SQL Performance Workshop<br />
– Learn how to administer and tune your SQL workload from DB2 Web Query.<br />
Contact teven@us.ibm.com or visit<br />
www.ibm.com/systems/services/labservices<br />
Figure 1-115. DB2 Web Query services AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-125
Student Note<strong>book</strong><br />
Education links<br />
• Getting Started with DB2 Web Query Red<strong>book</strong><br />
– Tutorial Driven<br />
– Download Sample Database<br />
– http://www.red<strong>book</strong>s.ibm.com/abstracts/sg247214.html?Open<br />
• Distance (Web) Learning<br />
– Getting Started (OV440)<br />
• http://www-<br />
304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_search&sortBy=5&<br />
searchType=1&sortDirection=9&includeNotScheduled=15&rowStart=0&rowsToReturn=20&max<br />
SearchResults=200&language=en&country=us&searchString=ov440<br />
– Implementation Workshop (OV550)<br />
• http://www-<br />
304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_search&sortBy=5&<br />
searchType=1&sortDirection=9&includeNotScheduled=15&rowStart=0&rowsToReturn=20&max<br />
SearchResults=200&language=en&country=us&searchString=ov550<br />
• E-Learning Modules<br />
– Self paced, downloadable end user training<br />
– http://education.informationbuilders.com/edu/courses/elearning/systemi.jsp<br />
• DB2 SQL and Query Performance Workshop<br />
– Building the DB2 for i Database Administration (DBA) skills<br />
• http://www-03.ibm.com/systems/i/software/db2/db2performance.html<br />
Figure 1-116. Education links AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-126 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Building a DB2 Web Query community<br />
• New DB2 Web Query Site<br />
– Registration Recommended<br />
• KnowledgeBase<br />
• Forums<br />
• Links to Additional Information<br />
• Expert BLOGs<br />
• WIKI<br />
• Links to other pertinent Information<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-117. Building a DB2 Web Query community AT911.0<br />
Notes:<br />
http://www-128.ibm.com/developerworks/spaces/DB2WebQuery<br />
• Supplements www.ibm.com/systems/i/db2/webquery<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-127
Student Note<strong>book</strong><br />
Questions and answers<br />
Figure 1-118. Questions and answers AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-128 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.
V5.4<br />
Uempty<br />
Course summary<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Having completed this course, you should be able to:<br />
• Use, implement and support the new Web-based query and<br />
report writing product <strong>IBM</strong> DB2 Web Query for <strong>IBM</strong> i through<br />
lecture with examples<br />
Figure 1-119. Course summary AT911.0<br />
Notes:<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-129
Student Note<strong>book</strong><br />
Cross-industry solutions<br />
What Technical Training offers<br />
Figure 1-120. What Technical Training offers AT911.0<br />
Notes:<br />
Technical<br />
Training<br />
Technical<br />
Conferences<br />
Onsite/Custom<br />
Training<br />
� Systems, servers, storage<br />
� Solutions<br />
� Many curriculum areas<br />
� 25+ conferences worldwide<br />
annually<br />
� Latest products, solutions and<br />
emerging technologies<br />
� Private/onsite classes<br />
� On demand curriculum<br />
Delivery Methods<br />
� <strong>Class</strong>room with hands � Instructor-led online<br />
on lab training classes<br />
� Instructor mentoring � Self-paced virtual<br />
… helping clients successfully implement missioncritical<br />
technology solutions<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-130 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
� Career training paths<br />
� Certification<br />
� Certification<br />
opportunities<br />
� Network with peers and<br />
subject matter experts<br />
� Custom training<br />
solutions<br />
� Blended learning
V5.4<br />
Uempty<br />
Additional Technical Training<br />
• What’s next? Check out the following technical training<br />
courses:<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Student Note<strong>book</strong><br />
Figure 1-121. Additional Technical Training AT911.0<br />
Notes:<br />
–Basic<br />
• OD040<br />
–Advanced<br />
• OD050<br />
– Tech Training Conference – by geo<br />
• Interested in other free Test Drive topics? see<br />
– www.ibm.com/training/stg/testdrive<br />
• For complete technical training catalog, see<br />
– www.ibm.com/training<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
© Copyright <strong>IBM</strong> Corp. 2010 Unit 1. DB2 Web Query for <strong>IBM</strong> i Test Drive 1-131
Student Note<strong>book</strong><br />
Lab Services offerings<br />
Power Services<br />
Advanced Copy Services<br />
for PowerHA on <strong>IBM</strong> i<br />
Systems Director Services<br />
System Software<br />
Figure 1-122. Lab Services offerings AT911.0<br />
Notes:<br />
– Express<br />
– Standard<br />
– Enterprise<br />
SWAT/SWOT IT<br />
Optimization Analysis<br />
Workshop<br />
PowerCare Services<br />
Performance tuning<br />
(system, application, and<br />
database)<br />
Coming soon!<br />
System x Services<br />
<strong>IBM</strong> Systems Director<br />
– Training, Design, and Planning<br />
Workshop with Implementation<br />
Services<br />
– Planning and Design Workshop<br />
Linux OS Deployment using<br />
xCAT<br />
– BladeCenter<br />
– Linux OS Deployment oniDataplex<br />
<strong>IBM</strong> eX5 Technology &<br />
Virtualization Services<br />
– eX5 Proof of Concept<br />
– eX5 Virtualization Enablement<br />
Workshop<br />
Cloud Services<br />
– Design Workshop<br />
– CloudBurst Upgrade<br />
– Custom Cloud Enablement<br />
Mainframe Services<br />
(System z)<br />
DFSMShsm Health Check<br />
System z Platform<br />
Performance Diagnosis and<br />
Remediation<br />
z/OS Environmental Health<br />
Inspection<br />
TKLM Tape and Disk<br />
Encryption Services<br />
z/OS Security Health Check<br />
Data Center Services IT Optimization<br />
Consulting<br />
Power and Cooling Trends and IT Systems Rationalization Study<br />
Data Center Best Practices Advanced Virtualization Rapid<br />
<strong>IBM</strong> Measurement and<br />
Assessment<br />
Management Technologies (MMT)<br />
-- Data Center Thermal Analysis<br />
Active Energy Manager<br />
Implementation Jumpstart<br />
Data Center Power & Cooling<br />
Planning for iDataplex<br />
Data Center Thermal Analysis and<br />
Cloud Infrastructure Workshop<br />
<strong>IBM</strong> IT Systems Energy Efficiency<br />
Assessment<br />
Cost Allocation Optimization<br />
Workshop<br />
Optimization<br />
© Copyright <strong>IBM</strong> Corporation 2010<br />
1-132 DB2 Web Query for <strong>IBM</strong> i © Copyright <strong>IBM</strong> Corp. 2010<br />
Course materials may not be reproduced in whole or in part<br />
without the prior written permission of <strong>IBM</strong>.<br />
Storage Services<br />
Storage Sen$e: Storage<br />
Optimization Consulting<br />
– XIV Migration Services<br />
TS7650 ProtecTIER<br />
Deduplication Services<br />
<strong>IBM</strong> Certified Secure Data<br />
Overwrite Service<br />
Technical Project<br />
Management<br />
Training & Technical<br />
Events<br />
Training is available World-wide for<br />
the following Systems categories:<br />
• Power Systems<br />
• System x<br />
• System z<br />
• System Storage<br />
Delivery of courses:<br />
– Rapid Optimization Analysis<br />
– Storage Optimization Workshop<br />
– Storage Optimization Study<br />
XIV Implementation,<br />
Replication and Migration<br />
– XIV Implementation and<br />
Replication Services<br />
– Instructor-Led-Online (ILO)<br />
– eLearning<br />
– <strong>Class</strong>room<br />
– On-site - Custom delivery
V5.4<br />
backpg<br />
Back page