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
Difference between sum function and using “+” operator?
Can you explain the process of calendar?
Difference between informat and format?
Hi, If anyone has base SAS certification dumps, please share.
What are all the problems you faced while validating tables and reports?
For what purposes have you used sas macros? : sas-macro
What does PROC print, and PROC contents do?
Give some examples where proc report’s defaults are same as proc print’s defaults?
How do you specify the number of iterations and specific condition within a single do loop?
what is data integration? : Sas-di
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
Explain the use of proc print and proc contents?
What is the difference between order and group variable in proc report?
what are the best practices to process the large data sets in sas programming? : Sas-administrator
Name few SAS functions?