SET CREATEBLOCKONEQ

Controls, within a calculation script, whether new blocks are created when a calculation formula assigns anything other than a constant to a member of a sparse dimension. SET CREATEBLOCKONEQ overrides the Create Block on Equation setting for the database.

Syntax

SET CREATEBLOCKONEQ ON|OFF;
ParameterDescription

ON

When a formula assigns a non-constant value to a sparse dimension member for which no block exists, Essbase creates a block.

OFF

When a formula assigns a non-constant value to a sparse dimension member for which no block exists, Essbase does not create a block.

Notes

If calculations result in a value for a sparse dimension member for which no block exists, Essbase creates a block. Sometimes, new blocks are not desired; for example, when they contain no other values. In large databases, creation and processing of unneeded blocks can increase processing time and storage requirements.

The Create Blocks on Equation setting is designed for situations when blocks would be created as a result of assigning something other than a constant to a member of a sparse dimension. For example, when Create Blocks on Equation is ON and West is assigned a value where it did not have a value before, new blocks are created. When this setting is OFF, blocks are not created.

Create Blocks on Equation setting is a database property. Its initial value is OFF; no blocks are created when something other than a constant is assigned to a sparse dimension member. Use Administration Services or MaxL to turn the setting ON at the database-level. For more information about enabling Create Blocks on Equation, see the MaxL documentation in the Oracle Essbase Technical Reference or the Oracle Essbase Administration Services Online Help.

For more specific control, you can use the SET CREATEBLOCKONEQ calculation command within a calculation script to control creation of blocks at the time the command is encountered in the script. Use of SET CREATEBLOCKONEQ has the following characteristics:

When the Create Blocks on Equation setting is ON, Essbase uses the top-down calculation method to calculate each sparse member.

The Create Blocks on Equation setting is not consulted when Essbase assigns constants to members of sparse dimensions. The following table shows examples of sparse member calculations where constants or non-constants are assigned to them.

Assigned ValueSparse Member Formula ExampleNew Block Created?
ConstantWest = 350Yes
Non-constantWest = California + 120Yes, if the Create Blocks on Equation setting is ON. Otherwise, no.
Non-constantWest = California * 1.05Yes, if the Create Blocks on Equation setting is ON. Otherwise, no.

For a tip on controlling creation of blocks when you work with non-constants and sparse dimensions, in the Oracle Essbase Database Administrator's Guide check for information about improving performance for non-constants assigned to members in sparse dimensions.

Example

The following example is based on Sample.Basic. West and East are members of the sparse Markets dimension.

FIX (Colas);
SET CREATEBLOCKONEQ OFF
West = California + 120;
SET CREATEBLOCKONEQ ON
East = "New York" + 100;
ENDFIX

Because of the preceding SET CREATEBLOCKONEQ OFF command, Essbase does not create blocks for new values of West. Because the setting has been reversed to ON in the next command, Essbase creates blocks for new values of East.

See Also

  • SET CREATENONMISSINGBLK