SAS OnlineTutorback||next

Try It! Close and open destinations to create HTML output 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 html 
        body='<my-location>billing3.htm';
    proc print data=clinic.admit;
    run;
    proc print data=clinic.insure;
    run;
    ods html close;
    
  2. Replace <my-location> with your My SAS Files directory path (or your default storage location).

    In the CMS operating environment: specify billing3 htm as the HTML filename and filetype.

  3. Add statements to the program to

    • close the Listing destination before the HTML destination is opened

    • reopen the Listing destination after the HTML destination is closed.

  4. Submit the program and open the body file to 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