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 / singh.naveen409

%macros mydata(my,n);
data www;
set
%do i=1 %to &n;
&my&i
end;
;
run;
%mend;
%mydata(file,4);

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long can a macro variable be? A token? : sas-macro

727


What are the advantages of using sas?

617


How to sort in descending order?

809


I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.

1706


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

667






in the flow of data step processing, what is the first action in a typical data step? : Sas programming

657


what are _numeric_ and _character_ and what do they do? : Sas programming

689


How to include or exclude specific variables in a data set?

653


Explain what Proc glm does?

645


For clinical entire study how many tables will create approx?

1530


What are the features of base sas system?

621


what is the function of catx syntax? : Sas-administrator

660


What are the automatic variables for macro? : sas-macro

681


why is sas data integration studio important? : Sas-di

569


How would you identify a macro variable?

659