Hi everyone,
i'm trying to automatically generate dimensions and cubes in Cognos TM1 by metadata described in our database. My goal is it, that when I launch a script, it deletes all old Cubes and Dimensions, sets them up new and pulls the data from files. Is this even possible with TM1? I've looked at the .dim and .cub files in the TM1 directories, but they are all kind of encoded so that I see no possibility to just let my script generate those files. Is there a possibility to do this by using the Java-Api or do I have to generate Process-Files (Files wich are used by TM1 to store processes) and get them somehow startet without using the Frontend of the Turbo-Integrator.
Looking forward to any suggestions
Greetings
Alexander
Automatic generation of dimensions and cubes without
- Michel Zijlema
- Site Admin
- Posts: 713
- Joined: Wed May 14, 2008 5:22 am
- OLAP Product: TM1, PALO
- Version: both 2.5 and higher
- Excel Version: 2003-2007-2010
- Location: Netherlands
- Contact:
Re: Automatic generation of dimensions and cubes without
Hi Alexander,
There is a set of functions available in TI that can be used to delete/create dimensions, cubes and create hierarchies.
See f.i. the TI Functions section in the on-line help.
Michel
There is a set of functions available in TI that can be used to delete/create dimensions, cubes and create hierarchies.
See f.i. the TI Functions section in the on-line help.
Michel
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Automatic generation of dimensions and cubes without
Michel has pointed you in the right direction for the relevant TurboIntegrator functions, but I do suggest that you reconsider your approach. Completely destroying all of your cubes and dimensions and rebuilding them from scratch would usually be time-consuming, a maintenance headache since you'd have to completely script the creation process, and in many cases unnecessary. Usually a combination of updating the dimensions to reflect the current metadata structure and zeroing out and re-uploading only that area of the cube that's likely to have changed will be a far more efficient approach. It will save time and processor load both on the TM1 side, and on the source system side.CoN73mP7 wrote: i'm trying to automatically generate dimensions and cubes in Cognos TM1 by metadata described in our database. My goal is it, that when I launch a script, it deletes all old Cubes and Dimensions, sets them up new and pulls the data from files. Is this even possible with TM1? I've looked at the .dim and .cub files in the TM1 directories, but they are all kind of encoded so that I see no possibility to just let my script generate those files. Is there a possibility to do this by using the Java-Api or do I have to generate Process-Files (Files wich are used by TM1 to store processes) and get them somehow startet without using the Frontend of the Turbo-Integrator.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Posts: 37
- Joined: Wed May 18, 2011 7:48 am
- OLAP Product: TM1
- Version: 9.5
- Excel Version: 2003
- Location: Stuttgart, Germany
- Contact:
Re: Automatic generation of dimensions and cubes without
Thanks for your help, thats exactly what I'm looking for.Michel Zijlema wrote:Hi Alexander,
There is a set of functions available in TI that can be used to delete/create dimensions, cubes and create hierarchies.
See f.i. the TI Functions section in the on-line help.
Michel
Now, when I've created my Script, how do I execute it. Is it necessary to copy my script in a process-file generated by TurboIntegrator at some place like:
#****Begin: Generated Statements***
Here?!?
#****End: Generated Statements****
Or can I execute only my Script somehow, because I realy don't understand what all those lines at the beginning of a process-File are doing:
Code: Select all
601,100
562,"CHARACTERDELIMITED"
586,"C:\import.csv"
585,"C:\import.csv"
564,
565,"o_vTy0Rf]ac9\W2aDmnb1_63^@4Ja<j^Yg?8W2VZ0DMilkYBt<`6l?o9<R\z?3MRBkQ><sDqJxo7=faL5Z\9`4k0B7a1:TdLhtZ\ILMe`7^DJFiKlAV:mxSrB5mpQ6YKQo][Lib?[?LvkhO4RcBje^3X?rTphdG3M=72mctGje^gl9bfbiB7>FnzU5EhEcHrLe@QW[`U"
559,1
...
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: Automatic generation of dimensions and cubes without
The code you have pasted is NOT a script that you can call from a command line. It is the actual object file that TM1 stores to disk for backup purposes. It's just a coincidence that it happens to be in text. They could have just as easily stored it in binary format. You execute a TI process by either making it part of a scheduled chore, which can be set up in the GUI, or you execute it in a one-off manner, which can done by 1) via the GUI, 2) calling it from a TM1 action button in an Excel or Web Sheet, or 3) via the TM1 API.CoN73mP7 wrote:Now, when I've created my Script, how do I execute it.