Producing HTML Output |
Specifying a Path for
Output |
The PATH= Option
So far, we've specified the full path name for HTML files with the BODY=, CONTENTS=, and FRAME= specifications. To streamline your ODS HTML statement, you can also use the PATH= option to specify the location where you want to store your HTML output. When you use the PATH= option, you don't need to specify the full path name for the body, contents, or frame files. |
General form, PATH= option:
where
|
Both of the programs shown below direct the files
data.html, toc.html, and
frame.html to the C:\Records directory
in the Windows operating environment.
In these two examples, the URLs for the body and contents files are data.html and toc.html. No information from the PATH= option appears in the links or references. ods listing close; ods html path='c:\records'(url=none) body='data.html'(url='data.html') contents='toc.html'(url='toc.html') frame='frame.html' style=brick; proc print data=clinic.admit label; var id sex age height weight actlevel; label actlevel='Activity Level'; run; proc print data=clinic.stress2; var id resthr maxhr rechr; run; ods html close; ods listing; ods listing close; |
Example without the PATH= Option
Without the PATH= option or the URL= suboption in the file specifications,
the URLs for the body and contents files in this example are
ods listing close; ods html body='c:\records\data.html' contents='c:\records\toc.html' frame='c:\records\frame.html' style=brick; proc print data=clinic.admit label; var id sex age height weight actlevel; label actlevel='Activity Level'; run; proc print data=clinic.stress2; var id resthr maxhr rechr; run; ods html close; ods listing; |