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


Please Help Members By Posting Answers For Below Questions

What is PROC in SAS?

604


What is proc sort?

716


Explain how merging helps to combine data sets.

612


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1224


What are the new features included in the new version of SAS Programming Language?

733






how do you debug and test your sas programs? : Sas programming

558


what is the primary data source for the wrs? : Sas-bi

654


What are the different versions of sas that you have used until now? : sas-grid-administration

730


What are the table names in oracle database...?

2250


Name few SAS functions?

668


why a stop statement is needed for the point= option on a set statement?

623


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

798


What are the ways in which macro variables can be created in sas programming?

568


How do you delete duplicate observations in sas?

573


how does sas handle missing values in sort order? : Sas programming

532