SAS OnlineTutorback||next

Try It! Using the Act.Talent99 data set, control execution of a 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;
    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.

  2. Submit the program and view the output.

    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