notes on report bursting in cognos 83

11
Tip or Technique Notes on Report Bursting in IBM Cognos 8.3 Product(s): IBM Cognos 8.3 Business Intelligence Area of Interest: Reporting

Upload: sumahitha

Post on 20-Nov-2014

130 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Notes on Report Bursting in Cognos 83

Tip or Technique

Notes on Report Bursting in IBM Cognos 8.3

Product(s): IBM Cognos 8.3 Business Intelligence

Area of Interest: Reporting

Page 2: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 2

IBM Cognos Proprietary Information

Copyright

Copyright © 2008 Cognos ULC (formerly Cognos Incorporated). Cognos ULC is an IBM Company. While every attempt has been made to ensure that the information in this document is accurate and complete, some typographical errors or technical inaccuracies may exist. Cognos does not accept responsibility for any kind of loss resulting from the use of information contained in this document. This document shows the publication date. The information contained in this document is subject to change without notice. Any improvements or changes to the information contained in this document will be documented in subsequent editions. This document contains proprietary information of Cognos. All rights are reserved. No part of this document may be copied, photocopied, reproduced, stored in a retrieval system, transmitted in any form or by any means, or translated into another language without the prior written consent of Cognos. Cognos and the Cognos logo are trademarks of Cognos ULC (formerly Cognos Incorporated) in the United States and/or other countries. IBM and the IBM logo are trademarks of International Business Machines Corporation in the United States, or other countries, or both. All other names are trademarks or registered trademarks of their respective companies. Information about Cognos products can be found at www.cognos.com

This document is maintained by the Best Practices, Product and Technology team. You can send comments, suggestions, and additions to [email protected] .

Page 3: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 3

IBM Cognos Proprietary Information

Contents

1 INTRODUCTION ............................................................................................ 4

1.1 PURPOSE ............................................................................................................4 1.2 APPLICABILITY .....................................................................................................4

2 BURSTING LIST REPORTS ............................................................................ 4

2.1 OPTION 1 - BURST USING ONE QUERY ........................................................................4 2.2 LIST OPTION 2 - BURST USING TWO QUERIES ...............................................................6 2.3 OPTION 3 MULTI-RECIPIENT EMAIL ADDRESSES .............................................................8

3 BURST A CROSSTAB...................................................................................... 8

3.1 CROSSTAB OPTION 1 - BURST USING TWO QUERIES ........................................................8 3.2 CROSSTAB OPTION 2 - BURST USING THREE QUERIES......................................................9 3.3 OPTION 3 MULTI-RECIPIENT EMAIL ADDRESSES ........................................................... 10

4 BURSTING MULTILINGUAL REPORTS......................................................... 10

5 BURSTING DIFFERENT REPORT FORMATS................................................. 10

6 CONCLUSION .............................................................................................. 10

APPENDIX A: TERMINOLOGY................................................................................. 11

Page 4: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 4

IBM Cognos Proprietary Information

1 Introduction

1.1 Purpose

This document discusses how bursting operates in IBM Cognos 8.3 in several scenarios. This information is designed to compliment the information found in the Report Studio users’ guide.

1.2 Applicability

This document applies to IBM Cognos 8.3 Business Intelligence.

2 Bursting List1 Reports

We will examine three options to burst a simple example with a grouped List report. The List query contains the information we wish to disseminate including a grouped data item which determines which user gets which data.

We will imagine a report with sales information by Region. The report is grouped on and will be burst on Region Code.

2.1 Option 1 - Burst using One Query

In this option, we will define a single query to be used for three purposes:

• As the List Query

• As the Burst Query

• As the Recipient Query

In this example, this query is named List Query.

List Query will have the following information:

Region

Code

Region Revenue Recipient

NA North America $123 [email protected]

NA North America $123 [email protected]

ER Europe $123 [email protected]

ER Europe $123 [email protected]

OT Other $123 [email protected]

OT Other $123 teddy.schmoe.abc.com

1 Or Repeater reports which also use an un-pivoted query.

