TRANS Statement (GPL)

Syntax

TRANS: <variable name> = <function>

<variable name>. A string that specifies a name for the variable that is created as a result of the transformation. Refer to GPL Syntax Rules for information about which characters you can use in the name.

<function>. A valid function.

Description

Defines a new variable whose value is the result of a data transformation function.

Examples

Figure 1. Example: Creating a transformation variable from other variables
TRANS: saldiff = eval(((salary-salbegin)/salary)*100)
Figure 2. Example: Creating an index variable
TRANS: casenum = index()