|
Hi,
I came across usage of the WHERE ALSO in online learning.
I understand now that it performs same as "WHERE SAME AND ..." but not
able to see the same documented in help? I checked up through the
Where statement portion in SAS Language Reference: Dictionary.
%macro attend(crs,start=01jan2001,stop=31dec2001);
%let start=%upcase(&start);
%let stop=%upcase(&stop);
proc freq data=sasuser.all;
where begin_date between "&start"d and "&stop"d;
table location / nocum;
title "Enrollment from &start to &stop";
%if &crs= %then %do;
title2 "for all Courses";
%end;
%else %do;
title2 "for Course &crs only";
where also course_code="&crs";
%end;
run;
%mend;
hp
|