The NOWD option runs PROC REPORT without the REPORT window and sends its output to the SAS procedure output. OUT= creates the output data set PROFIT.
title;
proc report data=grocery nowd out=profit;