可以兩個做法, 看看是不是符合您要的~
1.
PROC SQL;
CREATE TABLE a.bdn1 AS
select * from a.group1 where sbp02m=1;
CREATE TABLE a.bdn2 AS
select * from a.group1 where sbp02m=2;
QUIT;
或是
2.
DATA a.bdn1;
SET a.group1;
IF sbp02m=1 then output;
DATA a.bdn2;
SET a.group1;
IF sbp02m=2 then output;