SAS OnlineTutorback||next

Try It! Using the Act.Talent99 data set, create and reference macro variables.

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).
    title1 'Actors Hired in November';
    footnote1 'Report Number 11';
    data act.newhire;
       set act.talent99;
       if month(lasthired)=11;
       format lasthired date9.;
    run;
    proc print data=act.newhire;
    run;
    
    Revise the program to create the two macro variables number and name. Assign number the value 11 and name the value November. Then reference the macro variables in the code.

  2. Submit the program and view the output.

  3. Cancel the TITLE and FOOTNOTE statements.

    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