$LOOP_VAR

The $LOOP_VAR property specifies that when a OLAP_TABLE SQL function with the LOOP OPTIMIZED clause is executed, the formula on which it is assigned is looped in the same manner as the variable or QDR specified in the property. For more information on looping in OLAP_TABLE, see the discussion of the LOOP Clause.

Syntax

You add or delete a $LOOP_VAR property to the most recently defined or considered formula (see DEFINE and CONSIDER commands) using a PROPERTY statement:

  • To add the property, issue the following statement.

    PROPERTY '$LOOP_VAR' qdr | variable

  • To delete the property, issue the following statement.

    PROPERTY DELETE '$LOOP_VAR'

Arguments

qdr

A QDR for one of the dimensions of the formula.

variable

A variable with the same dimensions as the formula.