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


Please Help Members By Posting Answers For Below Questions

Why and when do you use proc sql?

758


What do the SAS log messages "numeric values have been converted to character" mean?

888


What is the good sas programming practices for processing large data sets?

626


How do you delete duplicate observations in sas?

573


what is sas data set?

667






what are validation tools that are used in sas? : Sas-administrator

591


What is the difference between proportion and average?

2755


why is sas data integration studio important? : Sas-di

559


Mention how to limit decimal places for the variable using proc means?

641


What is the difference between nodupkey and nodup options?

591


Compare sas with other data analytics tools.

579


what is sas database server? : Sas-di

613


how do you want missing values handled? : Sas programming

532


What are the data types that sas contain?

652


do you prefer proc report or proc tabulate? Why? : Sas programming

572