PROGRAM
--------------------------------------
*************************************
WHERE CLAUSE: SUB-SETTING:
*************************************;
PROC SQL ;
CREATE TABLE D_FEMALE
CREATE TABLE D_FEMALE
SELECT *
FROM DEMOG
WHERE SEX IN ('FEMALE') ; /*NEED SEMI-COLON HERE!*/
CREATE TABLE D_MALE
SELECT *
FROM DEMOG
WHERE SEX IN ('MALE ') ;
QUIT ;
PROC PRINT DATA=D_FEMALE; RUN;
PROC PRINT DATA=D_MALE ; RUN;
--------------------------------------
Post a Comment
別ページに移動します