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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / poojavaibhav
Deepak please explain the word functionality in detail.
But if i have to answer above question then i think if you have var that have same name in different dataset and you want to use them both then rename one of the variable and apply condition..
thanks.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / alok karan
Data a1;
input y age;
Data b1;
input x age;
Data c;
set a1 b1(drop=age);
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kush
proc sql;
select Variable_name
from Variable_name.DataSet_name;
run;
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / nbohr02
Use a two level name.
Data a1;
input A $20 @50 age;
Data b1;
input x b age;
Data c
If a1.age = b1.age;
| Is This Answer Correct ? | 1 Yes | 9 No |
what is sas data set?
What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);?
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set.
Explain what is SAS informats?
Explain what is the use of proc gplot?
Which is the best training institute for SAS in hyderabad.
112 Answers Stansys Software Solutions,
what versions of sas have you used (on which platforms)? : Sas programming
what is proc Index? and what is proc document?
how the sas basic syntax style described? : Sas-administrator
Explain the message 'Merge has one or more datasets with repeats of by variables'.
Explain the use of proc print and proc contents?
What is univariate n where it can be used n how...?