Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to run Impromptu macro from command line?

Status
Not open for further replies.

zaibz

Programmer
Aug 19, 2003
6
US
I am trying to run impromptu macro from command line using the steps below:
1. In the task bar, click Start, and click Run.
2. Browse for the file and click OK to return to the Run dialog box or type the fully qualified file name in the Open or Run box.
3. Type - m with the fully qualified file name of the macro, and click OK.
But it simply opens up that macro in Cognos script editor and not actually runs that.
Can somebody help me figure out why its happening so?
Thanks !
 
As it is a macro, you need to insert it in Cognso report

Report--> macro--> Add the macro.

It will run when the report is opened.

You can run the REPORT from cmd prompt

When I grow up, I want to be a child
 
Try adding the .MCX rather than the .MAC to the run dialog box.

If that fails the command line is:

<Your Cognos Installation dir>\cer?\bin\runmac32.exe <macro name>.

For example mine is :

c:\Program Files\cognos\cer2\bin\runmac32.exe mymac.mcx

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top