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
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
what is enterprise guide? What is the use of it? : Sas programming
what are validation tools that are used in sas? : Sas-administrator
Name some categories in sas 9? : sas-grid-administration
what is the primary data source for the wrs? : Sas-bi
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.
Describe the ways in which you can create macro variables? : sas-macro
What are common programming errors committed in sas
what has been your most common programming mistake? : Sas programming
What are the different operating system platforms in which we can use sas? : sas-grid-administration
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
Difference between nodup and nodupkey options?
explain the proc in sas? : Sas-administrator
What are the default statistics that proc means produce?
Mention the validation tools used in SAS?