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
what is the function of catx syntax? : Sas-administrator
what is the difference between nodup and nodupkey options? : Sas programming
what is sas data set?
How to limit decimal places for variable using proc means?
what is PhaseIII, ODS, TLG, Macro and Proc in SAS
how do the in= variables improve the capability of a merge? : Sas programming
What system options would you use to help debug a macro? : sas-macro
explain the use of % includes a statement in sas? : Sas-administrator
what are the categories that sas informats are used to the place the data? : Sas-administrator
for what purpose would you use the retain statement? : Sas programming
In sas, what are the areas that you are most interested in? : sas-grid-administration
where are dashboard components are created and maintained? : Sas-bi
Tell e how how dealt with..
how would you create multiple observations from a single observation? : Sas programming
what do the mod and int function do? What do the pad and dim functions do? : Sas programming