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 a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
What is proc sort?
how sas deals with business intelligence? : Sas-bi
What is the use of stop statement?
how to do user inputs and command line arguments in sas?
This entry was posted in General. Bookmark the permalink. Post a comment or leave
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
what is business intelligence? : Sas-bi
Explain the use of proc print and proc contents?
it will become easy if uuu provide website linkssss and list of consultanciessssss
What is the difference between using drop = data set option in data statement and set statement?
Explain input and put function?
What are the difference between the sas data step and sas procs?
what are the types of interactive display types? : Sas-bi
what is sas application server? : Sas-di