create macros---you have 365 number of data and you need to
merge it throw the macros,,,,,,
data file1;
input a @@;
cards;
1 2 3 4
;
run;
data file2;
input a @@;
cards;
5 6 7 8
;
run;
data file3;
input a @@;
cards;
9 10 11 12
;
run;data file4;
input a @@;
cards;
13 14 15 16
;
run;
Answer Posted / singh.naveen409
%macros mydata(my,n);
data www;
set
%do i=1 %to &n;
&my&i
end;
;
run;
%mend;
%mydata(file,4);
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
what is star schema? : Sas-di
Mention few capabilities of sas framework.
Explain the use of proc gplot? : sas-grid-administration
Have you ever used the SAS Debugger?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
how will you location sas platform applications available from web browser? : Sas-bi
If you could design your ideal job, what would it look like?
How you can read the variables that you need?
What are the table names in oracle database...?
what type of graphs we will create(for 2+years candidates)?
what are the types of interactive display types? : Sas-bi
how does sas handle missing values in formats? : Sas programming
what is metadata? : Sas-bi
Name any two sas spawners? : sas-grid-administration
I have a dataset concat having a variable a b & c. How to rename a b to e & f?