The NOWD option runs PROC REPORT without the REPORT window and sends its output to the SAS procedure output. HEADLINE underlines all column headers and the spaces between them at the top of each page of the report. HEADSKIP writes a blank line beneath the underlining that HEADLINE writes. LS= sets the line size for the report to 66, and PS= sets the page size to 18.
proc report data=grocery nowd headline headskip
            ls=66 ps=18;