"What is the difference between proc sort nodup and proc
sort nodupkey?"

Answers were Sorted based on User's Feedback



"What is the difference between proc sort nodup and proc sort nodupkey?"..

Answer / chandrakanth

Proc sort nodupkey will remove any repeated observations based on by variable you mention in the proc sort, whereas proc sort nodup will remove all the repeated observation irrespective of the mentioned by variable . Hope this answers your question let me know if you need more details.

Is This Answer Correct ?    4 Yes 0 No

"What is the difference between proc sort nodup and proc sort nodupkey?"..

Answer / venkatesh

nodup: it deletes duplicates(column wise duplicates).
nodupkey: it deletes row wise duplicates according to
your by variable;
ex: id name
100 nani
101 ravi
100 nani
101 kali
nodup result:
id name
100 nani
101 ravi
101 kali

nodupkey result
100 nani
101 ravi

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SAS Interview Questions

IS SAS COMPILER OR INTERPRETER? EXPLAIN?

3 Answers   Aon Hewitt, HSBC, SCL, TCS,


what is data access? : Sas-di

0 Answers  


explain about sas business intelligence? : Sas-bi

0 Answers  


What is the differnce between SDTM 3.1.2 to 3.1.1 version

0 Answers   Wipro,


Are you involved in writing the inferential analysis plan? Tables specfications?

0 Answers   Wipro,






how can u create zero observation dataset?

11 Answers   CitiGroup,


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

0 Answers  


What is the length assigned to the target variable by the scan function?

0 Answers  


What is shift table? have you ever created shift that?

2 Answers   Accenture, Clinical Research, Quintiles,


Dear all, proc means data=dsn noprint completetypes; class trtmntgroup /preloadfmt; output out=tot n=n; format trtmntgroup trtf. ; by vstgrp descending severity; run; This is the code I used for AE table. I got the values without giving the variable ‘trtmntgroup(numeric)’ in var statement. And if I give the var statement for that variable i’m getting the same values.How is that possible? What is the difference between class and var statement? Could any one explain me how does proc means work at the back end. And what is the difference between _freq_ value and N value in proc means. Thanks and regards, Rajesh.

1 Answers  


What statement do you code to tell SAS that it is to write to an external file? What statement do you code to write the record to the file?

2 Answers   Accenture,


PROC SQL always ends with QUIT statement.Why cant you use RUN in PROQ SQL ?

7 Answers   HP,


Categories