Create HTML and PDF output and view the contents of the SAS data set. The ODS HTML and ODS PDF statements specify the destination to write to, the file name of the output, and the style to use. The CONTENTS procedure shows the contents of the SAS data set SasHelp.Class.


ods html file="css.html" style=styles.mycssstyle;
ods pdf file="css.pdf" style=styles.mycssstyleprinter;

proc contents data=sashelp.class; 
run;