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

Answer Posted / lakshmi

proc sort data=data1 out=data2 dupout=dup_data1 nodupkey;
by usubjid;
run;

the dataset dup_data1 has the duplicate observation.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you need to rearrange the order of the data for the report?

2053


For what purposes have you used sas macros? : sas-macro

744


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1445


what is program data vector? : Sas-administrator

818


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1506


I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.

1910


what is treatment emergent events and treatment emregent adverse event

2134


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

818


describe how to adjust the performance of data integrator? : Sas-di

749


Give e an example of..

2092


Describe the ways in which you can create macro variables?

828


Mention what is SAS data set?

883


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

947


Mention few capabilities of sas framework.

910


How do you connect the desktop application to metadata server? : sas-grid-administration

832