Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / venkat

%macro merging(f,x);
%do i=1 %to %eval(&x-1);
data &f&n;
merge &f&n &f%eval(&i+1);
by a;
run;
%end;
%mend merging;
%merging(file,4);

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you ever used the SAS Debugger?

1705


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1210


What is the purpose of trailing @ and @@? How do you use them?

1003


What do the put and input function do?

1019


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

2067


Mention how to limit decimal places for the variable using proc means?

1083


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

2705


What is a method to debug and test your SAS program?

1295


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

1047


How to create an external dataset with sas code?

1091


Explain substr function?

1046


how many display types available in sas bi dashboard? : Sas-bi

1040


What is the use of the %include statement?

1108


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

1005


How to limit decimal places for variable using proc means?

1061