Process Quit function

Post Reply
rossi
Posts: 29
Joined: Tue Jun 10, 2008 8:50 pm
Location: London UK

Process Quit function

Post by rossi »

If you put a process quit function in a prologue is there a way you can stop it displaying it was an error? Terribly annoying as it is not an error
Paolo
User avatar
Eric
MVP
Posts: 373
Joined: Wed May 14, 2008 1:21 pm
OLAP Product: TM1
Version: 9.4
Excel Version: 2003
Location: Chicago, IL USA

Re: Process Quit function

Post by Eric »

I am not sure. I can check when I am in the office; however, it would be easier to use a variable and if statements in each tab.

Code: Select all

ErrorFlag_n = 0;

IF(Errorflag_n = 0);
   Do something
Elseif (ErrorFlag_n ~ 0);
    #Nothing
EndIf;
Regards,
Eric
Blog: http://tm1-tipz.blogspot.com
Articles: http://www.google.com/reader/shared/use ... /label/TM1


Production: 32 bit 9.0 SP2, Windows 2000 Advanced Server. Web: 32 bit 9.0 SP2, Windows 2000 Server. Excel 2003
ScottW
Regular Participant
Posts: 152
Joined: Fri May 23, 2008 12:08 am
OLAP Product: TM1 CX
Version: 9.5 9.4.1 9.1.4 9.0 8.4
Excel Version: 2003 2007
Location: Melbourne, Australia
Contact:

Re: Process Quit function

Post by ScottW »

You could also use the ProcessBreak function either in combination with Eric's approach or by itself. When called ProcessBreak will stop processing the source and proceed directly to the Epilog tab (without returning an error handle to the TI).
Cheers,
Scott W
Cubewise
www.cubewise.com
Post Reply