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 / ramesh

First calculate age in B datase


data age;
set b;
age=int(intck('day',bday,today())/365.25);
run;

sort both datasets by the age key variable and Use the
merge statement to combine the both datasets

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what versions of sas have you used (on which platforms)? : Sas programming

1065


What are the functions used for character handling?

1246


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2577


what are sas/access and sas/connect? : Sas programming

987


what is change analysis in sas di ? : Sas-di

1055


Mention sas system options to debug sas macros.

1164


What is a method to debug and test your SAS program?

1353


what is data access? : Sas-di

1133


What are the different types of sas functions?

1267


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

2219


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

1036


What is the use of %include statement?

1051


What is the basic syntax of a sas program?

1189


How would you identify a macro variable?

1084


I have a dataset concat having variable a b & c. How to rename a b to e & f?

1014