Hello,
I have been trying to create the elapsed time in seconds that it would take an existing process to complete running (namely an overnight process). I know this is calculated within the Message Log, but I would like to put this in a control cube. Any Ideas on how to accomplish this within a process?
Thank you!
Elapsed Time of Process
-
- 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: Elapsed Time of Process
Are you saying you want to record how long it takes to run a process and store that value in a control cube? It would be easier to record the start and stop times in the control cube and then calculate the elapsed time via a rule in the control cube. Just CellPutN the value from the NOW() function into the starting time cell in control cube on the Prolog tab and then CellPutN the NOW() value in the ending time cell on the Epilog tab. I'll let you take a stab at writing the rule. Hint: Subtract the two dates and then use TIMST function to format as desired.
- qml
- MVP
- Posts: 1097
- Joined: Mon Feb 01, 2010 1:01 pm
- OLAP Product: TM1 / Planning Analytics
- Version: 2.0.9 and all previous
- Excel Version: 2007 - 2016
- Location: London, UK, Europe
Re: Elapsed Time of Process
At the beginning of Prolog add this line:
At the end of Epilog add this line:
Then just write nElapsedSeconds to a cube and you're done. It will give you the execution time rounded to full seconds.
Code: Select all
nStartTime = NOW;
Code: Select all
nElapsedSeconds = ROUND ((NOW - nStartTime) / 0.000011574074074074);
Kamil Arendt