Show TOC

Syntax documentation*LOGIC_MODE Locate this document in the navigation structure

Allowed uses: By Commit, MDX

*LOGIC_MODE = 0 | 1 | 2

The Logic module can select the logic to execute according to three different “logic modes”:

  • Mode 0: run the default logic DEFAULT.LGX.

  • Mode 1: override the default logic, and use a different one.

  • Mode 2: override the default logic, and use one or more logics, identified using some special criteria.

By default, the Logic module runs in mode 0 (use the default logic), but the mode could be overridden with the logic instruction:

*LOGIC_MODE = 0 | 1 | 2

(In reality this instruction makes only sense in the form: *LOGIC_MODE = 2, as the former two settings would be useless inside a logic file. Their values are controlled by the UI of the EvDTSRunLogic task).

The instruction:

*LOGIC_MODE = 2

tells the program NOT to run the default logic or any other given logic, but to run one or more logics, to be identified according to some specific criteria. In this mode, the Logic module scans the data file for all members of dimensions listed in the *LOGIC_BY instruction, searches for a property named LOGIC, and uses that property to build the logic file name.

Example Example

If you enter ENTITY and the data file contains records for SalesItaly, and SalesItaly has LOGIC_XYZ in the LOGIC field, the logic file used against the data of entity SalesItaly is LOGIC_XYZ.LGX.

End of the example.

Note Note

If not set up correctly, setting the logic mode to two (2) can cause a serious degradation of performance. Plan carefully if you think you need to use this feature.

End of the note.

LOGIC_MODE is automatically set to 2 if the instruction *LOGIC_BY is used, and in most cases, this instruction does not need to be specifically referenced by someone writing logic files.