Creating a basic report involves
You can then lay out the report and manipulate the data that will appear in
the report. For information about other tasks that are specific
to a report type, see Lists, Crosstabs, Charts,
and Maps.
Specify the package that will provide items for the report.
The packages that you use to generate reports are based on models that are created in the modeling tool, Framework Manager. A model is a set of related objects, such as query subjects, dimensions, filters, and calculations. When you open a package in IBM Cognos 8, these model objects are visible in the left frame.
The package must be previously created and published to the IBM Cognos Connection portal. For more information, see the Framework Manager User Guide.
Open Report Studio with the package you want to use.
In the Welcome dialog box, choose whether to open a new or existing report or template:
To create a new report or template, click Create a new report or template and choose a basic report layout.
Tip: You can specify a language other than the default language for your package by clicking on the ellipsis (...) button to the right of the Package field, clicking the Language ellipsis button in the Report Package dialog box, highlighting the desired language, and then clicking OK. As stated on the language selection dialog box, items such as separators and decimals may need to be manually updated for language-specific syntax rules as a result of your selection.
To open an existing report or template, click Open an existing report or template and select a report.
Objects from the selected package, such as query items, appear on the Source tab of the Insertable Objects pane.
Tip: You can later change packages .
If the package that a report is using has changed, refresh it to ensure that you are working with the latest version.
In the Insertable Objects pane, click
the Source tab .
Right-click in the Source tab and click Refresh.
Tip: You can also close and reopen the report to upgrade it to the latest version of the package.
Report Studio includes several basic report layouts that include report objects, such as lists, crosstabs, maps, repeaters, and headers and footers. You can also choose to start with a blank report or open an existing report.
Tip: The Budget vs. Actual sample report in
the GO Data Warehouse (analysis) package is based on a basic report
layout. For more information about The Great Outdoors Company samples,
see Sample Reports and Packages.
From the File menu, click New .
If you want to change the package, click the ellipsis (...) button and click a different package.
Choose a basic report layout:
To create a report from a blank layout, double-click Blank.
To create a report using one of Report Studio's predefined report layouts, double-click the layout.
To create a new report template that can be applied to reports created in Query Studio or Analysis Studio, double-click Report Template.
To create a financial report using the basic financial report layout, double-click Financial Report. For more information about creating report templates, see Creating Report Templates
To create a new report using another report, double-click Existing, locate the report, and click Open.
Tip: In the Type box, click Templates to see only existing templates.
The basic report layout appears in the report page.
Select the data items you want to appear in your report.
For more information about adding data to a relational style report, see Add Relational Data to a Report. For more information about adding data to a dimensional style report, see Add Dimensional Data to a Report.
Each object in the data source has a representative icon. You can insert all of the following objects in a report, except for packages and dimensions.
In the Insertable Objects pane, on
the Source tab ,
drag data items to the report object.
A flashing black bar indicates where you can drop a data item.
Data items in the report appear on the Data Items tab .
You can insert a single data item anywhere in your report using the singleton object. The singleton object retrieves only the first row value for that query. Inserting a single data item is useful when you want to show a value that is independent from the rest of the values in the report or when you want to insert some boilerplate text, such as a company name and address. For example, you can add the total revenue value in the header of each page in a report.
You can associate multiple singleton objects with a single query
in relational reporting and dimensional reporting
to
optimize performance, such as when all the data items in the singleton
are from the same database table. In addition, two or more singletons
can reference data items from the same query. This is useful when
using a single query is more efficient to display a set of single
values than using multiple queries.
You can also filter the data item in the singleton. For example, you can show the total revenue for only the year 2007.
Queries that are associated to a singleton object are not supported when producing report output in delimited text (CSV) format.
Tip: The Returns by Damage, Failed Orders and Complaints
in 2006 sample report in the GO Data Warehouse (analysis) package
includes a singleton. For more information about The Great Outdoors
Company samples, see Sample Reports and Packages.
In the Insertable Objects pane, on
the Toolbox tab , drag Singleton to
the report.
An empty data container is created.
From the Insertable Objects pane,
on the Source tab , drag a data
item into the Singleton container.
To change the query associated to the singleton object, in the Properties pane, double-click the Query property and make changes.
When the report is run, the first row value for the data item is retrieved.
Validate your report to ensure that it contains no errors.
When you open a report created in a previous version of IBM Cognos 8, it is automatically upgraded and validated. For more information, see Upgrading Reports.
From the Tools menu, click Validate
Report .
A message box appears indicating whether any errors were found in the report.
If you require more detail from the validation process, from the Tools menu, click Validate Options and do the following:
Click one of the following validation levels.
Validation level | Description |
Error | Retrieves all errors returned from the query. |
Warning | Retrieves all errors and warnings returned from the query. |
Key Transformation | In addition to errors and warnings, retrieves informational messages describing important transformation steps from the report specification to the native query sent to the data source. These messages can show the cause of errors and warnings returned from the query. This feature is only partially implemented at present. |
Information | Retrieves errors, warnings, key transformations, and other information related to query planning and execution. |
Select the Interactive data check box to specify that no query optimization is to be used.
The Interactive data check box controls how queries will be processed during validation.
Clear the Interactive data check box to set the Execution Optimization property to All Rows.
Tip: For more information about the Execution Optimization property, see Execution Optimization in Report Studio Object and Property Reference.
A message box appears indicating whether any errors were found in the report.
Revalidate your report.
If you encounter validation errors and want Report Studio to identify incorrect objects in your report, from the Tools menu, click Auto Correct.
Report Studio provides a list of such objects that you can remove individually to successfully run your report.
In some cases, the information or error message is linked to the location of the issue in your report. To go to the location of the issue, click the message, and then click Select. If only warnings and information appear in the dialog box, these will disappear when you click OK.
Save your report to preserve the modifications you made.
Reports are saved to the IBM Cognos 8 server.
You can also save your report on your computer .
From the File menu, click Save or
click Save As to save a copy of the report
under a different name.
If you are saving the report for the first time, specify where to save the report and type a file name.
For information about setting up folders in IBM Cognos Connection for your reports, see the IBM Cognos Connection User Guide.
Click Save.
Run your report to see the data that is retrieved. Save
time by validating it first to check for errors.
You can also run a report or a group of reports in IBM Cognos Connection. Furthermore, you can save report outputs to a file system. For more information, see the Administration and Security Guide.
You can specify not to render a report page if it does not contain
any data .
If you run a report that uses functions or features not supported by the data source, an error message appears. We recommend that you periodically test your reports while you author them in Report Studio to ensure that you do not encounter multiple error messages when you run the report.
Open a report.
If you want to clear parameter values stored on the IBM Cognos 8 server, from the File menu, click Clear Parameter Values.
Parameter values stored by the IBM Cognos 8 server include signon, validation, and prompt information. For example, if you define two data source connections in IBM Cognos Connection that point to the same data source, you are prompted to choose one when you run a report. This information is stored so that you are not prompted each time you run the report.
If you want to view only the tabular data, from the Run menu,
click View Tabular Data .
If the report contains multiple queries, you must first click an object, such as a list or crosstab, that uses the query for which you want to view the tabular data.
Use this command to ensure that the right results appear. For
example, you create a calculation and you want to ensure it is giving you the
results you want.
Tip: You can also view tabular data in Query Explorer, which is useful when you are building queries.
If you want to set run options, from the Run menu, click Run Options.
The default value is the value of the selected corresponding run option in IBM Cognos Connection.
The run options that you set apply only to the current session. When you close Report Studio, the options return to the default settings.
Change any values for the current session.
Option | Notes |
Format | Specify to change the default format from HTML. |
Paper size | Specify only if the output format is PDF. |
Paper orientation | Specify only if the output format is PDF. |
Data mode | Specify how much data is returned:
For more information about design mode filters, see the Framework Manager User Guide. |
Language | The content language sets the preferred language for the data, Cognos Viewer, dates, and so on. |
Rows per page | Specifies the number of rows to appear on each page. A Rows Per Page property exists in the Properties pane for lists and crosstabs. If you set this property, the setting overrides the same-named run option. This property applies to both HTML and PDF outputs. For more information about this property, see Controlling the Rows Per Page for Multiple Containers in HTML and PDF. |
Prompt | Select to be prompted If you clear the Prompt check box, you are prompted only if the report cannot run without user intervention. For example, if a report has a single parameterized filter that is optional, you are not prompted when you run the report. |
From the Run menu, click one of the options to produce the report in the format you want.
You can produce a report in HTML, PDF, CSV, various Excel formats, and XML. You cannot produce a report in CSV format if you have more than one query defined in the report unless the additional queries are used for prompts.
The report runs in Cognos Viewer. Once the report has finished running, you can run the report again in the same format or in a different format. If you run the report again in CSV or XLS format, the report will appear in a new browser window.
The options available in Cognos Viewer depend on the capabilities set by the administrator for each user. For more information, see the Administration and Security Guide.
You can cancel a report that is running against Microsoft SQL Server Analysis Services only during the initial portion of its execution. After this time, the report runs to completion.
The same behavior applies to SAP BW data sources.
In Framework Manager, you can also control the number of levels within a hierarchy from which members, or values, are extracted from the hierarchy to populate a tree prompt.
For SAP BW, you can reduce the number of hierarchy levels to limit the number of nodes by setting the SAP BW variable property trimHierarchyLevels to 1. This removes the lowest level from the hierarchy prior to creating the list of nodes.
When running a report against an SAP BW data source, units of measure are included in the same column as the data values, separated by one space. For example, Celsius and Fahrenheit notations are appended to the end of the value.
If you see an asterisk character (*), one of the following was detected:
an unknown currency
a value with an unknown or questionable unit of measure, such as a mixed currency calculation or rollup
Mixed currency values occur when you calculate values with different currencies.
This behavior occurs when you are using an IBM Cognos cube as a data source.
This behavior also occurs for SAP BW data sources.
The following SAP variable properties are not supported:
Exclusionary ranges appear as an inclusionary prompt.
Mandatory not initial appears as a mandatory prompt.
When using Business Explorer (BEx) to define variables in your SAP data source, avoid using exclusionary ranges and the mandatory not initial property.
You can specify not to render a report page if the page does not contain any data when the report is run.
In the report page, click a data container.
In the Properties pane, click the
select ancestor button and click the data container type.
For example, if the data container is a list, click List.
Set the Render Page when Empty property to No.
Repeat steps 1 to 3 for all other data containers in the
page and any table of contents objects .
When you run the report, if no data is produced in all data containers and table of contents objects in a page, the page is not rendered. The page is not rendered even if the page contains other objects, such as text items or images.
If you have more than one data container in a report, such as a list and a crosstab, you can control how the report is rendered in HTML and PDF by setting the Rows Per Page property for each container.
For HTML output, the report property option Page break
by data container for interactive HTML controls whether the default number of rows
is rendered for each data container on each page.
IBM Cognos 8 uses the following rules when rendering reports in HTML and PDF:
If the Rows Per Page property is not set for any of the data containers, 20 rows per page are rendered in HTML and each page is completely filled in PDF. The first data container is rendered until there is no more data, followed by the next container, and so on.
Tip: The number of rows that appear on a PDF page depends on the font size set in the report.
If the Rows Per Page property is set for each data container, the specified numbers of rows are rendered in HTML and PDF on each page until there is no more data.
If the property is set for only some of the containers, the specified numbers of rows are rendered in HTML and PDF on each page until there is no more data. For the remaining containers, 20 rows per page are rendered on each page in HTML and each page is completely filled in PDF.
For example, you have two lists, List1 and List2. You set the Rows Per Page property to 5 for List1. When you run the report in HTML, the first page contains the first 5 rows from List1 followed by the first 15 rows of List2.
If no data is returned for a data container, an empty container is rendered.
IBM Cognos 8 can produce reports in CSV format so you can open them in other applications, such as Microsoft Excel. Reports saved in CSV format
support Unicode data across many client operating systems
are UTF-16 Little Endian data encoded
include a BOM (Byte Order Mark) at the beginning of the file
are tab-delimited
do not enclose strings in quotation marks
use a new line character to delimit rows
You can open reports saved in CSV format using Microsoft Excel, Microsoft Windows Wordpad, and Star Office. By default, reports produced in CSV format will appear in the application associated with the .csv file type.
You cannot produce the following in CSV format:
maps
charts that do not have at least one category or series
reports that have more than one query defined in the report, unless the additional queries are used for prompts
In IBM Cognos Connection, you can configure the CSV output to suit your environment. For example, you can specify the character used to delimit fields. For more information, see the Administration and Security Guide.
IBM Cognos 8 can produce reports in Excel format. Three options are available:
Excel 2000 Single Sheet will produce reports on one sheet that you can view in Microsoft Excel versions earlier than 2002.
Excel 2002 will produce reports that you can view in Microsoft Excel versions earlier than 2007.
Excel 2007 will produce reports that you can view in Microsoft Excel version 2007.
The Excel 2000 format can be viewed with versions of Excel 2000 and later. It supports up to 65,536 rows and multiple sheets. The Excel 2000 format is only available in IBM Cognos 8 when IBM Cognos Application Firewall validation is disabled.
Excel 2000 single sheet format offers improved security. Excel 2000 may have cookies in the URLs to spreadsheets, which could be used to illegally impersonate a user. Excel 2000 single sheet format does not use outgoing URLs. However, there is a limit of 65,536 rows, and page breaks for multiple-author pages are ignored.
Excel 2002 format and Excel 2000 single sheet format also offer the following benefits:
Both work with SSL protocol.
Both work with a single signon.
Secure reports can be accessed without subsequent signons because the system automatically identifies users and provides security information.
Both work with Netscape 7.01.
Spreadsheets are contained in a single file for reliable spreadsheet navigation.
The IBM Cognos 8 full date format does not always appear correctly in Microsoft Excel 2000 if it is on a system with a regional setting other than English. This does not occur with Microsoft Excel 2002 or 2003 versions. To fix this, reapply the proper format in Excel.
Excel 2007 format renders report output in native Excel XML format, also known as XLSX, that provides a fast way to deliver native Excel spreadsheets to Microsoft Excel 2002, Microsoft Excel 2003, and Microsoft Excel 2007. Users of Microsoft Excel 2002 and Microsoft Excel 2003 must install the Microsoft Office Compatibility Pack, which provides file open and save capabilities for the new format. The output is similar to other Excel formats, with the following exceptions:
Charts are rendered as static images.
Row height can change in the rendered report to achieve greater fidelity.
Limitations exist when producing reports in XLS format. For more information, see Limitations When Producing Reports in Microsoft Excel Format.
XML report outputs save the report data in a format that conforms to an internal schema, xmldata.xsd. You can find this schema file in c8_location/bin.
This format consists of a dataset element, which contains a metadata element and a data element. The metadata element contains the data item information in item elements. The data element contains all the row and value elements.
You can create models from reports and other data that conform to the xmldata.xsd schema. This is useful if you want to use a report as a data source for another report, or if you use a database that cannot be read by Framework Manager. In this case, export the data from the data source to an XML file, in conformance with the xmldata schema, and then open the XML file in Framework Manager.
For more information, see the Framework Manager User Guide.
You cannot produce the following in XML format:
maps
charts that do not have at least one category or series
reports that have more than one query defined in the report, unless the additional queries are used for prompts
Set PDF page options to control how report pages appear
in PDF. You can set PDF page options for individual report pages
or for all report pages in a layout .
Tip: The PDF Page Properties sample report in
the GO Sales (analysis) package includes PDF page options. For more
information about The Great Outdoors Company samples, see Sample Reports and Packages.
You can also set PDF page options in IBM Cognos Connection. For more information, see the IBM Cognos Connection User Guide.
To set PDF page options for all report pages in a layout, do the following:
From the File menu, click PDF Page Setup and set the page options.
To set PDF page options for an individual page, do the following:
Pause the pointer over the page explorer
button and click the page.
In the work area, click anywhere on the page.
In the Properties pane, click the select
ancestor button and click Page.
Double-click the PDF Page Setup property, select the Override the page setup for this page check box, and set the page options.