button near the Base table tree or the Drill-thru table tree is available
in both the Cube Designer – Input and
the Cube Designer – Drill-Through dialog
boxes. The button opens the Table Options dialog box. It enables you to specify data set options that are
used to open the data set. For example, you could enter a WHERE clause
or subsetting information that is then applied to the selected table
when it is opened. The options are stored as part of the cube and
then reapplied when the data is accessed at run time. You can also
specify data set options in the Dimension Designer –
General dialog box (for use with star schemas) and the Stored Aggregates dialog box (for use with summarized
tables). For more information, see “Data Set Options”
in the SAS Language Reference: Concepts.
OPTIONS VALIDVARNAME=ANY;
LIBNAME olapsio BASE “\\olap\tmp\libolap" ;
PROC OLAP
CUBE = "/Shared Data/OLAPSchemas/SumCube"
PATH = 'C:\v9cubes'
DESCRIPTION = 'Fully Summarized Cube'
NONUPDATEABLE
MAXTHREADS = 5000
;
METASVR
HOST = "J12345.na.sas.com"
PORT = 8561
OLAP_SCHEMA = "SASApp - OLAP Schema";
DIMENSION Geography
CAPTION = 'Geography'
SORT_ORDER = ASCENDING
HIERARCHIES = (
Geography
) /* HIERARCHIES */;
HIERARCHY Geography
ALL_MEMBER = 'All Geography'
CAPTION = 'Geography'
LEVELS = (
COUNTRY DIVISION
) /* LEVELS */
DEFAULT;
LEVEL COUNTRY
FORMAT = $CHAR10.
CAPTION = 'Country'
SORT_ORDER = ASCENDING;
LEVEL DIVISION
FORMAT = $CHAR10.
CAPTION = 'Division'
SORT_ORDER = ASCENDING;
DIMENSION Products
CAPTION = 'Products'
SORT_ORDER = ASCENDING
HIERARCHIES = (
Products
) /* HIERARCHIES */;
HIERARCHY Products
ALL_MEMBER = 'All Products'
CAPTION = 'Products'
LEVELS = (
PRODUCT PRODTYPE
) /* LEVELS */
DEFAULT;
LEVEL PRODUCT
FORMAT = $CHAR10.
CAPTION = 'Product'
SORT_ORDER = ASCENDING;
LEVEL PRODTYPE
FORMAT = $CHAR10.
CAPTION = 'Product type'
SORT_ORDER = ASCENDING;
DIMENSION Dates
CAPTION = 'Dates'
TYPE = TIME
SORT_ORDER = ASCENDING
HIERARCHIES = (
Dates
) /* HIERARCHIES */;
HIERARCHY Dates
ALL_MEMBER = 'All Dates'
CAPTION = 'Dates'
LEVELS = (
YEAR QUARTER MONTH
) /* LEVELS */
DEFAULT;
LEVEL YEAR
FORMAT = 4.
TYPE = YEAR
CAPTION = 'Year'
SORT_ORDER = ASCENDING;
LEVEL QUARTER
FORMAT = 8.
TYPE = QUARTERS
CAPTION = 'Quarter'
SORT_ORDER = ASCENDING;
LEVEL MONTH
FORMAT = MONNAME3.
TYPE = MONTHS
CAPTION = 'Month'
SORT_ORDER = ASCENDING;
MEASURE predsumSUM
STAT = SUM
ANALYSIS = PredictGroup
AGGR_COLUMN = predsum
CAPTION = 'Sum of predsum'
FORMAT = Best12.
DEFAULT;
MEASURE prednN
STAT = N
ANALYSIS = PredictGroup
AGGR_COLUMN = predn
CAPTION = 'Number of values for predn'
FORMAT = 12.;
MEASURE actsumSUM
STAT = SUM
ANALYSIS = ActualGroup
AGGR_COLUMN = actsum
CAPTION = 'Sum of actsum'
FORMAT = Best12.;
MEASURE actnN
STAT = N
ANALYSIS = ActualGroup
AGGR_COLUMN = actn
CAPTION = 'Number of values for actn'
FORMAT = 12.;
MEASURE PredictedDerived
STAT = AVG
ANALYSIS = PredictGroup
CAPTION = 'Average PredictGroup'
FORMAT = Best12.;
MEASURE ActualDerived
STAT = AVG
ANALYSIS = ActualGroup
CAPTION = 'Average ActualGroup'
FORMAT = Best12.;
AGGREGATION /* Default */
/* levels */
COUNTRY DIVISION MONTH PRODTYPE
PRODUCT QUARTER YEAR
/ /* options */
TABLE = olapsio.PRDNWYPR
NAME = 'Default';
AGGREGATION /* Aggregation1 */
/* levels */
COUNTRY YEAR
/ /* options */
TABLE = olapsio.PGEOTIME
NAME = 'Aggregation1';
AGGREGATION /* Aggregation2 */
/* levels */
COUNTRY DIVISION PRODTYPE
PRODUCT QUARTER YEAR
/ /* options */
TABLE = olapsio.PRDNWYPR
NAME = 'Aggregation2';
RUN;