0% found this document useful (0 votes)
4 views

How to execute python scripts from Cognos Analytics

The document provides guidance on executing Python scripts from Cognos Analytics, noting that there are no sample scripts directly from Cognos. It suggests reviewing Cognos Java SDK code to convert it into Python and includes a link to a sample Python script for uploading files to Cognos Analytics using the REST API. Additional resources and support for IBM Cognos Analytics are also mentioned.

Uploaded by

leonardo.russo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

How to execute python scripts from Cognos Analytics

The document provides guidance on executing Python scripts from Cognos Analytics, noting that there are no sample scripts directly from Cognos. It suggests reviewing Cognos Java SDK code to convert it into Python and includes a link to a sample Python script for uploading files to Cognos Analytics using the REST API. Additional resources and support for IBM Cognos Analytics are also mentioned.

Uploaded by

leonardo.russo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

How to execute python scripts from Cognos Analytics

Troubleshooting

Problem
How to execute python scripts from Cognos Analytics

Cause

Diagnosing The Problem

Resolving The Problem


There is no sample python script from Cognos Analytics.

In general, you will need to review and convert Cognos Java SDK code to python script

You can navigate to C:\Program Files\ibm\cognos\analytics\sdk\java

There are some sample code in IBM Accelerator Catalog page.

Sample python script to upload a file (csv, xls,xlsx) to Cognos Analytics 11.1.7 and above using the REST API
Here is the link to download sample python script

https://accelerator.ca.analytics.ibm.com/bi/?
perspective=authoring&pathRef=.public_folders%2FIBM%2BAccelerator%2BCatalog%2FContent%2FAPI000
06&id=i770C8258004B4D84B47D25EDD3C82E10&objRef=i770C8258004B4D84B47D25EDD3C82E10&acti
on=run&format=HTML&cmPropStr=%7B%22id%22%3A%22i770C8258004B4D84B47D25EDD3C82E10%22
%2C%22type%22%3A%22reportView%22%2C%22defaultName%22%3A%22API00006%22%2C%22permis
sions%22%3A%5B%22execute%22%2C%22read%22%2C%22traverse%22%5D%7D

Document Information
More support for:
IBM Cognos Analytics (https://www.ibm.com/mysupport/s/topic/0TO500000002PVJGA2)

Component:
SDK

Software version:
All Versions

Document number:
7009031

Modified date:
30 June 2023

You might also like