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 are some differences between proc summary and proc means? : Sas programming
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
What is the sas data set? : sas-grid-administration
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
What is the SAS data set?
how could you generate test data with no input data? : Sas programming
Difference between nodup and nodupkey options?
I have a dataset concat having a variable a b & c. How to rename a b to e & f?
Explain how you can debug and test your SAS program?
how does sas handle missing values in formats? : Sas programming
How to convert a numeric variable to a character variable?
name some data transformation used in sas di? : Sas-di
What are the applications primarily used by business analyst? : Sas-bi
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
Describe what are the different levels of administrative users in sas? : sas-grid-administration