The DEFINE statement
is used to create a global calculated member or a named set. Only
the registration of the member is stored; the value is calculated
when a query is submitted. A named set is an alias for a specified
MDX expression that returns a member or set. Named sets are often
used to make complex MDX queries easier to read and maintain.
The defined calculated
members and named sets are available to any session that creates a
query in the context of the SAS OLAP Server and the schema defined
in the METASRV statement of the PROC OLAP code that is used to create
the global member or set.
DEFINE statements can
apply to more than one cube, so the CUBE= option is not required to
use this statement. The METASVR statement verifies that the cube registration
exists in the metadata repository.