SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating Drill-Down Graphs in HTML
Creating the Secondary Charts and Tables


Question: Based on the code shown below, where will the HTML table Grass Pollen by Week be written?

     data work.disper7b;
        set zone7b.pollen;
        length BarDrill $ 40;
        if pollentype='GRASS' then bardrill='HREF="grass7b.html"';
        if pollentype='WEED' then bardrill='HREF="weed7b.html"';
        if pollentype='TREE' then bardrill='HREF="tree7b.html"';
     run;

     ods listing close;
     ods html path='c:\data\pollen\html' body='sources.html';
     goptions device=gif xpixels=360 ypixels=240;
     title 'Pollen Counts by Type';
     proc gchart data=work.disper7b;
        hbar month / sumvar=count group=pollentype
             html=bardrill discrete;
     run;

     ods html body='typetables.html';
     title 'Pollen Sources by Month';
     proc tabulate data=work.disper7b;
        class month pollentype;
        var count;
        table month*pollentype, sum*count;
     run;

     ods html anchor='grassbyweek';
     title 'Grass Pollen by Week';
     proc tabulate data=work.disper7b;
        class week;
        var count;
        table week, sum*count;
        where pollentype='GRASS';
     run;

     quit;
     ods html close;
     ods listing;

   on page grass7b.html, by itself
 
   on page typetables.html, below the table Pollen Sources by Month
 
   on page sources.html, below the chart Pollen Counts by Type
 
   It will not be written.



  back||next


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

Terms of Use & Legal Information | Privacy Statement