/* HTML_Uni_Mns.sas Daniel Brockma 070511 Gen HTML for Proc Univ & Proc Means */
%macro HTML_Uni_Mns(dsn,vlist,outdir,style,odsstore,nick) ;
/* dsn is the name of a dataset.
* vlist is a list of variable names.
* outdir (ignored) is the directory to which html files will be written.
* style (ignored) is one of WEB_1 ... WEB_10 .
* odsstore (ignored) is a libname for the ods store .
* nick (ignored) is a unique string, a nickname distinguishing this set of
* output from others.
*
* HTML_Uni_Mns uses ODS to produce HTML output for the specified variables
* in the specified dataset using Proc Univ and Proc Means.
*
* 070523 Daniel Brockman. Moved ods html on/off to caller.
*/
/* ODS path (prepend) &odsstore.ODS(READ); */
/* */
/* ods html */
/* style=&style */
/* file="&outdir\&nick..htm" */
/* frame="&outdir\&nick.-frame.htm" */
/* contents="&outdir\&nick.-table-contents.htm" */
/* page="&outdir\&nick.-pages-contents.htm" */
/* ; */
proc means data=&dsn ;
var &vlist ;
run;
proc univariate data=&dsn ;
var &vlist ;
run;
* ods html close; * close the html output destination ;
%mend HTML_Uni_Mns ;