I have 2 data sets A & B. Both have a variable called Age in
them, each of them specifying a different functionality.

In my program I use bot these data sets. How do I specify
which Age variable I want to use?

Answer Posted / presha badiyani

use rename option

Data a1;
input A $20 @50 age;

Data b1;
input x b age;

Data c;
set a1 b1(rename age=b1_age);
If age = b1_age;
run;

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is maximum storage capability of SAS?

904


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1205


what is broad cast agent? : Sas-bi

593


how does sas handle missing values in procs? : Sas programming

634


what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?

1679






What can be the size of largest dataset in SAS?

713


How do you add a number to a macro variable? : sas-macro

545


what is slowly changing dimension? : Sas-di

620


What is data _null_?

693


How to limit decimal places for variable using proc means?

587


what is hash files in sas and why we are using this one in sas?

1726


explain the main difference between the nodup and nodupkey options? : Sas-administrator

686


what is data governance? : Sas-di

621


what is sas database server? : Sas-di

611


what are the component of range? : Sas-bi

616