data ;
input type $ @;
if type='c' then input course $ prof $;
else if type='s' then input name $ id 3.2;
cards;
c math zxs
s zhao 58888
;
proc print;
run;
有@的输出结果:
Obs type course prof name id
1 c math zxs .
2 s zhao 5.88
无@的输出结果:
Obs type course prof name id
1 c s zhao .
请高手指点,有@能看的明白,但为什么没有@的结果想不明白~