SAVE WORKSPACE command

Creates and saves a workspace.

Syntax

SAVE WORKSPACE workspace_name {field_name <...n>}

Parameters

Name Description

workspace_name

The name of the workspace to create and add to the current Analytics project.

field_name <...n>

The name of the field to add to the workspace. You can include multiple field names separated by spaces.

Example

Activating a workspace

You create a workspace called Inventory_margin with two computed fields from the Metaphor_Inventory_2002 table. Then you activate the workspace so that the fields are available in the Inventory table:

OPEN Metaphor_Inventory_2002
SAVE WORKSPACE Inventory_margin Gross_unit_margin Percent_unit_margin
OPEN Inventory
ACTIVATE WORKSPACE Inventory_margin OK

Remarks

Field names used to create computed fields must match

The names of any fields used in expressions that create a computed field that is saved in a workspace must match the names of the fields in the table that uses the workspace.

For example, if a workspace contains the computed field Value=Sale_price*Quantity, the active table must also contain fields called Sale_price and Quantity.