COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Administration and Security => Topic started by: Andrei I on 19 Nov 2019 05:46:13 PM

Title: Cognos content maintenance using XSLT script - find dependent objects
Post by: Andrei I on 19 Nov 2019 05:46:13 PM
I would like to show how XSLT scripts can help with Cognos content maintenance.
Like many modern software tools Cognos stores its internal structures in XML format:
With little creativity you can use XSL (eXtensible Stylesheet Language) Transformation or XSLT to extract useful information from Cognos XML or even modify it.
I used to be a software developer and when I started to mostly implement Cognos solutions I was always looking for automated ways to do different tasks.
Just a few examples from my own experience:

Let's say you need to find all Cognos objects which are dependent on a specified Cognos object.
E.g. you have a data module and would like to know all reports, packages, datasets, shortcuts, report views, jobs, etc. dependent on this module.

The workflow is quite straightforward:

Please look at the attached archive which contains:

You would also need to download a free Java Saxon XSLT processor SaxonHE9-9-1-5J.zip from
https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/
(https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/)
Title: Re: Cognos content maintenance using XSLT script - find dependent objects
Post by: ukflix on 08 Apr 2022 03:42:09 AM
It says attachment not found
Title: Re: Cognos content maintenance using XSLT script - find dependent objects
Post by: Andrei I on 08 Apr 2022 09:29:42 AM
Let me check
Title: Re: Cognos content maintenance using XSLT script - find dependent objects
Post by: MFGF on 08 Apr 2022 10:25:52 AM
Quote from: ukflix on 08 Apr 2022 03:42:09 AM
It says attachment not found

I think the site rules changed a while ago, and attachments to posts are no longer supported on Cognoise. If Andrei still has the original file, it could be shared using a third-party site and a URL link to it.

Cheers!

MF.
Title: Re: Cognos content maintenance using XSLT script - find dependent objects
Post by: Andrei I on 08 Apr 2022 01:01:51 PM
Quote from: ukflix on 08 Apr 2022 03:42:09 AM
It says attachment not found
Unfortunately, I could not find that Zip file.