ASCIIOUTPUT-TI process problem
-
- Posts: 128
- Joined: Thu Dec 15, 2011 8:22 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
ASCIIOUTPUT-TI process problem
I have used ASCIIOUTPUT('E:\ABC.csv',v1,v2,v3,v4,numbertostring(v5)); I am using cubeview as datasource. v5 is my numeric value coming from cube.But Iam not able to see file named ABC.csv in my E:\drive nor any data inside.Rule is written in that cube which Iam using as source as cubeview. Ihave access to my E: drive. and this Ascii code I have tried written in DATA as well as Metadata part.I want all the records should be displayed in my csv.
Please suggest.
Please suggest.
-
- MVP
- Posts: 3241
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: ASCIIOUTPUT-TI process problem
Does Turbo Integrator enter the data source (view)?
That is, maybe you try to export cells calculated by a rule, but you must know that by default,
TM1 skips those cells. You must indicate in the Prolog that you don't want to skip those cells.
That is, maybe you try to export cells calculated by a rule, but you must know that by default,
TM1 skips those cells. You must indicate in the Prolog that you don't want to skip those cells.
Code: Select all
ViewExtractSkipRuleValuesSet(CUBENAME,VIEWNAME,0);
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- Posts: 128
- Joined: Thu Dec 15, 2011 8:22 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: ASCIIOUTPUT-TI process problem
I have not craeted a view through TI process instead I have taken it from the cube view itself. only in metadata I have written the whole code.Even I ahve commented all the rule driven cells then also I am not seeing the the elements and values in my csv file even iam not seeing the file name exist by that name i.e ABC.csv.
please suggest some other methodif you know I want all the records in my csv file.
please suggest some other methodif you know I want all the records in my csv file.
-
- MVP
- Posts: 1831
- Joined: Mon Dec 05, 2011 11:51 am
- OLAP Product: Cognos TM1
- Version: PA2.0 and most of the old ones
- Excel Version: All of em
- Location: Manchester, United Kingdom
- Contact:
Re: ASCIIOUTPUT-TI process problem
dilip wrote:I have not craeted a view through TI process instead I have taken it from the cube view itself. only in metadata I have written the whole code.Even I ahve commented all the rule driven cells then also I am not seeing the the elements and values in my csv file even iam not seeing the file name exist by that name i.e ABC.csv.
please suggest some other methodif you know I want all the records in my csv file.
I am a bit lost as to what you are trying to say here but just to point out another possibility, is the E drive actually on your server or is it your local E drive?
Declan Rodger
-
- Posts: 128
- Joined: Thu Dec 15, 2011 8:22 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: ASCIIOUTPUT-TI process problem
its in my e: drive local
-
- MVP
- Posts: 1831
- Joined: Mon Dec 05, 2011 11:51 am
- OLAP Product: Cognos TM1
- Version: PA2.0 and most of the old ones
- Excel Version: All of em
- Location: Manchester, United Kingdom
- Contact:
Re: ASCIIOUTPUT-TI process problem
TI Processes are running on the TM1 server.dilip wrote:its in my e: drive local
Declan Rodger
-
- Posts: 128
- Joined: Thu Dec 15, 2011 8:22 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: ASCIIOUTPUT-TI process problem
NOw AsCIIOutput('E:\ABC.csv' ,'HHHHHHHHH');.. I have tried with hardcoding the value and seeing whether it is coming or not but Only when Iam writing in the prologg part the hardcoded value is coming when Iam writing in Metadata and data part That file ABC.csv is not generating in that E:\drive path.
- 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: ASCIIOUTPUT-TI process problem
If your TI is running without error then the view you are using as a source is not generating any records so the metadata tab is not running at all.
To create a view by hand right click on the cube concern and create an Export as Text view, save the view but don't export. (Suggest you read the help on using this dialogue box).
Then point your TI at this view.
You will then get an error I expect as the TM1 server cannot see your E drive, the path you specify needs to make sense from the servers view point.
To create a view by hand right click on the cube concern and create an Export as Text view, save the view but don't export. (Suggest you read the help on using this dialogue box).
Then point your TI at this view.
You will then get an error I expect as the TM1 server cannot see your E drive, the path you specify needs to make sense from the servers view point.
Technical Director
www.infocat.co.uk
www.infocat.co.uk
- qml
- MVP
- Posts: 1098
- 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: ASCIIOUTPUT-TI process problem
That strongly suggests that the cube view you are using as the data source is empty and so your Metadata and Data code is not being executed at all. Please make sure that you define your data source properly. Think about what sorts of values you are expecting. Are they consolidated values or leaf-level values or both? Do you want to include empty/zero values? Do you want to include rule-derived values? Think about these questions first and make sure you build your source view so that it actually returns rows.dilip wrote:when Iam writing in Metadata and data part That file ABC.csv is not generating in that E:\drive path.
Some useful functions to look at when defining your view:
ViewExtractSkipZeroesSet()
ViewExtractSkipCalcsSet()
ViewExtractSkipRuleValuesSet()
PS: Steve beat me to it, but if have to lose to someone, there is no shame in being beaten by someone like him.

