Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Suppose there is a SAS dataset with following values -
Parent Child
A B
B C
D E
F G
G H
H I
and so on…..
This goes onto 1000s of observations/rows.
Now how do we identify from this dataset Grandparents and
Grandchildrens ?

Answer Posted / jayant

data tet;
input par $ child $;
datalines;
A B
B C
C D
E F
;
run;




data tet1;
set tet;
grand=lag(par);
drop par;
run;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the RUN statement do?

1351


How to test the debugging in sas?

1245


What sas features do you use to check errors and data validation?

1270


What is the role of administrative users? : sas-grid-administration

1141


how to generate the test data in sas without input data? : Sas-administrator

1180


What are the data types in sas?

1118


where are dashboard components are created and maintained? : Sas-bi

1061


What makes sas stand out to be the best over other data analytics tools?

1119


What do the put and input function do?

1117


what is the difference between unique key and primary key? : Sas-di

1180


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3636


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

2433


how does sas handle missing values in formats? : Sas programming

1195


how to change the execute of macro

2386


What is the use of %include statement?

1108