Apparent symbolic reference not resolved?

Accepted Solution Solved
Reply
Super Contributor
Posts: 309
Accepted Solution

Apparent symbolic reference not resolved?

Hello:

I got an error message while running macro.  Please help.  Thanks.

 

%macro rename(oldprefix, newprefix, num);

data want1;

set test;

%let k=1;

%do %while(&k <= &num);

rename &oldprefix.&k = &newprefix.&k;

%let k = %eval(&k + 1);

%end;

run;

%mend rename;

 

%rename(nad_dx,bd_dx,%cmpres(&cnt1.));

 

 

WARNING: Apparent symbolic reference CNT1 not resolved.

 


Accepted Solutions
Solution
‎06-15-2017 12:10 PM
Super User
Super User
Posts: 7,682

Re: Apparent symbolic reference not resolved?

Nowhere in that code is the macro variable CNT1 defined.

View solution in original post


All Replies
Solution
‎06-15-2017 12:10 PM
Super User
Super User
Posts: 7,682

Re: Apparent symbolic reference not resolved?

Nowhere in that code is the macro variable CNT1 defined.

Super Contributor
Posts: 309

Re: Apparent symbolic reference not resolved?

I know where went wrong now, thanks!

☑ This topic is solved.

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

Discussion stats
  • 2 replies
  • 415 views
  • 1 like
  • 2 in conversation