У меня два вопроса по следующему коду SAS:
%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;
Первый вопрос, в строке 5 он имеет
if paid=’Y’ then paidup+1;
Здесь «переменная» должна быть переменной.
Мне кажется, что SAS установил начальное значение по умолчанию «paidup» как 0. Это правда?
Второй вопрос, в сегменте кода
title "Fee Status for &crsname (#&crsnum)";
Как работает # & crsnum? Или какова функциональность # здесь?