Home Knowledge Articles Series 7 How to run CognosScript macros?
Follow us on Twitter


Countries

50.1%United States United States
7.6%India India
7%United Kingdom United Kingdom
5.1%Australia Australia
4.8%Canada Canada

Visitors

Today: 30
Yesterday: 111
Last Week: 3353
This Month: 9182
Last Month: 16191
Total: 382835


How to run CognosScript macros? PDF Print E-mail
(2 votes, average 4.00 out of 5)
Written by Martijn Christenhusz   
Tuesday, 05 May 2009 21:39
CognosScript programs (macros) can be written, run, debugged and tested in the CognosScript Editor which comes default with the installation of Cognos Impromptu or PowerPlay. The CognosScript editor can be started on edmacro32.exe in the \bin\ cognos installation folder to open mac files.

The Macros are saved to a text format and have a mac extension. When the file is run it is automatically compiled to a binary file, with a mcx extension.
To run the macros from the command line the runmac32.exe in the \bin\ cognos installation folder is used.

To run a cognos macro from the command line just type in the following at the command prompt:
"D:\Program Files\Cognos\cer3\bin\runmac32.exe" D:\myfirstmacro.mac

It is also possible to pass a parameter to the script (you'll find an example on how to read the parameter in CognosScript on our pages). It can be done by adding the parameter simply at the end of the command: "D:\Program Files\Cognos\cer5\bin\runmac32.exe" D:\myfirstmacro.mac

Comments

Please login to post comments or replies.
Last Updated on Thursday, 28 January 2010 19:17
 
 

Login

For more content en features!



CogKnowHow Newsletter

Season's Greetings


Receive HTML?

Polls

How many users are working on your Cognos environment?