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


Please Help Members By Posting Answers For Below Questions

To what type of programms have you used scratch macros?

2331


What is the difference between the proc sql and data step?

868


what is the use of sas management console? : Sas-di

804


describe about physical data integration? : Sas-di

757


Tell me more about the parameters in macro? : sas-macro

805


What are the 3 components in sas programming?

924


what is sas database server? : Sas-di

805


what is change analysis in sas di ? : Sas-di

782


what is data access? : Sas-di

851


What is the difference between proportion and average?

2992


Mention the difference between ceil and floor functions in sas?

892


explain what is data set in sas? : Sas-administrator

721


how does sas handle missing values in assignment statements? : Sas programming

776


what is slowly changing dimension? : Sas-di

853


how do you test for missing values? : Sas programming

778