TEMPNAMES= Data Set Option

requests that the name space for the table on the SAS session is extended with the specified names.

Syntax

TEMPNAMES=(variable-name1 <, variable-name2 ...>)

Details

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));