Page 1 of 1
debug turbo integrator
Posted: Sun Apr 04, 2010 12:44 pm
by nicola531
Hello everybody,
do you know if there is a way to debug a turbo integrator process?
in order to understand where I make errors on my process.
Actually I would like to know if there is printline to see the content of a variable.
Thanks ind advance for you help.
Nicola
Re: debug turbo integrator
Posted: Sun Apr 04, 2010 1:18 pm
by Wim Gielis
Hi there
You can use ASCIIOUTPUT to print a fixed text or the contents of a variable to a text file.
Some points to take into account:
- The first argument of that function should be the file name. If you do not specify the path location, the database directory is used.
- Separate with comma's what you would like to output in the text file.
- The CMA file extension is often used for this kind of files.
- Numeric data should be converted to a string if you want to output them using ASCIIOUTPUT. Use for instance the NumberToString function.
- Depending on the version of TM1, make sure the length of 1 sentence in the output file is not too long.
- Any ASCIIOUTPUT statement in the Metadata or Data tab to a file, will overwrite (hence, delete) that file. This means that an ASCIIOUTPUT statement in the Prolog tab to the same text file will not have the intended purpose.
- I regularly use a temporary cube or dimension to hold data, and be able to evaluate the process. Delete the cube or dimension afterwards, or clear the area in the cube.
- The ProcessQuit and ItemReject functions are also good tools to evaluate processes.
Wim
Re: debug turbo integrator
Posted: Tue Apr 06, 2010 12:50 am
by Martin Ryan
Hi Nicola,
Cubewise have a non-free
third party app that can help with this.
(Disclaimer: I do a bit of work for them).
Martin