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 / 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 |
what is the difference between proc means and proc tabulate?
What is Tabulate.?Why we use it.? Which type of output we get from Tabulate.?
Explain the use of proc print and proc contents?
name few built in sas transformation in DI studio ?
What do you feel about hardcoding?
PROC SQL always ends with QUIT statement.Why cant you use RUN in PROQ SQL ?
What is difference between (a-z) and (a--z)
What are _numeric_ and _character_ and what do they do?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
What other SAS features do you use for error trapping and data validation?
Give e an example of..
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro