The one in TI Help wasn't helpful to me.

I have a view made up and try to export the data of the view to a ascii file, all I get was a cma file with the value as header and no data to it.
I wonder what was wrong.
Is it possible that you weren't doing the ASCIIOutput in either the Metadata or the Data tab, and were instead doing it in either the Prolog or the Epilog?Chengooi wrote:Will anyone has a sample TI using asciioutput on a cube view?
The one in TI Help wasn't helpful to me.![]()
I have a view made up and try to export the data of the view to a ascii file, all I get was a cma file with the value as header and no data to it.
I wonder what was wrong.
First, the Prolog is executed only once, before even a single row of the data source is processed.Chengooi wrote:ASCIIOutput('PhilH.cma', 'CostCentre','Consol','Actual','MTD','period');
yes, only in prolog, never touch the other because don't know how to use it.
I have attached my pro file to your email.
I always set the Contents to "Other" rather than "Element" or "Data"; those settings are only useful if you're using generated code, which I never do. (And if all you're doing is an AsciiOutput, you aren't either.)Chengooi wrote:success but almost!
I managed to output the cms file and with values !! but outting the line in data tab, but the Value (data) did not come across, I wonder why
NewAccounts String 00000 Element
TBRANCH String P6061 Element
Period String 39872 Element
Actbud String Actual Element
Data String MTD Element
Value Numeric 0.000000 Data
Thanks Alan for your excellent advice!!