COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Event Studio => Topic started by: StevenLunn on 19 Feb 2014 05:01:15 AM

Title: Disabling / Enabling a Package from Event Studio
Post by: StevenLunn on 19 Feb 2014 05:01:15 AM
Hi,

Is it possible to do as the subject above? We would like to temporarily disable a package until a condition is met, then enable the package. The idea being to prevent user's from running reports against a package until some jobs have completed. Checking the job completion is fine but not sure whether Event Studio can enable a package. I don't  see any option for it so presume not, but maybe there is another way?

Thanks.
Title: Re: Disabling / Enabling a Package from Event Studio
Post by: MFGF on 19 Feb 2014 05:06:45 AM
The only ways I can think of are to:
1.Figure out what gets changed in the content store when a package is disabled/enabled via the Cognos Connection UI, then code a stored procedure to make the same change(s) and call this from your agent.
2. Write some code via the SDK to enable/disable your package and call this via a web service from your agent.

There are obviously some challenges in figuring out what to update and also in coding the SP, and/or writing the code. I've never done it so not even sure it's feasible in practice.

Good luck!

MF.
Title: Re: Disabling / Enabling a Package from Event Studio
Post by: StevenLunn on 19 Feb 2014 05:11:47 AM
Thanks for replying MF. Gives me some things to think about.