CubeCreate in TI
Posted: Wed Sep 23, 2009 10:15 pm
Hi
I'm looking to see if there is a short cut to what I am trying to do as I feel like I'm going the long way around things
I need to create several new cubes which are replicas of other cubes but with a suffix on them. I know I can do this easily enough by copying the .cub files and renaming them which would give me fully populated cubes but with the same dimension names as the original cubes. However I also want to attach a suffix to some of the dimension names.
eg:
CubeName
Dim1
Dim2
Dim3
Dim4
copies to:
CubeName_New
Dim1_New
Dim2
Dim3_New
Dim4
The only way I can think to do this is to create the new dimensions (again I know I can do this with the .dim files), create the new cubes and then export and import the data
Surely there must be a simpler way?
I did start doing this the long way:
1.by creating a dimension that lists the cubes which I need to copy and also one which lists the dimensions that need changing in the new cubes.
2.I've then created a process which loops through the cubes and exports all their data to individual files (I did this basing each one on the max dim size I have of 10, therefore I always export 11 variables (10 + 1 Data) but in some cases the file will have emoty values for the last few variables. This is therefore my export files
3.I've also created a process which loops though the cubes and creates then new cubes using the new dimensions
4.So the last stage is getting the data in, the only way I can think to do this is creating a separate process for each new cube
If I could simply copy the .cub files and somehow change the internal referencing to the new dimensions without how to move data around, that would be simplest, failing that if I could combine my steps above into one easier process that would be better too
Thanks!
Regards
Sarah Horsted
TM1 9.1.4 FP1 64bit
I'm looking to see if there is a short cut to what I am trying to do as I feel like I'm going the long way around things
I need to create several new cubes which are replicas of other cubes but with a suffix on them. I know I can do this easily enough by copying the .cub files and renaming them which would give me fully populated cubes but with the same dimension names as the original cubes. However I also want to attach a suffix to some of the dimension names.
eg:
CubeName
Dim1
Dim2
Dim3
Dim4
copies to:
CubeName_New
Dim1_New
Dim2
Dim3_New
Dim4
The only way I can think to do this is to create the new dimensions (again I know I can do this with the .dim files), create the new cubes and then export and import the data
Surely there must be a simpler way?
I did start doing this the long way:
1.by creating a dimension that lists the cubes which I need to copy and also one which lists the dimensions that need changing in the new cubes.
2.I've then created a process which loops through the cubes and exports all their data to individual files (I did this basing each one on the max dim size I have of 10, therefore I always export 11 variables (10 + 1 Data) but in some cases the file will have emoty values for the last few variables. This is therefore my export files
3.I've also created a process which loops though the cubes and creates then new cubes using the new dimensions
4.So the last stage is getting the data in, the only way I can think to do this is creating a separate process for each new cube
If I could simply copy the .cub files and somehow change the internal referencing to the new dimensions without how to move data around, that would be simplest, failing that if I could combine my steps above into one easier process that would be better too
Thanks!
Regards
Sarah Horsted
TM1 9.1.4 FP1 64bit