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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to write a macro to update a transformer model?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am trying to write a macro to update my transformer model and rebuild the cube.
 
Here's one approach from the Cognos Knowledgebase:

Description

Can a BAT file that includes a command to build a cube be called from a macro?

Solution:

Yes you can execute any BAT file from a macro using the shell function.

If for example the Bat file (using build.bat) contained a command to build the cube in batch mode:

"x:\Program Files\Cognos\cer1\bin\trnsfrmr.exe" -n -s "E:\Great Outdoors Company.mdl"

Then the macro can call the BAT file through the shell function:

Sub main()
shell("e:\build.bat")
end sub

HTH,

Dave Griffin [americanflag]'Happy July 4th!'
 
Thank You for the Suggestion
I am trying to write a macro to update the model and rebuild the cube. so that i can run the macro using scheduler at regular intervals.

It will be great if you can try to help me in this aspect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top