PROGRAM
--------------------------------------
/*-- Two datasets are prepared.--*/
DATA DEMOG1 ;SET DEMOG ; WHERE DOSE=1 ; RUN ;
DATA DEMOG2 ;SET DEMOG ; WHERE DOSE=2 ; RUN ;
/*--------------------------------------------------
* OUTER UNION CORRESPONDING *
* THIS IS SAME AS SET
STATEMENT *
*---------------------------------------------------*/
PROC SQL ;
CREATE TABLE DEMOG3 AS
SELECT * FROM DEMOG1
OUTER UNION CORRESPONDING
SELECT * FROM DEMOG2
;
QUIT ;
DATA DEMOG4 ;
SET DEMOG1 DEMOG2 ;
RUN ;
PROC COMPARE DATA=DEMOG3 COMP=DEMOG4 ALLOBS ;
RUN ;
--------------------------------------
Post a Comment
別ページに移動します