data have ; infile cards dsd truncover ; input Id $ name :$20. function :$5. status :$20. reason :$20. department :$20.; cards; 123,flowers-gift,nw,onboard,blank SLS,human resource 123,flowers-gifts,nw,onboard,missing country,Human resource 123,onboard gift,nw,onboard,missing country,
124,flowers-gift,nw,onboard,blank SLS,human resource 124,flowers-gifts,nw,onboard,missing country,Human resource 124,onboard gift,nw,onboard,missing country,
125,flowers-gift,nw,onboard,blank SLS,human resource
126,flowers-gifts,nw,onboard,missing country,Human resource 126,onboard gift,nw,onboard,missing country,
;
proc sort data= have; by reason; run;
data haveuniq; set have; by reason; if first.reason then output; run;
the output which im expecting is shown below:
123,flowers-gift,nw,onboard,blank SLS,human resource 123,flowers-gifts,nw,onboard,missing country,Human resource
124,flowers-gift,nw,onboard,blank SLS,human resource 124,flowers-gifts,nw,onboard,missing country,Human resource
125,flowers-gift,nw,onboard,blank SLS,human resource 126,flowers-gifts,nw,onboard,missing country,Human resource the output im getting is
this is what is confusing me.
... View more