참고1



PROC SORT DATA=zzz

DUPOUT= xxxx  NODUPKEY 

; BY Title 

; RUN ;


DUPOUT= option can be used to identify duplicate observations before actually removing them from a data set.


PROC SORT DATA=zzz  

DUPOUT=xxx  NODUPRECS 

; BY Title ;

; RUN ;


The DUPOUT= and NODUPRECS options are specified. The resulting output data set contains the duplicate observations for Brave Heart and Rocky because these rows have identical data for all columns.


PROC SORT DATA=zzz  

OUT=xxx  NODUPRECS  ;

; BY Title ;

RUN ;

 

OUT : 중복자료 삭제가 출력물.. 그런데 NODUPRECS하면 똑같은 자료가 있는 것만 삭제하고 출력하도록


PROC SORT DATA=zzz  

OUT=xxx  NODUPKEYS ; 

; BY Title ;

RUN ;


 NODUPKEYS (or NODUPKEY): 중복자료 제외하고 출력하기.. 

'통계 clinical trial > SAS' 카테고리의 다른 글

ODS 특수문자 입력 (ODS escapechar)  (0) 2018.11.26
Data문 DATA set 분리  (0) 2018.11.21
proc FREQ (in SAS and Excel)  (0) 2018.11.09
proc GLM for BE  (0) 2018.11.08
ODS 특수기능  (0) 2018.11.07
블로그 이미지

고향이안드로메다

,