To build a cube by using
either PROC OLAP or SAS OLAP Cube Studio, you must perform several
preliminary tasks:
-
Configure a metadata server.
-
Define an OLAP server in the metadata.
The server does not need to be running to create cubes, but it must
be defined in the metadata.
-
Analyze the data to determine the
location of the table or tables to use for building your cubes and
what dimensions and measures will be created.
-
Register the table or tables to
use for creating the cube in the metadata. You do this by using SAS
Data Integration Studio or by using SAS OLAP Cube Studio and SAS Management
Console as follows:
-
Use SAS Management Console to register
the metadata for the server to use for accessing the tables. This
is a SAS Application Server with a workspace server component.
-
Use SAS Management Console to register
metadata for the library that contains the table.
-
In SAS OLAP Cube Studio, specify
the server to use for accessing the tables. To set the server, select
ToolsOptions. Or, if the shortcut bar is displayed, select
Options to
set the server.
-
In SAS OLAP Cube Studio, select
Source
Designer to load the table definitions (or other information
source) as follows:
-
From the shortcut bar, select
ToolsSource Designer or select
Source Designer .
-
Select a Source Type (SAS, ODBC,
and so on), and then select
Next.
-
If you have not specified a server,
or if the server that is specified is not valid, then you are prompted
again for a server.
-
Select the library that contains
the tables that you want to use, and then select
Next.
-
Select the tables to register and
then select
Next.
-
Select
Finish.
The table definitions are register in metadata.
-
If you start to create a cube and
do not see the table that you need to continue, then you can click
the
Define Table button in any of the windows
that prompt for tables.
-
In the
Finish window
of the cube designer, you are given the option to create the physical
cube. The metadata definition is always stored as you leave the
Finish window.
However, you can defer creation of the physical cube because it might
be a resource and time intensive process. If you choose to create
the cube as you leave the
Finish window,
then you must have a SAS Workspace Server defined that you can submit
PROC OLAP code to. This server is defined in SAS Management Console.
For more information
about the different data types that you can use to load cubes from,
see “Planning for SAS OLAP Cubes” in the
SAS OLAP Server: User's Guide.
Note: The SAS Metadata Server enables
duplicate librefs to be defined in the metadata. To ensure that the
correct library definition is found on the metadata server, you should
assign the libref by using the LIBNAME statement for the metadata
engine before submitting the PROC OLAP code. Otherwise, PROC OLAP
selects the first library definition that it finds with your specified
libref, and it associates your cube metadata with that definition.
The selected library definition might or might not contain a description
of the data that was actually used to build your cube. For more information
about using the LIBNAME statement for the metadata engine, see “Metadata
LIBNAME Engine” in
SAS Language Interfaces to Metadata.
When a SAS OLAP cube
is created, a directory for that cube is also created. This directory
is assigned the same name as the cube, but in uppercase letters. For
example, if you save a cube in
c:\olapcubes
and
name the cube
Campaigns
, the cube is
saved in the directory
c:\olapcubes\CAMPAIGNS
.