SAS OnlineTutorback||next

Try It! Using the Act.Talent99. data set, combine references with prefixes and suffixes.

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;
    title1 "Actors Hired in &name";
    footnote1 "Report Number &number";
    data act.novhire;
       set act.talent99;
       if month(lasthired)=&number;
       format lasthired date9.;
    run;
    proc print data=act.novhire;
    run; 
    
    Revise the program to create two more macro variables, abbrev and year. Assign abbrev the value nov, and year the value 99. Then reference the macro variables in the code.

  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