SAS OnlineTutorback||next

Try It! Create HTML output with a linked table of contents using the SAS data sets Clinic.Admit and Clinic.Insure.

Creating HTML output? Read this first.

  1. Copy the following program and paste it into the Program Editor window (or issue the command copy sashelp.oltutor..source).
    ods listing close;
    ods html 
        body='<my-location>myoutput.htm';
    proc print data=clinic.admit;
    run;
    proc print data=clinic.insure;
    run;
    ods html close;
    ods listing;
    
  2. Replace <my-location> with your My SAS Files directory path (or your default storage location).

    In the CMS operating environment: specify myoutput htm as the HTML filename and filetype for the body file.

  3. Add specifications to the ODS HTML statement to save a contents file as mytoc.htm and a frame file as myframe.htm. Save these files in the same location as myoutput.htm.

  4. Specify the URL myoutput.htm for the body file and the URL mytoc.htm for the contents file.

  5. Submit the program and open the frame file (myframe.htm). View the body file using the links in the contents file (mytoc.htm).

    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