KLaz,
I had some time to work on this and I added the following statement:
%global nbr_&num.;
The macro is working now! Here's the full code. Thanks for your help. -Javi
%macro javi(num);
%global nbr_&num.;
proc sql noprint;
select "'"||trim(a.vkont)||"'"
into :nbr_&num. separated by ' '...
I'm not understanding this. I run the macro definition and then use:
%javi(num=7);
Isn't this calling the macro? When I run %javi(num=7) it should execute the sql code and macro definition and output the new macro &nbr_7. Proof of that is the output that shows the content of my new macro...
Hello!
I am running into a problem with a macro definition. When I run the sql code with a %let statement it works fine:
options macrogen mlogic symbolgen mprint mfile;
%let num=6;
proc sql ;
select "'"||trim(a.vkont)||"'"
into :nbr_&num. separated by ' '
from armdb2.ext_WO_list2 a
where...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.