DatasourceNameForServer Question
-
- Posts: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
DatasourceNameForServer Question
Hello,
I came across this technique of setting up a TI process to read the input file path and name from an information cube.
the example codes are below:
datasourcePath = CellGetS(NameOfInformationCubeName, MeasureNameForCategoryMeasureNameForFilePathName );
dataFileName = CellGetS( InformationCubeName, MeasureNameForCategory, MeasureNameForFileName) ;
# --- set the datasource info for this process
DatasourceNameForServer = datasourcePath | dataFileName;
DataSourceType = 'CHARACTERDELIMITED';
DatasourceASCIIDelimiter = ',';
can someone please let me know where I should put these codes? I suppose in Prolog?
thanks!
I came across this technique of setting up a TI process to read the input file path and name from an information cube.
the example codes are below:
datasourcePath = CellGetS(NameOfInformationCubeName, MeasureNameForCategoryMeasureNameForFilePathName );
dataFileName = CellGetS( InformationCubeName, MeasureNameForCategory, MeasureNameForFileName) ;
# --- set the datasource info for this process
DatasourceNameForServer = datasourcePath | dataFileName;
DataSourceType = 'CHARACTERDELIMITED';
DatasourceASCIIDelimiter = ',';
can someone please let me know where I should put these codes? I suppose in Prolog?
thanks!
-
- MVP
- Posts: 3234
- 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: DatasourceNameForServer Question
Prolog, because otherwise you wouldn't be able to access the file contents in Metadata and/or Data tab.
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: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
Re: DatasourceNameForServer Question
Thank you so much again!
-
- MVP
- Posts: 3234
- 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: DatasourceNameForServer Question
FYI, I tend to specify paths (input files, output files, custom scripts, ...) relative to the TM1 data directory.
You can do this with . and ..
Like that, whenever paths change, you will have less trouble adjusting all the paths.
TI functions like AsciiOutput, TextOutput, AsciiDelete, ExecuteCommand, FileExists, WildcardFileSearch, Datasourcenameforserver, ...
they all support the relative paths.
You can do this with . and ..
Like that, whenever paths change, you will have less trouble adjusting all the paths.
TI functions like AsciiOutput, TextOutput, AsciiDelete, ExecuteCommand, FileExists, WildcardFileSearch, Datasourcenameforserver, ...
they all support the relative paths.
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: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
Re: DatasourceNameForServer Question
sorry dumb question again...
I created a new process and put this in Prolog (haven't created the information cube yet, just to see if these codes work):
DatasourceNameForServer = 'A:\Customer List.csv;
DataSourceType = 'CHARACTERDELIMITED';
DatasourceASCIIDelimiter = ',';
but the Metadata and data are both greyed out, what do I need to do activate them?
thanks!
I created a new process and put this in Prolog (haven't created the information cube yet, just to see if these codes work):
DatasourceNameForServer = 'A:\Customer List.csv;
DataSourceType = 'CHARACTERDELIMITED';
DatasourceASCIIDelimiter = ',';
but the Metadata and data are both greyed out, what do I need to do activate them?
thanks!
-
- Posts: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
Re: DatasourceNameForServer Question
Thanks for the information...that is too advanced for me for now...I'm trying to figure out how to get to Metadata and data at this moment... 

-
- MVP
- Posts: 3234
- 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: DatasourceNameForServer Question
Use a dummy file with the correct columns to get yourself a preview and variables. Hence a Metadata and Data tab.
Is it really impossible for you to follow a TM1 course ?
Is it really impossible for you to follow a TM1 course ?
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: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
Re: DatasourceNameForServer Question
It is a one day course and they spent half a day going through how to set up dimensions using TI, all very basic material. all I learnt is that metadata is for dimension/subsets; data is for uploading cubes. little was explained about Prolog or Epilog (basically just use the manual input page to browse to the files and did a few SQL to pull raw data in from a SQL server). can you recommend a good online course that covers more details?
thanks!
thanks!
-
- MVP
- Posts: 3234
- 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: DatasourceNameForServer Question
That’s pretty bad I would say.lynnsong986 wrote: ↑Wed Oct 30, 2019 12:09 am It is a one day course and they spent half a day going through how to set up dimensions using TI, all very basic material. all I learnt is that metadata is for dimension/subsets; data is for uploading cubes. little was explained about Prolog or Epilog (basically just use the manual input page to browse to the files and did a few SQL to pull raw data in from a SQL server)
I set up my own Turbo Integrator course material with slides and exercises. It’s a 2-day course for those who are not too new with both TM1 and TI - although I can start from the beginning if needed (at the expense of skipping more advanced topics or a 3rd day). Obviously this material isn’t available online, yet my website covers many areas of TI. The material is kept up to date with every new release of the software, like new functions that are introduced or new us of working.lynnsong986 wrote: ↑Wed Oct 30, 2019 12:09 amcan you recommend a good online course that covers more details?
I’m sure others can offer custom training in TI too - of higher quality compared to what you know received. Likewise there are good sites out there as well. It will not be easy to find a site that gives you the same output and quality an experienced trainer can give you.
Last edited by Wim Gielis on Wed Oct 30, 2019 12:51 am, edited 1 time in total.
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: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
Re: DatasourceNameForServer Question
I definitely agree that I need a better course, I'd love to take yours but I'm in Canada so my best bet would be an online course with a different provider...good thing is my company pays for it...
Thank you!
Thank you!
-
- Posts: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
Re: DatasourceNameForServer Question
I visited your site, I went though the MDX statements and have been practicing them. My problem is really with TI, not much with rules (I’m an advanced excel user, I use VBA a lot and have done quite a bit financial modeling in excel, so rules are fairly straightforward once I figure out the syntax). I think TI resembles VBE a lot, I need to find a good trainer for sure...
-
- MVP
- Posts: 3703
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: DatasourceNameForServer Question
There are specialist online TM1 training courses availabe. Just do a search for "TM1 + training" and scroll down the list.
You get what you pay for, the better courses are considerably more expensive than the cheaper offerings.
You get what you pay for, the better courses are considerably more expensive than the cheaper offerings.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
-
- Posts: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
Re: DatasourceNameForServer Question
I signed up for a course provided by INTELLIPAAT, just went through 2 sessions but I can already tell this is so much better! They also provide 24/7 support (at least they claimed), I'll see how it goes...
thanks!
thanks!