COGNOiSe.com - The IBM Cognos Community

Planning & Consolidation => COGNOS Planning => Topic started by: EP_explorer on 16 Jun 2010 11:35:29 AM

Title: launch several macroses in the same time
Post by: EP_explorer on 16 Jun 2010 11:35:29 AM
I have several Contributor macroses which are launched by users. Macroses contains several steps such as Publish, Import, GTP etc. I found that if users lauch macroses in the same time they are going simultaneously.

Question - can I make such thing that macroses are stepped in a queue - It means first users lauched his macros - macros started. After some time another user lauched his macros and the second user's macros have to wait in queue until first user's macros stopped.

I think the only way is using Wait for any job step of macros. But I have to monitor many applications and publish_containers in this case? I.e. I have to put several steps of Wait for any jobs which monitor every object?

Is it true? Or may be I undestand Wait for any job incorrectly?
May be you know any other ways?
Title: Re: launch several macroses in the same time
Post by: vipul.bahl@gmail.com on 17 Jun 2010 12:32:56 AM
Hi,
Wait for job is one option.
Another option can be using batch files for executing macros. These batch files can also be automated by scheduling them.
The batch file is so written that as soon as the first macro ends an indicator is generated (in a specified folder).
So the second macro specified in a batch file can be run in 2 ways:
1. once second batch file sniffs the indicator, it executes the second macro on its own if scheduled. else
2. When user tries to execute the batch file, it will first sniff for the indicator, if indicator is not present, the second macro will not be executed.