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 are the ways in which macro variables can be created in sas programming?

1061


What is the role of administrative users? : sas-grid-administration

1046


What does proc print, and proc contents are used for?

1090


What is the command used to find missing values?

1064


why is sas considered self-documenting? : Sas programming

1106


Describe the ways in which you can create a macro variable?

1058


Give e an example of..

2304


What is Linear Regression?

1130


What are the implications?

1668


Explain why double trailing @@ is used in input statement?

1028


Are you involved in writing the inferential analysis plan? Tables specfications?

2198


What is the difference between %local and %global? : sas-macro

1148


how do you test for missing values? : Sas programming

1025


If a variable contains only numbers, can it be a character data type?

1048


how can you create zero observation dataset? : Sas programming

1105