Overview (TMS END command)
The TMS END command is used to indicate the end of a block of transformations
to be exported to a file in PMML format--specifically, PMML 3.1 with IBM® SPSS® Statistics extensions. The exported transformations
can be merged (using TMS MERGE) with a PMML model file in order to include any transformations
of the raw data required to create the variables used in the model.
The merged PMML file can be used to score data with scoring functions. (For more information on scoring functions, see Scoring expressions.) When you score data with a model
file containing transformations, the transformations will be applied
to the data before scoring. The transformations are carried out as
part of the internal scoring process and have no effect on the active
dataset. The TMS BEGIN command is used to indicate the beginning of
the block.
Basic Specification
The basic specification for TMS END is the command name. For examples of TMS BEGIN-TMS END blocks, see the TMS BEGIN command.
Syntax Rules
- An error occurs if the
PRINTsubcommand is specified more than once. - An error occurs if the
RESULTSkeyword is specified more than once. - Equal signs (=) shown in the syntax chart are required.
- Subcommand names and keywords must be spelled in full.
Operations
-
TMS ENDwill generate a warning if there is noTMS BEGINcommand in effect. This condition occurs in the obvious case that there is no priorTMS BEGINcommand, but will also occur if there is aTMS BEGINcommand followed by a command that implicitly ends aTMSblock--for instance, any statistical procedure or theEXECUTEcommand--followed byTMS END. -
TMS ENDcauses the destination file to be written, unless the associatedTMSblock ended implicitly (see previous bullet), thus causing the file to be written before execution ofTMS END. For more information, see the Examples for theTMS BEGINcommand. -
TMS ENDdoes not cause transformations in the associatedTMSblock to be executed. In normal fashion, they are pending and will be executed with the next command that reads the active dataset.