You can use an expression in various commands and phrases. An expression may not exceed 40 lines and must end with a semicolon, except in WHERE and WHEN phrases, in which the semicolon is optional.
The commands that support expressions, and their basic syntax, are summarized here. For complete syntax with an explanation, see the applicable documentation.
You can use an expression when you:
DEFINE FILE filename fieldname [/format] = expression; . . . END
DEFINE fieldname [/format] = expression;$
COMPUTE fieldname [/format] = expression;
{WHERE|IF} logical_expression[;] WHEN logical_expression[;]
-IF logical_expression [THEN] GOTO label1 [ELSE GOTO label2];
-SET &name = expression;
RECAP name [(n)] [/format] = expression;