The ImportCubes batch
tool is a command-line tool that enables you to import SAS 9.1.3
OLAP cube metadata files that have been exported using the ExportCubes
batch tool on your SAS 9.1.3 SP4 environment. The metadata for a
cube is exported as an XML file. With the ImportCubes batch tool,
you can specify the location of multiple exported SAS 9.1.3 XML files
and import them to your SAS 9.2 OLAP environment. The SAS 9.1.3 SP4
cube metadata is imported and added to the SAS 9.2 Metadata Server.
In addition, you can specify that a log file of the import execution
be created. After the metadata files are imported, you can then rebuild
your SAS 9.1.3 SP4 cubes on your SAS 9.2 system. You can use SAS OLAP
Cube Studio to build the physical data for the cubes.
The ImportCubes batch
tool is included with the standard SAS OLAP installation and is available
for use on Windows. It is executed from a DOS command line. When
you execute the ImportCubes command, all the cube XML extract files
in a directory are imported. The cubes are imported into the repository
from which they were exported. If that repository does not exist
on the target metadata server, then the cubes are imported into the
Foundation repository and this is noted in the log.
If needed, you can substitute
file paths during the import of your cube metadata. To substitute
file paths during the import, each XML file where you want to substitute
file paths must be edited. To change file paths for a cube, you must
edit the Substitutions section of the XML file. Specifically, you
must change the string following the tag “DefaultValue=”
to the directory path that you want. Do this for each XML file that
you want to change, and then run the ImportCubes batch tool. The
following example shows the Substitutions section of an XML file.
<Substitutions>
<Property Id="A5G2Y32Q.AI000EOC" TLObjN="1" Name="INDEXPATH"
DefaultValue="c:\indexfilesAggrA"/>
<Property Id="A5G2Y32Q.AI000EOD" TLObjN="1" Name="DATAPATH"
DefaultValue="c:\partitionsAggrA"/>
<Directory Id="A5G2Y32Q.B00000RU" TLObjN="1" Name="c:\v9cubes"
DirectoryName="c:\v9cubes"/>
<Property Id="A5G2Y32Q.AI000EO9" TLObjN="1" Name="WORKPATH"
DefaultValue="c:\v9cubes"/>
<Property Id="A5G2Y32Q.AI000EOA" TLObjN="1" Name="INDEXPATH"
DefaultValue="c:\globalindex1"/>
<Property Id="A5G2Y32Q.AI000EOB" TLObjN="1" Name="DATAPATH"
DefaultValue="c:\globalpartitions1"/>
</Substitutions>