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 are pdv and it functions?

596


Differentiate between format and informat? : sas-grid-administration

575


describe how to adjust the performance of data integrator? : Sas-di

561


what are validation tools that are used in sas? : Sas-administrator

590


Describe 5 ways to do a “table lookup” in SAS?

697






How do dates work in sas?

639


What is maximum storage capability of SAS?

904


Mention sas system options to debug sas macros.

659


what is ae onset date n what is RDS

1931


what is intially documentation in sas?

4328


What is the difference between SAS functions and procedures?

653


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

604


explain about various caches available in data integrator? : Sas-di

576


Explain proc sort?

662


what is the difference between floor and ceil functions in sas? : Sas-administrator

698