In this section: Reference: |
This section describes the types of expressions you can write in Maintain:
COMPUTE Bonus = Curr_Sal * 0.05 ;
A numeric expression returns a numeric value. For details, see Writing Numeric Expressions.
COMPUTE Delivery/MDY = ShipDate + 5 ;
There are two types of date and time expressions:
COMPUTE First_Init/A1 = MASK (First_Name, '9$$$$$$$$$') ;
An alphanumeric expression returnsan alphanumeric value. For details, see Writing Alphanumeric Expressions.
When you use an expression to assign a value to a variable, make sure that you give the variable a format that is consistent with the value returned by the expression. For example, if you use an alphanumeric expression to concatenate a first name and last name and assign it to the variable FullName, make sure you define the variable as alphanumeric.
Information Builders |