How to write duplicate records into a separate dataset using
sort?
Answers were Sorted based on User's Feedback
Answer / vimal
PROC SORT DATA=data_a DUPOUT=dup_data
NODUPKEY
OUT=nodup_data;
BY x;
RUN;
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / yam
First sort the data set by the key variable and then
data dup;
set indata1;
if not(first.keyvar) then output dup;
run;
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / charan araveti
if u dont want to use DUPOUT,hear is some code:
data dup(drpo temp_id);
set ds1;
retain temp_id;
if temp_id ne id then
output;
temp_id=id;
| Is This Answer Correct ? | 1 Yes | 3 No |
how to delete the duplicates by using proc sql?
what is the difference between sas and other datawarehousing languages?what are the advantages of sas over them?
what are _numeric_ and _character_ and what do they do? : Sas programming
How to limit decimal places for the variable using proc means?
what are all the default values getting in PROC MEANS...???
In the flow of DATA step processing, what is the first action in a typical DATA Step?
data abc; input x y ; cards; 1 2 5 6 7 8 7 8 1 7 5 7 ; run; Proc Freq data=abc; tables x*y / chisq nopercent nocol norow PLCORR; RUN; If we run the code, we have Polychoric Correlation = 0.9054 in the last table. I want to extract this particular entry with the value. Means I will create one dataset in which this value will be stored/extracted. I need your help in coding this. Please help me out.
Describe how you would pass data to macro.
What is highest missing value for numeric?
what are 5 ways to perform a table lookup in sas? : Sas-administrator
what is sas data set?
What are the uses of sas?