Dimension Order in ViewCreate
Posted: Thu Jul 14, 2011 4:07 pm
I'm working on a snapshot script, but I'm running an issue with ViewCreate. My algorithm goes like this:
Parent Process
I've tried looping through the dims and using ViewRowDimensionSet to try to put them in the right order, but that had no effect. I'm about to write a new loop to create subsets in each dim and assign to the view in order (vs. leaving as "All"), but as I do that I was wondering if anyone has dealt with this before. Even if it's a bug, I have to work around it....
I know the BKM on this is to export to a file and reimport, but I/O is a real bottleneck in our system and this process will run at least an order of magnitude faster if I can do without ASCIIOutput.
Matt
Parent Process
- Prolog: Create new version element as a target.
- Prolog: Create tmp subset in version dim with source element.
- Epilog: Cycle through cubes looking for ones with version dim.
- Epilog: When one found, create a view, assign source version subset, and call child process.
- Prolog: DataSourceNameForServer, DataSourceNameForClient, DataSourceType, and DataSourceCubeview (all based on view created in parent process).
- Data: Do a CellPutN/S (lots of IFs, one for each number of dims to brute force get the syntax right.
I've tried looping through the dims and using ViewRowDimensionSet to try to put them in the right order, but that had no effect. I'm about to write a new loop to create subsets in each dim and assign to the view in order (vs. leaving as "All"), but as I do that I was wondering if anyone has dealt with this before. Even if it's a bug, I have to work around it....
I know the BKM on this is to export to a file and reimport, but I/O is a real bottleneck in our system and this process will run at least an order of magnitude faster if I can do without ASCIIOutput.
Matt