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