Syntax, ODS HTML statement:
ODS HTML BODY = file-specification;
ODS HTML CLOSE ;
|
C:UsersStudent1certadmit.html
in
the Windows operating environment as the file that contains the PROC
PRINT results.
ods html body='C:UsersStudent1certadmit.html'; proc print data=cert.admit label; var sex age height weight actlevel; label actlevel='Activity Level'; run; ods html close; ods html path="%qsysfunc(pathname(work))";
Syntax, ODS HTML statement
to create a linked table of contents:
ODS HTML
BODY=body-file-specification
CONTENTS=contents-file-specification
FRAME=frame-file-specification;
ODS HTML CLOSE;
|
C:UsersStudent1cert
directory.
The body file contains the results of the two procedures.
C:UsersStudent1cert
directory.
The table of contents file has links to each procedure output in the
body file.
C:UsersStudent1cert
directory.
The frame file integrates the table of contents and the body file.
ods html body='C:UsersStudent1certdata.html' contents='C:UsersStudent1cert oc.html' frame='C:UsersStudent1certframe.html'; proc print data=cert.admit (obs=10) label; var id sex age height weight actlevel; label actlevel='Activity Level'; run; proc print data=cert.stress2 (obs=10); var id resthr maxhr rechr; run; ods html close; ods html path="%qsysfunc(pathname(work))";
C:UsersStudent1cert oc.html
and C:UsersStudent1certdata.html
,
and a contents file that has links to C:UsersStudent1certdata.html
.
ods html body='C:UsersStudent1certdata.html' contents='C:UsersStudent1cert oc.html' frame='C:UsersStudent1certframe.html';
<FRAME MARGINWIDTH="4" MARGINHEIGHT="0" SRC="C:UsersStudent1cert oc.html" NAME="contents" SCROLLING=auto> <FRAME MARGINWIDTH="9" MARGINHEIGHT="0" SRC="C:UsersStudent1certdata.html" NAME="body" SCROLLING=auto>
Syntax, URL= suboption
in a file specification:
(URL= “Uniform-Resource-Locator”;
|
ods html body='C:UsersStudent1certdata.html' (url='data.html') contents='C:UsersStudent1cert oc.html' (url='toc.html') frame='C:UsersStudent1certframe.html';
<FRAME MARGINWIDTH="4" MARGINHEIGHT="0" SRC="toc.html" NAME="contents" SCROLLING=auto> <FRAME MARGINWIDTH="9" MARGINHEIGHT="0" SRC="data.html" NAME="body" SCROLLING=auto>
ods html body='C:UsersStudent1certdata.html' (url='http://mysite.com/cert/data.html') contents='C:UsersStudent1cert oc.html' (url='http://mysite.com/cert/toc.html') frame='C:UsersStudent1certframe.html';
<FRAME MARGINWIDTH="4" MARGINHEIGHT="0" SRC="http://mysite.com/cert/data.html" NAME="contents" SCROLLING=auto> <FRAME MARGINWIDTH="9" MARGINHEIGHT="0" SRC="http://mysite.com/cert/toc.html" NAME="body" SCROLLING=auto>
Syntax, PATH= option
with the URL= suboption:
PATH=file-location-specification<(URL=NONE
| “Uniform-Resource-Locator”>
|
filename pdsehtml '.example.htm' dsntype=library dsorg=po disp=(new, catlg, delete);You should specify valid member names for the HTML files (without extensions).
C:UsersStudent1cert
directory
in the Windows operating environment. The links from the frame file
to the body and contents files contain only the HTML filenames data.html
and toc.html.
ods html path='C:UsersStudent1cert' (url=none)
body='data.html'
contents='toc.html'
frame='frame.html';
proc print data=cert.admit;
run;
proc print data=cert.stress2;
run;
ods html close;
ods html path="%qsysfunc(pathname(work))";
C:UsersStudent1cert
directory
in the Windows operating environment. The links from the frame file
to the body and contents files contain the complete pathnames, C:UsersStudent1certdata.html
and C:UsersStudent1cert oc.html
:
ods html path='C:UsersStudent1cert'
body='data.html'
contents='toc.html'
frame='frame.html';
proc print data=cert.admit;
run;
proc print data=cert.stress2;
run;
ods html close;
ods html path="%qsysfunc(pathname(work))";
C:UsersStudent1cert
directory
in the Windows operating environment. The links from the frame file
to the body and contents files contain the specified URLs, http://mysite.com/cert/data.html,
and http://mysite.com/cert/toc.html:
ods html path='C:UsersStudent1cert (url='http://mysite.com/cert/')
body='data.html'
contents='toc.html'
frame='frame.html';
proc print data=cert.admit;
run;
proc print data=cert.stress2;
run;
ods html close;
ods html path="%qsysfunc(pathname(work))";
proc template; list styles/store=sashelp.tmplmst; run;
Syntax, STYLE= option:
STYLE=style-name;
|
ods html body='C:UsersStudent1certdata.html' style=banker; proc print data=cert.admit label; var sex age height weight actlevel; run; ods html close; ods html path="%qsysfunc(pathname(work))";