Add a page break to the output, create HTML output, and replay Variables#1.
The ODS HTML statement opens the HTML destination and creates HTML 4.0 output.
The STYLE= option specifies that ODS use the style D3D.
The OBPAGE statement inserts a page break.
The REPLAY statement replays the Variables#1 object and generates output for all open ODS destinations.
ods html file='your_file.html' style=d3d;
proc document name=class;
obpage \Contents#1\DataSet#1\Variables#1;
replay;
run;
quit;