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

how to read the variables in sas? : Sas-administrator

547


how sas deals with business intelligence? : Sas-bi

579


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

548


how do you debug and test your sas programs? : Sas programming

558


what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

1915






explain about various caches available in data integrator? : Sas-di

576


Why double trailing @@ is used in input statement?

693


Explain substr function?

569


What are the special input delimiters used in SAS?

650


What function CATX syntax does?

686


Difference between sum function and using “+” operator?

596


what is snowflake schema? : Sas-di

688


What is substr function?

618


What are SAS/ACCESS and SAS/CONNECT?

626


What would you change about your job?

1920