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 panel of the report. FORMCHAR= sets the value of the second formatting character (the one that HEADLINE uses) to the tilde (~). Therefore, the tilde underlines the column headers in the output. HEADSKIP writes a blank line beneath the underlining that HEADLINE writes. LS= sets the line size for the report to 64, and PS= sets the page size to 18. PANELS= creates a multipanel report. Specifying PANELS=99 ensures that PROC REPORT fits as many panels as possible on one page. PSPACE=8 places 8 spaces between panels.
proc report data=grocery nowd headline
            panels=99 pspace=6
            ls=64 ps=18;