how to display duplicated observations in a data using base
sas.
Answers were Sorted based on User's Feedback
Answer / ganesh k
data dset1;
set dset;
by var1;
if last.var1>1 then output;
run;
Is This Answer Correct ? | 1 Yes | 4 No |
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 |
Answer / harish
we can find duplicated by using missover&scanover
Is This Answer Correct ? | 2 Yes | 17 No |
what is the formula to measure Baseline
How long can a macro variable be? A token? : sas-macro
what is the need of INDEX in datasets?
Difference between informat and format?
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?
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
What are the difference between ceil and floor functions in sas?
if i having variables named a b c d e f ,how to find total of each variable ????give syntax...??
how to assign a macro value to a variable?
Differentiate input and infile.
What is the differnce between SDTM 3.1.2 to 3.1.1 version
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming