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
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
How you can read the variables that you need?
What are types of transport files?
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
Explain the purpose of substr functions in sas programming.
Describe the function and utility of the most difficult SAS macro that you have written?
Which command is used to save logs in the external file?
What is the difference between INPUT and INFILE ?
What do the SAS log messages "numeric values have been converted to character" mean?
what is snowflake schema? : Sas-di
explain the use of % includes a statement in sas? : Sas-administrator
what is study design in while working with SAS? what are screening variables in SAS?
What is the difference between reading data from an external file and reading data from an existing data set?
To what type of programms have you used scratch macros?
Give some examples where proc report’s defaults are different than proc print’s defaults?