The following example
shows how to specify a temporary numeric array with variables named
Temp1–Temp4:
proc imstat;
table lasrlib.sales (array=(temp,4));
The variables in the
temporary numeric array do not exist in the in-memory table, but the
SAS session assumes that they are there. Using temporary names this
way can be useful when your SAS program refers to calculated temporary
columns that do not exist when table is opened for input. For example,
this option can enable you to retrieve the results for calculated
columns with the FETCH statement of the IMSTAT procedure.
This option is used
for numeric variables only. If you want to refer to specific temporary
variable names, you can also use the TEMPNAMES= option. The TEMPNAMES=
option enables you to specify the variable type, and in the case of
character variables, the length of the variable.