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
How long can a macro variable be? A token? : sas-macro
What are the advantages of using sas?
How to sort in descending order?
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.
what is the primary data source for the wrs? : Sas-bi
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
what are _numeric_ and _character_ and what do they do? : Sas programming
How to include or exclude specific variables in a data set?
Explain what Proc glm does?
For clinical entire study how many tables will create approx?
What are the features of base sas system?
what is the function of catx syntax? : Sas-administrator
What are the automatic variables for macro? : sas-macro
why is sas data integration studio important? : Sas-di
How would you identify a macro variable?