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
Approximately what date is represented by the SAS date value of 730?
How to include or exclude specific variables in a data set?
What are the data types does SAS contain?
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
what is sas business intelligence? : Sas-bi
Describe the ways in which you can create macro variables? : sas-macro
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
How would you define the end of a macro?
What is the difference between the proc sql and data step?
What is the role of unrestrictive users? : sas-grid-administration
what is program data vector? : Sas-administrator
What is maximum number of rows and cols can be handled in SAS?
How do you use the do loop if you don’t know how many times you should execute the do loop?
What are the differences between sum function and using “+” operator?
Mention few capabilities of sas framework.