SAS OnlineTutorback||next

Try It! Using the Act.Talent99 data set, invoke the CALL SYMPUT routine.

Creating HTML output? Read this first.

  1. 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;
    footnote1 "Report Number &number";
    data &abbrev.hire;
       set act.talent&year;
       if month(lasthired)=&number then
       do;
          Fee=rate*.10;
          TotFee+fee;
          output;
       end;
       format lasthired date9.;
    run;
    title1 "Actors Hired in &name";
    title2 "Agency Commission &total";
    proc print data=&abbrev.hire;
    run; 
    
    Note the macro variable reference in the TITLE2 statement. Modify the program to create a macro variable total that has the value of the variable TotFee.

  2. Submit the program and view the output. Optional: Add the PUT function to the CALL SYMPUT routine and use the DOLLAR6. format.

    Return here and select Next.

Solution

back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA.
All rights reserved.

Terms of Use & Legal Information | Privacy Statement