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
What does PROC print, and PROC contents do?
Have you ever used the SAS Debugger?
Explain the special input delimiters used in sas programming.
what is the difference between nodup and nodupkey options? : Sas programming
Are you involved in writing the inferential analysis plan? Tables specfications?
what are the considerations when picking a SAS/STAT procedure?
what is data access? : Sas-di
What is the work of tranwrd function?
what do the pad and dim functions do? : Sas programming
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
In proc transpose and data step with arrays which one you pick?
Where do you use proc means over proc freq?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
What is PROC in SAS?