Tuesday, January 2, 2018

How to use whole ARRAY?

Generally we use ARRAY element (e.g. VARS[1]) just like normal variable in DATA step programming. However, I prefer to using whole array as it can combine the flexibility of array.
Below is listing (update in progress).

#1. ARRAY name only
DIM function
IN operator
FCMP function with VARARGS option (see SAS Sample 41754)

#2. ARRAY name with OF operator (e.g. OF VARS[*])
SUM / MIN / MAX / MEDIAN / MEAN ...
CALL MISSING
CALL SORTN / CALL SORTC
CAT function family (e.g. CAT/CATX/CATS).
...

No comments: