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
How will you generate test data with no input data?
Explain what Proc glm does?
what is the difference between infile and input? : Sas-administrator
Which function is used to count the number of intervals between two sas dates?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
Explain the difference between using drop = data set option in set and data statement?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
How can sas program be validated?
how to read the variables in sas? : Sas-administrator
which features do you use to check the data validations and errors? : Sas-administrator
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
What is Linear Regression?
Explain proc univariate?
How to test the debugging in sas?
What is the good sas programming practices for processing large data sets?