BookmarkSubscribeRSS Feed
GN0001
Barite | Level 11
Hello team,
I have an array with this structure:
array mbrreq {*} &mbr. ;
What is &mbr.?
Is it a macro call? Or a macro variable which takes in the elements of this array?
Regards,
Blue&Blue
Blue Blue
2 REPLIES 2
japelin
Rhodochrosite | Level 12

Perhaps a macro variable with multiple variables as strings.

 

For example, I think it is below.

%let mbr=mbr1 mbr2 mbr3;
%let mbr=mbr:;

 

Kurt_Bremser
Super User

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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 294 views
  • 2 likes
  • 3 in conversation