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 / ashutosh
%macro mydata(my,n);
data XXX;
merge
%do i=1 %to &n;
&my&i
%end;
;
by a;
run;
%mend;
%mydata(file,4);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Give some examples where proc report’s defaults are different than proc print’s defaults?
Explain what is SAS informats?
How to create an external dataset with sas code?
How does the internal authentication work in sas? : sas-grid-administration
How would you define the end of a macro? : sas-macro
How does proc sql work?
What is the basic structure of a sas program?
I need level 2 to 5 sas using companies in india
what is sas metadata repository? : Sas-bi
What are the uses of sas?
What is the basic structure of the SAS base program?
Can you execute macro within another macro? : sas-macro
what is the use of sas management console? : Sas-di
what is business intelligence? : Sas-bi
Mention how to limit decimal places for the variable using proc means?