What is the difference between nodup and nodupkey options?

Answer Posted / shalabh tyagi

Nodup: Checks for duplicacy among the variables in a row and
keeps the 1st row of that observaion in the final output and
deletes the rest

Nodupkey: Checks for the duplicacy among the variables
specified in "by" statement and keeps the 1st row of the
observaion and deletes the rest

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name validation tools used in SAS

802


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1260


describe about physical data integration? : Sas-di

651


where are dashboard components are created and maintained? : Sas-bi

658


What is the difference between %local and %global? : sas-macro

769






What is connection profile? : sas-grid-administration

742


What is PROC in SAS?

707


How would you include common or reuse to be processed along with your statements?

1998


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

1914


what is sas application server? : Sas-di

620


Describe 5 ways to do a “table lookup” in SAS?

792


What are the functions which are used for character handling functions?

703


What is the role of administrative users? : sas-grid-administration

750


how can you create zero observation dataset? : Sas programming

758


how to read the variables in sas? : Sas-administrator

641