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

Are you involved in writing the inferential analysis plan? Tables specfications?

2507


What is the use of divide function?

1014


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

2319


I need level 2 to 5 sas using companies in india

2329


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

967


What does the trace option do?

1056


Why double trailing @@ is used in input statement?

1151


explain the main difference between the nodup and nodupkey options? : Sas-administrator

1109


how to debug and test the sas program? : Sas-administrator

976


What is by-group processing?

947


How necessary is it to be creative in your work?

2425


What are the difference between the sas data step and sas procs?

1104


Give an example where SAS fails to convert character value to numeric value automatically?

1028


what is sas metadata server? : Sas-di

1051


How do you define proc in sas? : sas-grid-administration

1032