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 |
How would you remove a format that has been permanently associated with a variable? ________________
What is the general format of function in sas? : sas-grid-administration
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
how do you read binary data in sas?
What is the one statement to set the criteria of data that can be coded in any step?
wat has been most common programming mistake?
How do i read multiple spaces in datasets?
what is the difference between SET and MERGE?
which features do you use to check the data validations and errors? : Sas-administrator
how to debug and test the sas program? : Sas-administrator
How can you create a macro variable with in data step? : sas-macro