As a final note - when putting together a question, please make sure you give as much clearly described detail as possible. People will be much more keen to help you when they understand the problem and don't have to go deciphering, guessing and asking more questions. A well formulated problem is halfway solved.
Kamil Arendt
-
- MVP
- Posts: 3241
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: ASCIIOUTPUT-TI process problem
I guess my suggestion above wasn't clear enough to the OPqml wrote:Some useful functions to look at when defining your view:
ViewExtractSkipZeroesSet()
ViewExtractSkipCalcsSet()
ViewExtractSkipRuleValuesSet()
PS: Steve beat me to it, but if have to lose to someone, there is no shame in being beaten by someone like him.

Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- Posts: 128
- Joined: Thu Dec 15, 2011 8:22 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: ASCIIOUTPUT-TI process problem
.Thank You very much.YES i GOT IT.... fINALLY i HAVE CREATED A VIEW BY USING TI process created a subsets and assign the subsets in a view ..........now it is working fine.
But only problem is that so many records are there due to which it is unable to open the excel and text file. not all the records are captured in my text file and excel file....
Can you please suggest.
But only problem is that so many records are there due to which it is unable to open the excel and text file. not all the records are captured in my text file and excel file....
Can you please suggest.
-
- MVP
- Posts: 3241
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: ASCIIOUTPUT-TI process problem
Do you skip zeros and consolidations in the exported view? Your rules are correct?dilip wrote:.Thank You very much.YES i GOT IT.... fINALLY i HAVE CREATED A VIEW BY USING TI process created a subsets and assign the subsets in a view ..........now it is working fine.
But only problem is that so many records are there due to which it is unable to open the excel and text file. not all the records are captured in my text file and excel file....
Do you want to filter in the cube and as such, limit the output?
When exporting the data out of a cube, in most cases n-level cells suffice. Hence, create an MDX statement to gather in the subset only n-level cells.
Opening a file in Notepad is also an option (or is that what you meant above ?)
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- Posts: 128
- Joined: Thu Dec 15, 2011 8:22 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: ASCIIOUTPUT-TI process problem
Thank you very much.
- qml
- MVP
- Posts: 1098
- 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: ASCIIOUTPUT-TI process problem
That is probably massive overkill for the rather simple task being so laboriously solved in this thread. I would say ViewExtractSkipCalcsSet is a better way to achieve the same result for at least three reasons:Wim Gielis wrote:Hence, create an MDX statement to gather in the subset only n-level cells.
a) simplicity
b) performance
c) I suspect the OP has little to no idea what you mean by the above.
Kamil Arendt
-
- MVP
- Posts: 3241
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: ASCIIOUTPUT-TI process problem
Hello Kamil
About your 3 points above:
c) Most probably true
a) Certainly true
b) Do you have evidence that this is faster? I do not know whether it makes any difference.
What I tested in the past (very simply, I admit) was that MDX-driven subsets in a view are not slower than static subsets (loops to fill subsets with level-n)
Wim
About your 3 points above:
c) Most probably true
a) Certainly true
b) Do you have evidence that this is faster? I do not know whether it makes any difference.
What I tested in the past (very simply, I admit) was that MDX-driven subsets in a view are not slower than static subsets (loops to fill subsets with level-n)
Wim
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
- qml
- MVP
- Posts: 1098
- 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: ASCIIOUTPUT-TI process problem
Evidence? Only if as evidence you accept anecdotal evidence.Wim Gielis wrote: b) Do you have evidence that this is faster? I do not know whether it makes any difference.
What I tested in the past (very simply, I admit) was that MDX-driven subsets in a view are not slower than static subsets (loops to fill subsets with level-n)


Depending on the version of TM1, Dynamic Subsets can (but don't have to) have two main problems: constant recalculation with every element retrieval and creating locks on dimensions. Both of these may lead to the mythical 'performance issues'.
Many developers avoid MDX subsets like the plague, which, I must say, I personally disagree with. I think they have their uses, even in data sources. What I tend to do though is implicitly convert them to static subsets before use by employing the trick of adding and deleting a dummy element. That way I still get the flexibility and ease of use, and I get rid of any potential issues - which, admittedly, I have not tested with every version of the software and in every circumstance, so maybe I am being too careful purely based on some bad experiences from years ago and hearsay.
Kamil Arendt
-
- Posts: 128
- Joined: Thu Dec 15, 2011 8:22 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: ASCIIOUTPUT-TI process problem
Thank you Wim and Steve..........