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...

We want to merge file A and B. File A has variable age,
file B provide birthdate. How to merge the data according
to age in file B

Answer Posted / alok karan

First calculate age in BB dataset:

data bbb;
set bb;
age=round(yrdif(birthdate,today(),'Actual'),1);
run;
proc sort data=bbb;
by age;
drop birthdate;
run;

Now merge both dataset by age variable:
data abc;
merge aa bbb;
by age;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of proc sql? : Sas programming

1042


Briefly explain input and put function?

1027


Which date function advances a date, time or datetime value by a given interval?

1077


Where do you use proc means over proc freq?

1051


What is PROC in SAS?

996


Explain translate function?

1127


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1719


What function CATX syntax does?

1164


Tell e how how dealt with..

2168


For what purpose would you use the RETAIN statement?

1464


how will you location sas platform applications available from web browser? : Sas-bi

1011


name some data transformation used in sas di? : Sas-di

911


what is sas metadata server? : Sas-di

1046


How would you define the end of a macro? : sas-macro

1031


Explain what is data step?

1129