<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: proc report format and subtitle in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644625#M24029</link>
    <description>Thank you so much!</description>
    <pubDate>Fri, 01 May 2020 22:29:04 GMT</pubDate>
    <dc:creator>shawn123</dc:creator>
    <dc:date>2020-05-01T22:29:04Z</dc:date>
    <item>
      <title>proc report format and subtitle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644060#M24017</link>
      <description>&lt;P&gt;Hi, guys. I have a simple question regarding the proc report format:&lt;/P&gt;&lt;P&gt;Here is the data&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data order;
input ordernumber$ product$ qrt;
cards;
##1 a 1000
##2 b 200
##3 c 3000
##4 a 200
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=order;
column ordernumber product qrt;
define product /group;
define  ordernumber/display;
define qrt/display;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is a desirable format(on the top) I want to display and on the bottom is my layout:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shawn123_0-1588189068906.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38886iCA97E3F7A7FF5829/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shawn123_0-1588189068906.png" alt="shawn123_0-1588189068906.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shawn123_1-1588189140708.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38887iDA7EE2128A831F7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shawn123_1-1588189140708.png" alt="shawn123_1-1588189140708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how can I change the product into a subtitle, and also is there any alternative way to make this report layout inside of the proc report&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 19:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644060#M24017</guid>
      <dc:creator>shawn123</dc:creator>
      <dc:date>2020-04-29T19:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc report format and subtitle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644067#M24018</link>
      <description>&lt;P&gt;A couple of starting points (maybe)&lt;/P&gt;
&lt;PRE&gt;proc report data=order;
   columns product ordernumber qrt;
   define product / group noprint ;
   define ordernumber/ display '';
   define qrt/display '';
   compute before product;
      line  product $5.;
   endcomp;
run;


proc tabulate data=order;
   class product ordernumber;
   var qrt;
   tables product,
          ordernumber='',
          qrt='Units'*sum=''
          /box='Order number'
   ;
run;
 &lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2020 20:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644067#M24018</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-29T20:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc report format and subtitle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644085#M24019</link>
      <description>&lt;P&gt;Hi ballardw, Thank you so much for the answer. And sorry about my unclear picture. I remake the picture so that better express my desirable layout&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shawn123_0-1588193168330.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38891i30D3DA3A73DF66D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shawn123_0-1588193168330.png" alt="shawn123_0-1588193168330.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, I try the first code, I end up with the table below, is there any way I can show the product name first and then show the ordernumber row under each product?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shawn123_1-1410727741611.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38892i5EE06F9E284A1650/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shawn123_1-1410727741611.png" alt="shawn123_1-1410727741611.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The proc tabulate I try it before, I have a very similar code as you did(code and picture is shown below), I just make data into one table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=order;
   class product ordernumber;
   var qrt;
   tables product*ordernumber,qrt='qrt'*sum=''
          /box=' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shawn123_2-1410727802330.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38893iDF94CB406B440256/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shawn123_2-1410727802330.png" alt="shawn123_2-1410727802330.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am struggle on how to move the product name above the ordernumber row and insert a few more "ordernumber" rows in between.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 21:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644085#M24019</guid>
      <dc:creator>shawn123</dc:creator>
      <dc:date>2020-04-29T21:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc report format and subtitle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644092#M24020</link>
      <description>&lt;P&gt;Calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Your request about showing the Ordernumber and units label one time only and in that position is beyond my skill set with proc report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And my tabulate code used the page dimension and is more than a bit different from yours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is also the Report Writing Interface in the Data step if your data does not require any summarizing that lets you do lots of obnoxious things that the basic report procedures are not set up to handle. But the flexibility comes with a learning curve.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 21:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644092#M24020</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-29T21:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc report format and subtitle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644145#M24022</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; was correct, you can't really get the headers that way you show in the desired output. The way that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; shows them is what PROC REPORT does. As far as PROC REPORT is concerned, the column headers should come first and then the values for the variable in the COMPUTE block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The Report Writing Interface, may be the only way to do it, but it still looks odd to me to have one value above the column headers and the other values below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 05:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644145#M24022</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-04-30T05:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc report format and subtitle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644625#M24029</link>
      <description>Thank you so much!</description>
      <pubDate>Fri, 01 May 2020 22:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644625#M24029</guid>
      <dc:creator>shawn123</dc:creator>
      <dc:date>2020-05-01T22:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc report format and subtitle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644626#M24030</link>
      <description>Thank you for the reply!</description>
      <pubDate>Fri, 01 May 2020 22:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-format-and-subtitle/m-p/644626#M24030</guid>
      <dc:creator>shawn123</dc:creator>
      <dc:date>2020-05-01T22:29:36Z</dc:date>
    </item>
  </channel>
</rss>

