data _null_;
set certadv.courses;
call symputx(course_code,(course_title));
run;
%let crsid=C002;
proc print data=certadv.schedule noobs label;
where course_code="&crsid";
var location begin_date teacher;
title1 "Schedule for ???";
run;
Structured Query Language
.
Therefore, the TITLE statement should reference a macro variable that
resolves to Structured Query Language
.
Remember that you want this reference to be flexible enough to apply
to any of the macro variables that the SYMPUTX routine creates, such
as C003 or C004, by changing only the %LET statement.C002
, the following
process might seem to be correct: C002
.&
) to the front of the resolved value
in order to create a new reference (&C002).Structured Query
Language
.title1 "Schedule for &&&crsid";
options symbolgen; data _null_; set certadv.schedule; call symputx(cats('teach',course_number),teacher); run;
%let crs=3; proc print data=certadv.register noobs; where course_number=&crs; var student_name paid; title1 "Roster for Course &crs"; title2 "Taught by &&teach&crs"; run;
SYMBOLGEN: Macro variable CRS resolves to 3 SYMBOLGEN: Macro variable CRS resolves to 3 SYMBOLGEN: && resolves to &. SYMBOLGEN: Macro variable CRS resolves to 3 SYMBOLGEN: Macro variable TEACH3 resolves to Forest, Mr. Peter
3.147.76.135