EssPartialDataClear

Clears the data specified in a well-defined, symmetrical region in the active aggregate storage database. There are two methods for selectively clearing data from a region:

Syntax

ESS_FUNC_M EssPartialDataClear (hCtx, RegionSpec, bPhysical);
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle (logged in)

RegionSpec

ESS_STR_T

Region specification (a valid MDX set expression)

The region must be symmetrical. Members in any dimension in the region must be stored members. When physically clearing data, members in the region can be upper-level members from primary and alternate hierarchies. (If the region contains upper-level members from alternate hierarchies, you may experience a decrease in performance.) When logically clearing data, members in the region can be upper level members from the primary hierarchy only. Members cannot be dynamic members (members with implicit or explicit MDX formulas), nor can they be from an attribute dimension.

bPhysical

ESS_BOOL_T

If TRUE, specifies clearing the data in the region using the physical clear region operation. If FALSE or not specified, data is cleared using the logical clear region operation.

Notes

Return Value

Return value for this function is zero upon successful completion; otherwise, an error code is returned.

Access

This function applies to aggregate storage databases only.

Example

ESS_FUNC_M
TestPartialDataClear(ESS_HCTX_T hCtx)
{
    ESS_STS_T       sts;
    ESS_STR_T       regionSpec="{Feb}";

/* Perform a logical clear of February data */
    sts = EssPartialDataClear(hCtx, regionSpec, AD_FALSE);
    return(sts);
}