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

what is ae onset date n what is RDS

2461


State the difference between INFORMAT and FORMAT ?

1039


List down the reasons for choosing sas over other data analytics tools.

1213


Difference between sum function and using “+” operator?

1084


Mention common programming errors committed in sas ?

1058


What would you change about your job?

2332


What are the statements in proc sql?

1043


how sas deals with business intelligence? : Sas-bi

998


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

960


what techniques and/or procs do you use for tables? : Sas programming

994


How do you connect the desktop application to metadata server? : sas-grid-administration

1029


Name validation tools used in SAS

1102


What’s the difference between var b1 – b3 and var b1 — b3?

1278


If you could design your ideal job, what would it look like?

2870


What are the new features included in the new version of SAS Programming Language?

1150