The following example
shows how to specify two temporary numeric variables named Difference
and Ratio:
proc imstat;
table lasrlib.prdsale (tempnames=(difference ratio));
run;
fetch actual -- month predict ratio / tempnames=(difference ratio)
tempexpress="difference = actual - predict; ratio = actual / predict";
run;
By default, temporary
variables that are specified through the TEMPNAMES= option are of
numeric type. To define a temporary character variable, follow the
variable name with a dollar sign ($) and an optional length.
The following example
shows the variable Cust_Name as a character variable with a length
of 20:
table lasrlib.accounts(tempnames=(total_deposits
cust_name $ 20
deposit_count
branch_count));