1.we can execute a macro with in a macro,by using call
symput and symget can any one give me one example?
2.We can create the macro variables by using %let,%do,macro
parameters,INTO clause in proc sql and call symput, can
any one give me example to create macro variable with INTO
clause and call symput?
3.

Answer Posted / aravind9882

data x;
a=98;
b=45;
call symput('m',a);
run;
%put &m;


proc sql;
select b into :m2 from x;
quit;
%put &m2;

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

654


what are the categories that sas informats are used to the place the data? : Sas-administrator

621


what is operational data and operational system? : Sas-di

637


What are SAS/ACCESS and SAS/CONNECT?

636


What function CATX syntax does?

693






How to test the debugging in sas?

612


What are the different servers in sas? : sas-grid-administration

605


What are the five ways to do a table lookup in sas? : sas-grid-administration

601


Have you used macros? For what purpose you have used? : sas-macro

564


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

735


Explain the main difference between the sas procedures and functions? : Sas-administrator

542


why is sas considered self-documenting? : Sas programming

682


What is factor analysis?

664


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

637


Give some examples where proc report’s defaults are different than proc print’s defaults?

603