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
What does the RUN statement do?
How to test the debugging in sas?
What sas features do you use to check errors and data validation?
What is the role of administrative users? : sas-grid-administration
how to generate the test data in sas without input data? : Sas-administrator
What are the data types in sas?
where are dashboard components are created and maintained? : Sas-bi
What makes sas stand out to be the best over other data analytics tools?
What do the put and input function do?
what is the difference between unique key and primary key? : Sas-di
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
how does sas handle missing values in formats? : Sas programming
how to change the execute of macro
What is the use of %include statement?