options symbolgen pagesize=30; %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; if paidup<total then do; call symput('foot','Some Fees Are Unpaid'), end; else do; call symput('foot','All Students Have Paid'), end; end; run; proc print data=revenue; var student_name student_company paid; title "Payment Status for Course &crsnum"; footnote "&foot"; run;
options symbolgen; data _null_; set sasuser.courses; call symput(course_code, trim(course_title)); run; %let crsid=C005; proc print data=sasuser.schedule noobs label; where course_code="&crsid"; var location begin_date teacher; title1 "Schedule for &&&crsid"; run; %let crsid=C002; proc print data=sasuser.schedule noobs label; where course_code="&crsid"; var location begin_date teacher; title1 "Schedule for &&&crsid"; run;
3.15.182.62