data c200501m c200501f;
set c200501;
select (sex) ;
when('男') output c200501m;
when('女') output c200501f;
otherwise put sex='有错' ;
end;
drop sex;
run;
-------------------------------------------------------
101 data c200501m c200501f;
102 set c200501;
103 select(sex) ;
104 when ('男') output c200501m;
105 when ('女') output c200501f;
106 otherwise put sex='有错' ;
107 end;
ERROR: 名称 ; 不是有效的 SAS 名称。
108 drop sex;
----
180
ERROR 180-322: 语句无效或未按正确顺序使用。
109 run;
109 run;
-
117
ERROR 117-185: 有 1 个未闭合的 SELECT 块。
请教大神这个问题怎么解决。。。