BEGIN EXPR-END EXPR
BEGIN EXPR-END EXPR
is available in the Statistics Base Edition.
BEGIN EXPR
indicates the beginning of a block of statements that define a set of
expressions for one or more variables. The END EXPR
command terminates the block
and writes an XML file that contains the specifications for the expressions.
BEGIN EXPR
/OUTFILE PREPXML='filespec'
variable definition statements
COMPUTE statements
END EXPR
This command reads the active dataset and causes execution of any pending commands. See the topic Command Order for more information.
Syntax for a BEGIN EXPR
block can be generated from the Simulation Builder dialog. It can also
be generated from the Temporal Causal Model Scenarios dialog.
Release History
Release 21.0
- Command block introduced as
SIMPREP BEGIN-SIMPREP END
.
Release 23.0
SIMPREP BEGIN-SIMPREP END
deprecated. Command block renamed toBEGIN EXPR-END EXPR
.
Example for SIMPLAN
BEGIN EXPR
/OUTFILE PREPXML='/models/mymodel.xml'.
NUMERIC price volume fixed unit_cost_materials unit_cost_labor.
COMPUTE revenue = price*volume.
COMPUTE expenses = fixed + volume*(unit_cost_materials + unit_cost_labor).
COMPUTE profit = revenue - expenses.
END EXPR.
Example for TCM ANALYSIS
BEGIN EXPR
/OUTFILE PREPXML='/scenarios/myscenarios.xml'.
COMPUTE advertising = 1.2*advertising.
END EXPR.