Purchase your Section 508 Compliance Support guide now!

Purchase your Section 508 Compliance Support guide now!

Cognos 8 SDK Validation Tool (Java and C#)

The Cognos 8 SDK can be used to validate your report schemas.  This will allow you to specify a path and validate all reports instead of individually validating a report from within Cognos Report Studio.

 

Cognos provides a sample Cognos SDK Java application that you can modify from the command line, OR you can convert it to C# code and try it yourself!

 

In order to get started you must:

1.      download the tool at http://support.cognos.com/supported/supportlink/techniques/ta_0612_03.zip.  

2.      modify the file “BuildValidateCognos8.bat” to match your environment for the “JAVA_HOME” and “CRN_HOME” environment variables. (NOTE:  I had to rename the file to .txt in order to update it)

3.      modify the file “RunValidateCognos8.bat” to match your environment’s dispatcher value

4.      execute the “BuildValidateCognos8.bat” and then execute “RunValidateCognos8.bat”

5.      provide your namespace and login credentials

6.      select “Y” to validate all reports that are found in your Cognos content store

7.      review the genereated Reports.txt, validate_log.log, and validate_results.log.

 

I use this approach as a safety measure to validate my reports whenever we are packaging our Cognos deployment package for any migration.

 

In another post I’ll discuss how can we do this Cognos SDK validation by using C#, and applying this logic prior to a form request when called within your Cognos SDK application.