CALCULATE
Evaluates a debugger expression and displays the result.
Category: | Manipulating DATA Step Variables |
Syntax
Required Argument
expression
specifies any debugger expression.
Restriction | Debugger expressions cannot contain functions. |
Details
Example
-
Add 1.1, 1.2, 3.4 and multiply the result by 0.5:
calc (1.1+1.2+3.4)*0.5
-
Calculate the sum of STARTAGE and DURATION:
calc startage+duration
-
Calculate the values of the variable SALE minus the variable DOWNPAY and then multiply the result by the value of the variable RATE. Divide ...
Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.