InterSystems MDX Reference
Creates a pivot variable for use in the current session, for the purpose of development. This statement is available only in the MDX shell.
SET variable_name variable_value
is the name of the pivot variable (without the leading $variable.
syntax). The name is not case-sensitive; the system ignores the case when you refer to the variable. You cannot create multiple variables with names that differ only in case.
Note that this pivot variable is independent of any cube and is available only for use within the current shell session.
The following MDX shell session provides an example:
>>set mypivotvar colord.red
mypivotvar is: colord.red
>>select $variable.mypivotvar on 0 from patients
Content Date/Time: 2019-02-21 00:53:44