- Copy the program below and paste it into the Program Editor window (or issue the command
copy sashelp.oltutor..source ).
%let number=11;
%let name=November;
%let abbrev=nov;
%let year=99;
data &abbrev.hire;
set act.talent&year;
if month(lasthired)=&number then
do;
Fee=rate*.10;
TotFee+fee;
output;
end;
call symput('total',
put(totfee,dollar6.));
run;
title1 "Actors Hired in &name";
title2 "Agency Commission &total";
footnote1 "Report Number &number";
proc print data=&abbrev.hire;
run;
Revise the program to create the temporary variable final
to store an end-of-file marker. Then edit the program to execute the CALL
SYMPUT routine when the last observation is read.
-
Submit the program and view the output.
Return here and select Next.
|