对下面这段程序,我有两点疑问
%let crsnum=3;<br />
data revenue;<br />
set sasuser.all end=final;<br />
where course_number=&crsnum;<br />
total+1;<br />
if paid=’Y’ then paidup+1;<br />
if final then do;<br />
call symput(’numpaid’,paidup);<br />
call symput(’numstu’,total);<br />
call symput(’crsname’,course_title);<br />
end;<br />
run;<br />
proc print data=revenue noobs;<br />
var student_name student_company paid;<br />
title "Fee Status for &crsname (#&crsnum)";<br />
footnote "Note: &numpaid Paid out of &numstu Students";<br />
run;<br />
在第五行,
if paid=’Y’ then paidup+1;<br />
这里“paidup" 应该是一个变量,但我没有看到它的定义,难道SAS 对变量没有明确的定义语句吗,还有似乎它的默认初始值是0,对吗?</p>
在
title "Fee Status for &crsname (#&crsnum)";
# 是干什么用得?谢谢。
</p>