How to find -IF Process Success

Post Reply
User avatar
vinnusea
Posts: 116
Joined: Thu Sep 23, 2010 6:12 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010
Location: San Diego ,CA

How to find -IF Process Success

Post 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
Thanks
Vinnusea
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: How to find -IF Process Success

Post 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.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
User avatar
vinnusea
Posts: 116
Joined: Thu Sep 23, 2010 6:12 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010
Location: San Diego ,CA

Re: How to find -IF Process Success

Post by vinnusea »

ya thanks will try them..
Thanks
Vinnusea
User avatar
Steve Rowe
Site Admin
Posts: 2464
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: How to find -IF Process Success

Post 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,
Technical Director
www.infocat.co.uk
ajain86
Community Contributor
Posts: 132
Joined: Thu Oct 15, 2009 7:45 pm
OLAP Product: TM1
Version: 9.4.1 9.5 9.5.1
Excel Version: 2003 2007

Re: How to find -IF Process Success

Post 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.
Ankur Jain
User avatar
vinnusea
Posts: 116
Joined: Thu Sep 23, 2010 6:12 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010
Location: San Diego ,CA

Re: How to find -IF Process Success

Post by vinnusea »

Thanks Guys...
Thanks
Vinnusea
Post Reply