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

Which function is used to count the number of intervals between two sas dates?

1133


What is the difference between INPUT and INFILE ?

1327


Give e an example of..

2346


what are the scrubbing procedures in sas? : Sas programming

1286


Mention common programming errors committed in sas ?

1131


Explain data step in SAS

1105


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

1093


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1543


What is SAS?

1059


What are the statements that are executed only?

1153


What are the implications?

1718


what is the use of proc contents and proc print in sas? : Sas-administrator

1065


what is the basic structure sas administrator? : Sas-administrator

1006


What are the different servers in sas? : sas-grid-administration

1059


How does the internal authentication work in sas? : sas-grid-administration

1124