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 do dates work in SAS data?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
what is the Population you used in your project, is it ITT or PP?
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 proc sort?
Name types of category in which SAS Informats are placed?
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro
explain about data integrator metadata reports? : Sas-di
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
what are the types of interactive display types? : Sas-bi
What are the implications?
What do the mod and int function do? : Sas programming
How we can create SAS USER DEFINED CODE?
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming
Briefly explain input and put function?