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

Answers were Sorted based on User's Feedback



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

Answer / ganesh k

data dset1;
set dset;
by var1;
if last.var1>1 then output;
run;

Is This Answer Correct ?    1 Yes 4 No

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

Answer / suresh babu prattipati

hi,
to display the dups in seperate dataset please find the
below program.

eg:
data dups;
input var1;
1
2
3
4
4
3
5
6
;
run;

/*to find the dups*/


data dups1;
set dups;
by var1;
if not(first.var1 and last.var1) then output;
run;

*now you can see the dups ;

If any one have any sas question please e.mail me to

suresh.sasv9@gmail.com

thanks
suresh

Is This Answer Correct ?    5 Yes 9 No

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

Answer / harish

we can find duplicated by using missover&scanover

Is This Answer Correct ?    2 Yes 17 No

Post New Answer

More SAS Interview Questions

how does sas know on which server the piece of code to be executed ? say if a proc olap code is written then how the sas application would detect on which server to execute.

1 Answers   TCS,


What is the registered Key word is sas????

2 Answers   TCS,


What are the difference between ceil and floor functions in sas?

0 Answers  


What are the features of base sas system?

0 Answers  


what type of reports you are generating in your company...???

2 Answers   GSK GlaxoSmithKline,


Name statements that are execution only.

4 Answers  


How would you determine how far down on a page you have printed in order to print out footnotes?

3 Answers  


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

0 Answers  


how are numeric and character missing values represented internally? : Sas programming

0 Answers  


what is operational data and operational system? : Sas-di

0 Answers  


What is difference between rename and lable in sas?

10 Answers   Satyam,


how can get the first and last observations in a dataset using Proc SQl?

4 Answers   Satyam,


Categories