SAS OnlineTutorback||next

Try It! Add an option to specify a destination for the HTML files you create.

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).

ods listing close;
ods html body='myoutput.htm'
(url='myoutput.htm')
contents='mytoc.htm'
(url='mytoc.htm')
frame='myframe.htm' style=beige; proc print data=clinic.admit;
run;
proc print data=clinic.insure;
run;
ods html close; ods listing;
  1. Add an option to save mycontents.htm, mytoc.htm, and myframe.htm to the My SAS Files directory (or your default storage location). For this option, add a suboption to specify that no path information is used in the URLs for the body and contents files.

    In the CMS operating environment: specify myoutput htm, mytoc htm and myframe htm as the HTML filenames and filetypes.

    In the OS/390 operating environment: if you store HTML files in a PDSE, specify myoutput, mytoc, and myframe as the member names.

  2. 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