Page 1 of 1

How to find -IF Process Success

Posted: Sun Apr 10, 2011 2:16 pm
by vinnusea
Hi,
I have Created a ProcessC ,having both Process A and ProcessB.
AIM:
When while condition satisfied Execute Process A, If Executed Successfully then Execute ProcessB ,If ProcessA fails Then quit entire process.

Code: Select all

i=1;
While(i<= condition);
ExecuteProcess(ProcessA);
Only on Success;
ExecuteProcess(ProcessB);
end;
I have tried to understand the Globalstringvaribales to do this but couldn't figure what to use and how to use them. Appreciate your time .

Thank you
-Prat

Re: How to find -IF Process Success

Posted: Sun Apr 10, 2011 3:21 pm
by tomok
Look in the IBM Cognos TM1 Reference Guide for ProcessReturnCode in the Implicit Global Variables section of TI. That's what you'll need to use.

Re: How to find -IF Process Success

Posted: Sun Apr 10, 2011 6:51 pm
by vinnusea
ya thanks will try them..

Re: How to find -IF Process Success

Posted: Mon Apr 11, 2011 5:30 am
by Steve Rowe
Or call process B from the end of process of A then you won't need a global var.

Global vars are pretty easy to use

You just put the statement declaring the var global at the beginning of each TI you want to use it in. The var name goes in single quotes, which is a little odd until you realise you are passing an arguement.

Cheers,

Re: How to find -IF Process Success

Posted: Mon Apr 11, 2011 1:07 pm
by ajain86
The Execute Process function returns a code that can be stored in a variable.

You can then check if the code matches a specific condition and proceed.

Re: How to find -IF Process Success

Posted: Sat Apr 23, 2011 11:59 pm
by vinnusea
Thanks Guys...