data c200501;
input name$ sex$ math chinese;
cards;
李家富 男 92 98
张丽萍 女 89 106
王春雷 男 86 90
刘刚 有 98 109
张颖 女 80 110
;
run;
data c200501m c200501f;
set c200501;
select(sex);
when('男') output c200501m;
when('女') output c200501f;
otherwise put sex='有错';
end;
drop sex;
run;
请问大神otherwise put sex='有错';是什么意思?为什么运行出错?谢谢!