By Elwood Philbrick - Envisn, Inc.
In this article we will cover the basics of scheduling in a Cognos 8 BI environment. The basic challenge is getting the report or cube you want, where and when you want it. In a typical Cognos 8 environment scheduling a report, query of PowerPlay cube usually starts with something that looks like this:
An assumption that is often made in scheduling a recurring report is that the data are refreshed by the time the report is run. But generally the reports you want to schedule will come after your data source(s) has been updated via the ETL (extract, transform & load) process. See the diagram. Once this has been completed successfully you can begin the report creation process. In many environments there will be two parts to this: reports, queries, jobs, etc. and PowerPlay cubes. When this process completes successfully the results are available for the customer.
With the ETL process you have to be sure that it completed successfully. Because many environments may have multiple data sources verifying this is an important step before the Cognos report or cube build process begins, otherwise you can be creating incomplete and/or inaccurate reports and cubes. When this occurs the rollback process can often be painful and time consuming. What is often done here is to create flags or files whose presence can be used as a signal that ETL completed successfully. These are often used as an event or trigger to kick off a report or query build.
Scheduling reports with Cognos scheduler in C8 gives you the option of running a report based upon a fixed date and time; by day, week, month, etc. You also have the option of scheduling it based upon an event or trigger. For many users this may be more than adequate for their needs. Some environments may require more options to meet broader needs. This may include:
Scheduling Cognos PowerPlay cubes is a whole different matter. Here there really isn’t anything that comes with Cognos 8 that you can use right out of the box. What most people have done is to build their own routines for scheduling Cognos PowerPlay. This usually done with batch files or scripts that spell out all of the details of what needs to be executed to build the cube. These can become very detailed and involved (read long) since they may spell out unique file names, task sequences, etc. Where multiple cubes need to be created these scripts can often be somewhat overwhelming.
Scheduling batch files may be done with the Windows scheduler or something similar. There are many mid to large environments that are running today in this manner and getting along. But some of the issues they often run into include the following:
We do not want to give the impression here that it’s a lost cause. There are alternatives to using the Cognos scheduler and rolling your own cube build process. In the next blog, Cognos Scheduler Options, we will discuss alternatives and what you need to consider as you take a long term look at your needs.