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 / vijay
%MACRO mer;
DATA file_all_365;
MERGE
%DO i=1 %TO 365;
file&i
%END;;
RUN;
%MEND;
%MER;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What does proc print, and proc contents are used for?
What is maximum number of rows and cols can be handled in SAS?
What would be the value of month at the end of data step execution and how many observations would be there?
what is the difference between nodup and nodupkey options? : Sas programming
I need level 2 to 5 sas using companies in india
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
what is business intelligence? : Sas-bi
What is a method to debug and test your SAS program?
For clinical entire study how many tables will create approx?
How to specify variables to be processed by the freq procedure?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
What is by-group processing?
is data integration and etl programming is same? : Sas-di
explain what is factor analysis? : Sas-administrator
Explain the difference between informat and format with an example.