How would you delete observations with duplicate keys?
Answers were Sorted based on User's Feedback
Answer / mohan reddy
proc sort data=work.abc nodupkey;
by eno;
run;
when u have delete duplicatie obervation from dataset. u can
use the nodupkey along with the by variable.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / g.jyotshna
proc sort data=datasetname nodup;
by var;
run;
proc sort data=datasetname nodupkey;
by var;
run;
proc sort data=datasetname noduprecs;
by var;
run;
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / rohit
You can also use a Proc SQL statement with a Distinct
keyword.
Proc Sql;
Select Distinct tablename.* from tablename;
Quit;
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / upendra
Data <datasetname>;
Set <datasetname>;
by <var>;
If last.var;
run;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / siddu
proc sort data=<master dataset> out=(newdata set name>
nodup key;
by <key variable>;
run;
| Is This Answer Correct ? | 0 Yes | 1 No |
how can u join the two tables without using proc sql Joins and nested queries ?
What are Dashboard reports?And significance of these in analysis?
How would you identify a macro variable?
What is the use of PROC gplot?
what are sas/access and sas/connect? : Sas programming
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable?
how to generate the test data in sas without input data? : Sas-administrator
You have a data set of 100 observations,how can you restrict the output so that the output has only data from row no. 10 to row no. 20
What Proc glm does?
What is the registered Key word is sas????