Perhaps a macro variable with multiple variables as strings.
For example, I think it is below.
%let mbr=mbr1 mbr2 mbr3;
%let mbr=mbr:;
The macro variable (it's not a macro call, because those start with a percent sign) can contain anything that is valid code at this place. It must contain a list of variable names (because of the asterisk), but it could also contain a $ sign (or VARCHAR) to specify a character array, and it could also contain a list of initial values.
If you want to know what is actually used, add a
%put &mbr.;
statement right before the ARRAY statement.
To see what may appear in the macro variable, study the documentation of the ARRAY Statement.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.