vexpand | Expand abbreviated variable lists | vexpand |
The VEXPAND macro expands a variables list of the forms: X1-X10, VARA--VARB, _NUMERIC_, _CHARACTER_ and returns the list of individual variable names. This is useful for procedures and macros that can only handle a blank-separated list of variable names.
The VEXPAND macro is called with positional parameters. For example
%let var = %vexpand(dataset, &var);
This macro can only be used at DATA/PROC step boundaries.