DATA Step, Macro, Functions and more

difficult to resolve multiple macros

Accepted Solution Solved
Reply
Contributor
Posts: 33
Accepted Solution

difficult to resolve multiple macros

first, I need to resolve j ; then resolve &&CCp_reg&j.; and finally resolve CCp_&&CCp_reg&j.._xx.

For example,


%let j=3;

%let CCp_reg3=testy;

%let CCp_testy_xx=6;

how can i get 6 by resolving CCp_&&CCp_reg&j.._xx. ?

Thanks a ton in advance.

Sunny


Accepted Solutions
Solution
‎12-22-2014 07:40 PM
Super User
Posts: 17,768

Re: difficult to resolve multiple macros

When all else fails, keep adding & until it resolves :smileylaugh:

%put &&&&CCp_&&CCp_reg&j.._xx.;

View solution in original post


All Replies
Solution
‎12-22-2014 07:40 PM
Super User
Posts: 17,768

Re: difficult to resolve multiple macros

When all else fails, keep adding & until it resolves :smileylaugh:

%put &&&&CCp_&&CCp_reg&j.._xx.;

Contributor
Posts: 33

Re: difficult to resolve multiple macros

Many thanks Reeza! It works. and also thanks for the hint : keep adding &" :smileylove:

Happy holidays!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 195 views
  • 0 likes
  • 2 in conversation