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

how would you determine the number of missing or nonmissing values in computations? : Sas programming

1201


What is by-group processing?

1056


which features do you use to check the data validations and errors? : Sas-administrator

1092


What is the maximum and minimum length of macro variable

1338


What is PROC in SAS?

1102


AE datasets names? how many types?

2559


How can sas program be validated?

1072


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

1171


What are the difference between the sas data step and sas procs?

1250


what are 5 ways to perform a table lookup in sas? : Sas-administrator

1296


it will become easy if uuu provide website linkssss and list of consultanciessssss

2024


: and & modifiers.

1447


Tell me about % include and % eval? : sas-macro

1190


how to read the variables in sas? : Sas-administrator

1070


describe the interaction table in sas di? : Sas-di

1073