how to display duplicated observations in a data using base
sas.

Answer Posted / dilip

proc sort data=x out=y;
by v;
data m;
set y;
by v;
if first.v and last.v then delete;
run;


this is for extracting duplicate observations
from a dataset

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are several options for creating reports in web report studio? : Sas-bi

611


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2075


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

1639


what is treatment emergent events and treatment emregent adverse event

1930


Give some examples where proc report’s defaults are same as proc print’s defaults?

620






What are the limitations for memory allocation for SAS variables

913


how can you put a "trace" in your program? : Sas programming

561


What is the use of stop statement?

620


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

732


What does proc print, and proc contents are used for?

595


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

665


Explain why double trailing @@ is used in input statement?

557


Explain the difference between nodup and nodupkey options?

593


How to create list output for cross-tabulations in proc freq?

608


Mention the difference between ceil and floor functions in sas?

626