COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: EArumugam on 08 Mar 2012 05:21:50 AM

Title: is it possibel to set 2 CM.OUTPUTSCRIPT post processing
Post by: EArumugam on 08 Mar 2012 05:21:50 AM
Hi,

We have a requirement to save the scheduled report to the file system.

For ex:
we have 10 reports to schedule. 5 reports we need to save it in Folder 1 and another five reports in Folder 2.
and after sucessful schedule run, we need to do a post procesing scripts to rename the file thru a batch file.

Report saved in multiple location sucessfully. but the post processing scripts was not triggered if i set two CM.OutputScript in Advanced Settings as

CM.OutputScript          D:\Folder1\Run.bat
CM.OutputScript          D:\Folder2\Run.bat

please tell is it possible to set two post processing scripts as above.

if not, pls tell how to achieve this.

thanks in advance

-eas

Title: Re: is it possibel to set 2 CM.OUTPUTSCRIPT post processing
Post by: navissar on 09 Mar 2012 08:54:07 AM
While I do not know of a way to run two different scripts, you can run one script written in a manner that will identify the file saved, and then run the proper script for it.
Title: Re: is it possibel to set 2 CM.OUTPUTSCRIPT post processing
Post by: sir_jeroen on 23 Apr 2012 10:23:58 AM
I would advise you to setup the Archive File location in Cognos Configuration -> Global Settings.
This options enables the option to save files directly to the file system in the "Run with options"-option. So it's no longer necessary to work with CM.Outputlocation parameters.