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

what is the formula to measure Baseline

3 Answers   Sristek,


How long can a macro variable be? A token? : sas-macro

0 Answers  


what is the need of INDEX in datasets?

6 Answers   CitiGroup,


Difference between informat and format?

0 Answers  


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

0 Answers  






data study; input Subj : $3. Group : $1. Dose : $4. Weight : $8. Subgroup; x= input(Weight,5.1); datalines; 001 A Low 220 2 002 A High 90 1 003 B Low 193.6 1 004 B High 165 2 005 A Low 123.4 1 ; Why does X get truncated? X shows up as 22 instead of 220,9 instead of 90 and 19.8 instead of 198? This problem doesnt happen with the values 193.6 and 123.4. This does not happen if x is read on the 5. informat instead of the 5.1 informat

2 Answers  


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

0 Answers  


if i having variables named a b c d e f ,how to find total of each variable ????give syntax...??

6 Answers   Accenture,


how to assign a macro value to a variable?

8 Answers   CitiGroup,


Differentiate input and infile.

0 Answers  


What is the differnce between SDTM 3.1.2 to 3.1.1 version

0 Answers   Wipro,


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

0 Answers  


Categories