SAS OnlineTutorback||next

Try It! Using the Act.Talent99 data set, display macro variable resolution messages.

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.newhire;
       set act.talent99;
       if month(lasthired)=&number;
       format birthdate lasthired date.;
    run;
    proc print data=act.newhire;
    run; 
    
    Submit the program and view the messages in the Log window.

  2. Recall the program and modify it to display log messages stating how each macro variable reference resolved. Submit and view the log messages.

  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