05-21-2012 06:58 AM
I have made one link format and applied it to one variable. Now i want to pass this variable in macro.
The value of variable is as follows:
The value of Path_name is :
I want to pass it in macro variable. I tried %str and %nrstr but still it is giving error. Any solution??
05-21-2012 07:15 AM
I believe %SUPERQ will mask the & and " allowing you to pass the string through without attempting to resolve the & reference. To use %Superquote the path will be stored in a macro variable then referenced.
call symput('mv2','%macro abc;');
run; %let testmv1=%superq(mv1);
%put Macro variable TESTMV1 is &testmv1;
%put Macro variable TESTMV2 is &testmv2;
Macro variable TESTMV1 is Smith&Jones
Macro variable TESTMV2 is %macro abc;
05-21-2012 10:46 PM
In your path_name, there are several unmatched single or double quote , you should put % before it to avoid error message.