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

hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

1660


what is enterprise guide? What is the use of it? : Sas programming

534


what are validation tools that are used in sas? : Sas-administrator

591


Name some categories in sas 9? : sas-grid-administration

555


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

654






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.

1695


Describe the ways in which you can create macro variables? : sas-macro

574


What are common programming errors committed in sas

671


what has been your most common programming mistake? : Sas programming

564


What are the different operating system platforms in which we can use sas? : sas-grid-administration

589


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

598


Difference between nodup and nodupkey options?

631


explain the proc in sas? : Sas-administrator

622


What are the default statistics that proc means produce?

602


Mention the validation tools used in SAS?

654