




"2","20150417142238","20150417142238","Admin","S","\\Sources\Dimensions\","\\\TM1__LOAD\Sources\Dimensions\","Z_Parametre","DimensionSourceRepository","Svalue",""



Thank you for help
cordially
No. You can't do this just using the Prolog because the prolog executes in isolation without binding to a data source. To examine the contents of a text file line by line as a data source you need to use the metadata or data tab as code on these tabs will be repeated per record of the data source. On the prolog you would setup your variable declarations, test parameters and set what the data source is going to be.SysHic wrote:...i don't want a solution step by step, i was just asked et now if it's possible to do this just with program Prolog.
lotsaram wrote:No. You can't do this just using the Prolog because the prolog executes in isolation without binding to a data source. To examine the contents of a text file line by line as a data source you need to use the metadata or data tab as code on these tabs will be repeated per record of the data source. On the prolog you would setup your variable declarations, test parameters and set what the data source is going to be.SysHic wrote:...i don't want a solution step by step, i was just asked et now if it's possible to do this just with program Prolog.
Once you've setup your data source as a text file in the opening tab you should see the columns within the file (seperated by a comma) in the variables tab. Each variable needs to havea unique name. When you setup your source the TI process tries to name the variable based on the contents of the column. Normally its best to change the name yourself to something meaningful, so for example if your column contains years call it vYear. The prefix of "v" signifies that it is a variables. Then in the data / meta data tabs when you refer to the variable it actually refers to the value of the variable. This is what Lotsaram was meaning. I hope this helps.SysHic wrote:Thank you for your answer. ok i understand . but the probleme here it's a file texte no a CSV text so there are no header. how i call the specific data
i was find this commande : DIMENSIONELEMENTINSERT and DIMENSIONELEMENTCOMPONENTADD , but This function adds an element not sub not all the data. -will you have an idea on the command I should use. thank you so much
---------------------------------------------------------------------------------------------------------------------------------------------------------------------jim wood wrote:Once you've setup your data source as a text file in the opening tab you should see the columns within the file (seperated by a comma) in the variables tab. Each variable needs to havea unique name. When you setup your source the TI process tries to name the variable based on the contents of the column. Normally its best to change the name yourself to something meaningful, so for example if your column contains years call it vYear. The prefix of "v" signifies that it is a variables. Then in the data / meta data tabs when you refer to the variable it actually refers to the value of the variable. This is what Lotsaram was meaning. I hope this helps.SysHic wrote:Thank you for your answer. ok i understand . but the probleme here it's a file texte no a CSV text so there are no header. how i call the specific data
i was find this commande : DIMENSIONELEMENTINSERT and DIMENSIONELEMENTCOMPONENTADD , but This function adds an element not sub not all the data. -will you have an idea on the command I should use. thank you so much
BTW Tomok is right. You really do need to at least go through the documentation that IBM provide. There is a developers guide that covers most of what we have pointed out so far. At the moment you're trying to drive a car without getting lessons,
Jim.
jim wood wrote:The fact that the file has no header makes no difference at all which is what I was trying to point out. In fact if it has a header row then you should skip as it's not valid data. The variable names have nothing to do with the headers. The process will pick them up and you specify a header row and the header contains no spaces but you can simply go in to the variables tab and change the variable name. This is covered by the documentation I mentioned earlier. You really need to go through as you clearly don't understand how TM1 refers to variables.
jim wood wrote:Within Perspectives select help then contents and index. You should see a link to the developers guide