* Create the HTML files;
* Using the Output Delivery System;
ODS HTML BODY = 'd:\MyHTMLFiles\MarineBody.html'
CONTENTS = 'd:\MyHTMLFiles\MarineTOC.html'
PAGE = 'd:\MyHTMLFiles\MarinePage.html'
FRAME = 'd:\MyHTMLFiles\MarineFrame.html';
* Read the data and produce FREQ and MEANS output;
DATA marine;
INFILE 'd:\MyRawData\Sealife2.dat';
INPUT Name $ Family $ Length @;
PROC FREQ DATA = marine;
TABLES Family;
TITLE 'Whales and Sharks';
PROC SORT DATA = marine;
BY Family;
PROC MEANS DATA = marine;
BY Family;
RUN;
* Close the HTML files;
ODS HTML CLOSE;