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
Explain what is the use of proc gplot?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
What are the different versions of sas that you have used until now? : sas-grid-administration
What are the difference between ceil and floor functions in sas?
Where do you use proc means over proc freq?
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?
Explain the main difference between the sas procedures and functions? : Sas-administrator
what is ae onset date n what is RDS
What will calendar procedure do?
How would you define the end of a macro?
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
what is hash files in sas and why we are using this one in sas?
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
What is the use of %include statement?
What is PROC in SAS?