Cognos On Steroids - Update Report Specification For Multiple Reports Without SDK
Cognos On Steroids - Update Report Specification For Multiple Reports Without SDK
Cognos on Steroids
About the Author
20 reports that used this data item, which means the report author has to open each of these reports and repoint the
query item to the correct one.
Background:
If you are not familiar about what a Report Specification is and would like to get a better understanding, read this article
first: Explaining Report Specification
You may also be interested in learning how to quickly update a single report with multiple queries for data item name
changes. Check out this article: Update Report Specification without SDK
Improve
Example:
Let's take the first business case I mentioned above. Suppose that you have 20 reports have the query item, [Billing Teams
Address]. On top of this the term "Billing Address" is used in multiple pages and multiple places in the reports (header,
column title, foot notes etc). The report user comes to you, the author, and requests you to change all references to
meeting
Billing Address to Shipping Address, which already exists in the package. agendas
Solution: Fingertip
We will be using the Report Deployment option in Cognos to do the bulk update. Note that you will need access to makes planning
Content Administration to be able to use this approach. and holding
meetings a
Implementation: breeze.
In this case, editing the report in report studio to find every instance of [Billing Address] and changing it to [Shipping
Address] is a tedious process. It is highly inefficient too. Here is a quick way to change the report. Fingertip
Go thorough the rest of the screens like you normally would and enter a name for the archive in You can help keep this site alive.
the last screen (E.g. report_spec_update).
Save and Run the export job once.
Update the Specification:
Login to the Cognos server (Use remote desktop connection if Windows, SSH if Linux).
Total Pageviews
Navigate to the deployment folder: <cognos_install_dir>/deployment
You will find a zip file with the archive name you specified when creating the export 496,545
(report_spec_update.zip).
Copy the zip file to a different folder.
Blog Archive
Unzip the contents of the zip file. It will produce 3 files: content.xml, exportRecord.xml and
package1.xml. ►
► 2013 (1)
The file we are interested is the package1.xml. Open this file in a text editor. ▼
▼ 2012 (17)
Note: This is the most important step of the entire process. If your cognos server is running ►
► September (1)
on a linux environment, then the editing must be done in the linux server itself, in vi editor. ►
► June (1)
Do not copy the zip file or the xml files to your windows desktop for editing since this
►
► April (1)
screws up the file encoding.
►
► March (3)
Once you have the file open in the text editor, do a find and replace for the data item name that
you are trying to update. For example, replace all occurrences of [Business View].[Customer]. ▼
▼ February (2)
[Billing Address] with [Business View].[Customer].[Shipping Address] Create a Report with Collapsible
Hierarchy
Save the file package1.xml.
Zip the 3 files to a new archive. Update Report Specification for Multi
Reports w...
Copy the zip file back to the Deployment folder in the Cognos server.
Create Import Job: ►
► January (9)
Log in to Cognos Connection and navigate to Content Administration. ►
► 2011 (5)
Create a new Import and from the list of archives, select the new zip file that you just created.
Run the Import.
The reports in your "Deployment" folder will be updated with the changes you made in the XML file.
That's it !!! The same task, if done manually would take hours to complete and you would not be sure if you updated all
the places. The steps above might seem like a long process but when I tested this, the entire process took me about 5
minutes.
Per te
If you are in a daring mood, you can expand the approach to the entire content store instead of exporting only the fino a 1000€
Deployment folder. As long as you keep a copy of the zip file you exported, you are fine.
di cashback
If you have made a mistake during the update, or if you find out that you have changed more reports than necessary, you sui TV
can always import the original export back again and you will be right where you started. LG OLED
Remember.. There is more than one way to skin a cat.. Let's do it the easy way.
8 comments:
I am a beginner in cognos and you explained the things like very well that beginner like me can also understand, Thanks for
you valuable post......
Reply
Hi,
You could also use the Dynamic Report Spec updater (DRU) utility to to the same thing without having to export the content
and edit the XML manually.
Reply
Reply
You can also use MotioPI Pro update many reports at once (in several different ways).
There's a search and replace feature that allows you to update many reports en-masse (and will validate them before / after
the change) :
http://www.motio.com/products/pipro/searchReplace.do
There's also a property replicator feature which will let you replicate selected properties from one Cognos object (e.g.
permissions, package, default action) to many other Cognos objects, for example :
http://info.motio.com/Blog/bid/76653/Update-the-Default-Action-for-Multiple-Cognos-Reports
and
http://info.motio.com/Blog/bid/76653/Update-the-Default-Action-for-Multiple-Cognos-Reports
There's also a "Templatizer" feature in the upcoming release which will let you replicate things like prompt pages, headers & Segui
footers from one report onto many others.
Reply
2GB+ Free Online Storage Access your files
anywhere & from any device (PC, Mac, iPh
or Android)
Sriram July 26, 2012 at 11:20 AM www.dropbox.com
@caffineinduced: Thanks for the comment. I thought I had already mentioned this in the post but now I realize that I didn't. I
will add it to my post.
Reply
Keep posting the good work. Some really helpful information in there. Bookmarked. Nice to see your site. Thanks! medicine
shoppe franchise cost Per te
Reply fino a 1000€
di cashback
sui TV
Anonymous February 1, 2016 at 11:53 PM LG OLED
This is impressive and also great information. I personally liked going through your solid points on this topic. Many thanks for
creating such excellent material. This is excellent. best 500 dollar mountain bike
Reply
Publish Preview
Popular Posts