title: PROC REPORT in SAS to generate a tabular output
body: <p>I am working on PROC REPORT. Have a requirement similar to the one below. I am a little hesitant to use PROC TABULATE and want to try out PROC REPORT. </p>
  
  <p>My Requirement is as below: </p>
  
  <p>PRODUCT should be displayed as ACROSS variable and under each PRODUCT the SUM of SALES should be displayed by region. </p>
  
  <pre><code>proc report data=shoes; 
  column sales product , region ; 
  define product / across;
  define region / group; * --&gt; Need the report by REGION ; 
  define sales/ analysis;
  run;
  </code></pre>
  
  <p>But this piece of code is throwing me an error: </p>
  
  <pre><code> ERROR: A DISPLAY or GROUP variable above or below an ACROSS variable requires that there be an ORDER, GROUP, or DISPLAY variable in the report that is not above or below an ACROSS variable.
  </code></pre>
  
  <p>How to do this with PROC REPORT alone. Is that really possible or I need to go for TABULATE due to this restriction? </p>