SET and SET_GLOBAL GLOBAL Commands for Global Variables

There are two Fabric commands that can override a global:

  • set_global global, overrides the value at a cluster level whereby both the original and new values are saved in Cassandra.
  • set, overrides the value at a session level.

Both commands can override a global value only if the global is not defined as Final.

How Do I Use Set_Global Global Command?

This command overrides a global value on the entire cluster, impacting all Fabric sessions, including open ones.\ set_global global '.[=]';

The set_global global command sets the value of the global indicated by to the value provided by the . The PARAM_NAME must be defined as a Global Variable in Fabric.

set_global global

'<LUT NAME>.<PARAM_NAME> [=<PARAM_VALUE>]';

Set the value of the Global indicated by <PARAM_NAME> to the value provided by the <PARAM_VALUE>. Specifying <LUT NAME> is supported in the command even when the Global is defined under Shared Objects. If the <LUT NAME> is provided, the Global value is overridden only for the given <LUT NAME>.

Example:

set_global global ‘CRM.SOURCE_PRODUCT_VERSION=100’;

set_global global

'*.<PARAM_NAME>[=<PARAM_VALUE>] ‘;

Set the value of the Global indicated by <PARAM_NAME> to the value provided by the <PARAM_VALUE> - for all LUT.

Example:

set_global global ‘*.SOURCE_PRODUCT_VERSION=100’;

set_global global

'<LUT NAME>.<PARAM_NAME>=’ ;

Set the Global to a NULL value.

Example:

set_global global ‘CRM.SOURCE_PRODUCT_VERSION=’;

set_global global

'<LUT NAME>.<PARAM_NAME> ‘;

Set the Global to its original value when the <PARAM_VALUE> is not provided. The original is the value of the Global prior to the override.

Example:

set_global global ‘CRM.SOURCE_PRODUCT_VERSION’;

How Do I Use the Set Command?

The set command can be used to set a variable per session so that the variable is available for all Fabric objects in the same session. This command can be used either to set a new ad-hoc variable, or to override an existing global for the Fabric session if the global is not Final.

set <PARAM_NAME> =<PARAM_VALUE>; or

set <PARAM_NAME>  <PARAM_VALUE>;

Set the value of the variable indicated by <PARAM_NAME> to the value provided by the <PARAM_VALUE>.

Example:

set SOURCE_PRODUCT_VERSION=100; or

set SOURCE_PRODUCT_VERSION 100;

set <PARAM_NAME> =’’;

Remove the variable from the session.

Example:

set SOURCE_PRODUCT_VERSION=’’;

set <PARAM_NAME>;

Get the value of <PARAM_NAME>.

Example:

set SOURCE_PRODUCT_VERSION;

Previous

SET and SET_GLOBAL GLOBAL Commands for Global Variables

There are two Fabric commands that can override a global:

  • set_global global, overrides the value at a cluster level whereby both the original and new values are saved in Cassandra.
  • set, overrides the value at a session level.

Both commands can override a global value only if the global is not defined as Final.

How Do I Use Set_Global Global Command?

This command overrides a global value on the entire cluster, impacting all Fabric sessions, including open ones.\ set_global global '.[=]';

The set_global global command sets the value of the global indicated by to the value provided by the . The PARAM_NAME must be defined as a Global Variable in Fabric.

set_global global

'<LUT NAME>.<PARAM_NAME> [=<PARAM_VALUE>]';

Set the value of the Global indicated by <PARAM_NAME> to the value provided by the <PARAM_VALUE>. Specifying <LUT NAME> is supported in the command even when the Global is defined under Shared Objects. If the <LUT NAME> is provided, the Global value is overridden only for the given <LUT NAME>.

Example:

set_global global ‘CRM.SOURCE_PRODUCT_VERSION=100’;

set_global global

'*.<PARAM_NAME>[=<PARAM_VALUE>] ‘;

Set the value of the Global indicated by <PARAM_NAME> to the value provided by the <PARAM_VALUE> - for all LUT.

Example:

set_global global ‘*.SOURCE_PRODUCT_VERSION=100’;

set_global global

'<LUT NAME>.<PARAM_NAME>=’ ;

Set the Global to a NULL value.

Example:

set_global global ‘CRM.SOURCE_PRODUCT_VERSION=’;

set_global global

'<LUT NAME>.<PARAM_NAME> ‘;

Set the Global to its original value when the <PARAM_VALUE> is not provided. The original is the value of the Global prior to the override.

Example:

set_global global ‘CRM.SOURCE_PRODUCT_VERSION’;

How Do I Use the Set Command?

The set command can be used to set a variable per session so that the variable is available for all Fabric objects in the same session. This command can be used either to set a new ad-hoc variable, or to override an existing global for the Fabric session if the global is not Final.

set <PARAM_NAME> =<PARAM_VALUE>; or

set <PARAM_NAME>  <PARAM_VALUE>;

Set the value of the variable indicated by <PARAM_NAME> to the value provided by the <PARAM_VALUE>.

Example:

set SOURCE_PRODUCT_VERSION=100; or

set SOURCE_PRODUCT_VERSION 100;

set <PARAM_NAME> =’’;

Remove the variable from the session.

Example:

set SOURCE_PRODUCT_VERSION=’’;

set <PARAM_NAME>;

Get the value of <PARAM_NAME>.

Example:

set SOURCE_PRODUCT_VERSION;

Previous