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

Answer Posted / prakash hullathi

use frequency procedure with single column
data dups;
input var1;
datalines;
1
2
3
4
4
3
5
6
;
run;
proc freq data=dups;
tables var1/norow nocol nopercent;
run;


The output will be like this


var1 frequency cumulative frequency
1 1 1
2 1 2
3 2 4
4 2 6
5 1 7
6 1 8


here the observations for the variable var1 3 and 4 are
appered 2 times and remaining appeared for 1 time by
seeing the frequency of corresponding variable and
observation

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is snowflake schema? : Sas-di

882


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

801


Hi Jeevan/Akshara I have tried to contact SASI Vats for latest Advanced SAS Programming Certification Dumps (A00-212) but have not got any response. I would highly and gratefully appreciate your assistance in this regard. If you guys have access to this, would you be kind enough to forward it to me ? I would abide by all the terms you have for this. Please, note my email id: upretigopi@yahoo.com Preti Sharma

3251


What is the role of sas grid administrator? : sas-grid-administration

1042


for what purpose would you use the retain statement? : Sas programming

798






How will you generate test data with no input data?

791


what has been your most common programming mistake? : Sas programming

768


Explain how you can debug and test your SAS program?

727


If money were no object, what would you like to do?

2883


Explain data step in SAS

829


Describe the function and untility of the most difficult SAS macro that you have written.

1813


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

904


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4316


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

2141


What are the functions which are used for character handling functions?

803