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
What is maximum storage capability of SAS?
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)?
what is broad cast agent? : Sas-bi
how does sas handle missing values in procs? : Sas programming
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
What can be the size of largest dataset in SAS?
How do you add a number to a macro variable? : sas-macro
what is slowly changing dimension? : Sas-di
What is data _null_?
How to limit decimal places for variable using proc means?
what is hash files in sas and why we are using this one in sas?
explain the main difference between the nodup and nodupkey options? : Sas-administrator
what is data governance? : Sas-di
what is sas database server? : Sas-di
what are the component of range? : Sas-bi