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 / sumit

Suppose the above dataset name is work.old.
Data new;
Set work.old (first obs = 2);
Run;

Proc sql;
Select Old.parent as grandfather, Old. Child as father,
new.child as grandchild from work.Old as old, work.new as
new
where old.child = new.parent;
quit;

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain about data integrator metadata reports? : Sas-di

1040


Explain the special input delimiters used in sas programming.

959


describe the interaction table in sas di? : Sas-di

968


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

1028


Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com

1978


What is the basic syntax style in SAS?

1096


Name types of category in which SAS Informats are placed?

1090


Explain bmdp procedure?

987


What is SAS?

987


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

2061


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

994


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1301


How do you convert basic cube to transaction cube and transaction cube to basic cube?

2188


what is ae onset date n what is RDS

2462


Explain what is the use of proc gplot?

1126