how to display duplicated observations in a data using base
sas.
Answer Posted / m.sivakumar
data dups;
input var1;
datalines;
1
2
3
4
4
3
5
6
;
run;
proc sort data=dups;
by var1;
run;
data dups1;
set dups;
by var1;
if not(first.var1 and last.var1) then output;
run;
proc print data=dups;
run;
proc print data=dups1;
run;
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
it will become easy if uuu provide website linkssss and list of consultanciessssss
Which statement does not perform automatic conversions in comparisons?
What is the use of function Proc summary?
how does sas handle missing values in procs? : Sas programming
What is the function of output statement in a SAS Program?
What is the difference between SAS functions and procedures?
What is the role of sas grid administrator? : sas-grid-administration
what is star schema? : Sas-di
Explain proc sort?
What are the automatic variables for macro? : sas-macro
What are pdv and it functions?
Explain how you can debug and test your SAS program?
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
Are you involved in writing the inferential analysis plan? Tables specfications?
Explain the purpose of retain statement.