Page 5: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 5

IBM Cognos Proprietary Information

Note that the inclusion of the Recipients causes the data to be duplicated for each Recipient as indicated by the shading. Even in this simple example, we have double the number of rows in query due to adding the recipients. This has an impact on data retrieval but not on the process of bursting the query layout query results. When generating the report output the burst key information is grouped and the distinct burst keys are used to produce one output file (or set of files if rendering in multiple formats) per burst key.

We configure the burst as so:

At run time, here is how this burst is executed.

1. The Burst Query (List Query) is run

2. For each Burst Group (Region Code) in the Burst Query, the Recipients are available.

3. One Burst Instance (ex. PDF file) is created for each Burst Group (Region Code) in the Burst Query and sent to the associated Recipient Address(s).

The affect of this is that the Burst Query (List Query) is run once and we work our way through the Burst Groups (Region Code) distributing to the Recipients.

This option is ideally used when all or most Burst Groups are being sent to a single Recipient so there is little or no duplication of data in the query.

Page 6: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 6

IBM Cognos Proprietary Information

Note that if the burst keys and recipients are stored in multiple tables then the join between these tables will need to be processed to determine the combined query results for the burst/recipient query.

2.2 List Option 2 - Burst using Two Queries

In this option, we will define two separate queries:

• List and Burst Query

o Used as both the List query and the Burst query

• Recipient Query

o Used as the Recipient Query

List and Burst Query contains the information we wish to disseminate including the Region grouped data item on which we will determine which user gets which data:

Region Code Region Revenue

NA North America $123

ER Europe $123

OT Other $123

Recipient Query contains the Recipient information. In our example, Recipients are all email addresses. This query makes the association between a Recipient(s) and a Burst Group (Region).

Region Code Recipient

NA [email protected]

NA [email protected]

ER [email protected]

ER [email protected]

OT [email protected]

OT teddy.schmoe.abc.com

Page 7: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 7

IBM Cognos Proprietary Information

We configure the burst as so:

In order to link Region in the Burst Query and Region in the Recipient query, the master-detail relationships specify [Region Code] -> [Region Code].

At run time, here is how this burst is executed.

1. The Burst Query (List and Burst Query) is run

2. For Burst Group (Region Code) in the Burst Query, we execute the Burst Recipients query (Recipient Query) passing the Region Code as a filter item (classic master-detail operation).

3. One Burst Instance (ex. PDF file) is created for each Burst Group (Region Code) in the Burst Query and sent to the associated Recipient Address(s).

The affect of this is that the Burst Query is run once and we work our way through the Burst Groups (Region Codes) executing the Recipient Query once for each Burst Group (Region Code).

This option has the advantage that it does not duplicate the data in List Query. It is well suited to scenarios where each Burst Group will be sent to more than one Recipient. As Recipient Query is run many times this approach has the potential disadvantage that this may cause database load issues due to multiple queries but also provides an advantage in that there is no join to be processed between separate burst and recipient tables. However, as most Recipient lists for each Burst Group are quite small, these queries will also generally be small and therefore have a light impact on the database.

Page 8: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 8

IBM Cognos Proprietary Information

2.3 Option 3 Multi-Recipient Email Addresses

A little known option is to specify multiple recipients in a single row of the Recipient Query. This is only supported for Recipient Type of Email.

Multiple email recipients are separated by commas in the Recipient data item. This allows us to use Option 1 Single Query without the disadvantage of duplicating the data or running multiple queries. Our query would appear as so:

Region

Code

Region Revenue Recipient

NA North America $123 [email protected], [email protected]

ER Europe $123 [email protected], [email protected]

OT Other $123 [email protected], teddy.schmoe.abc.com

This option is new in IBM Cognos 8.3.

3 Burst a Crosstab2

IBM Cognos 8 does not support bursting a crosstab query directly. Therefore, separate Burst and Crosstab Queries must be used. We will discuss options using two or three queries.

3.1 Crosstab Option 1 - Burst using Two Queries

Like the List Option 1, this option uses a single query for the Burst and Recipient Query:

As the actual data is in the crosstab query, our Burst and Recipient query need only contain the Burst Key (Region Code) and Recipient:

Region

Code

Region Recipient

NA North America [email protected]

NA North America [email protected]

ER Europe [email protected]

ER Europe [email protected]

OT Other [email protected]

OT Other [email protected]

2 Or chart queries, neither of which can be burst because a pivoted query cannot be sectioned.

Page 9: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 9

IBM Cognos Proprietary Information

The crosstab query will contain the data. The crosstab query will be executed once for each Burst Key. As the data is separated from the recipients, there are no problems with duplicate data being returned in the Burst Query.

The crosstab query is executed once per distinct burst key.

3.2 Crosstab Option 2 - Burst using Three Queries

One can also use three queries. A master-detail relationship will be established from the Burst Query to the crosstab query and to the Recipient Query as so:

The burst query would contain the Burst Group (Region Code) and Label (Region):

Region Code Region

NA North America

ER Europe

OT Other

The Recipient Query would contain the Burst Group and Recipient:

Region Recipient

NA [email protected]

NA [email protected]

ER [email protected]

OT [email protected]

OT [email protected]

The Crosstab Query is the same.

There is no distinct advantage to this approach and there is a drawback in that the Recipient Query will now be submitted many times (once per burst group).

Page 10: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 10

IBM Cognos Proprietary Information

3.3 Option 3 Multi-Recipient Email Addresses

This operates the same in both list and crosstab queries.

Again, for a Recipient Type of Email, multiple recipients can be defined in a single row when the email recipients are separated by a comma. This allows us to use the two-query approach of Option 1 for crosstabs. The burst and recipient query would then look like:

Region Code Region Recipient

NA North America [email protected], [email protected]

ER Europe [email protected], [email protected]

OT Other [email protected], teddy.schmoe.abc.com

This option is new in IBM Cognos 8.3.

4 Bursting Multilingual Reports

Each burst report execution runs within a single language (locale). Therefore, to burst a report in several languages it must be run in each language. This is done by scheduling the report and selecting the required languages. Note that the report is run (and burst) for each language selected.

Within the report itself, it is also necessary to filter the recipients by language. This requires the additional of a language code to the Recipient information and a filter on the Recipient Query. The Locale() function can be used to return the current language for filtering purposes.

5 Bursting Different Report Formats3

Most report formats, PDF, HTML and Excel, are rendered based on the report layout specified by the author. CSV and XML are based on the data. Therefore, when bursting to a combination of layout and data based formats the report will be run twice to create the required layouts.

6 Conclusion

There are several options for bursting; the information is this document is designed to allow you need to choose the option that best meets your needs.

3 A product defect in the IBM Cognos 8.3 initial release returns an ‘unsupported’ error when trying to burst CSV or XML. This is being addressed in a hot site update and in the first service pack. Contact Customer Support for assistance with this issue.

Page 11: Notes on Report Bursting in Cognos 83

Notes on Report Bursting in IBM Cognos 8.3 11

IBM Cognos Proprietary Information

Appendix A: Terminology

Burst Group – the report grouping item to be used to create Burst Instances ex. Region Code

Burst Instance – a report result such as a PDF document with selected data to be distributed to the Burst Recipients

Burst Recipient – the IBM Cognos 8 user or email address to which the Burst Instance are available or sent

Burst Query – the query which drives the burst processing. This query contains the Burst Group data item. For lists, this is often the same query referenced by the list. As crosstab queries cannot be burst directly, the Burst Query is a list query used as a master to the crosstab detail query.

Recipient Query – the query which contains the Burst Recipient information. This is often the same query as the Burst Query.

Recipient Data Item – the data item in the Recipient Query containing the Email address or CAMID of the Recipient.

Burst Master-Detail – used to link the Burst Query and the Recipient Query

Burst Label – the data item used to provide a name for the Burst Instances ex. a report burst by Region Code might have a Burst Label of Region