<?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 Show at the &amp;quot;end&amp;quot;,not &amp;quot;first&amp;quot; when proc report and group in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Show-at-the-quot-end-quot-not-quot-first-quot-when-proc-report/m-p/429457#M106086</link>
    <description>&lt;P&gt;In the proc report and with group keyword, variable that follow the same value can be&amp;nbsp; displayed only at the first observation, but is there an option specification that displays "last" instead of "first"?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example with &lt;A href="https://blogs.sas.com/content/sastraining/2011/02/28/whats-so-great-about-spanrows/" target="_self"&gt;this&lt;/A&gt; SAS official blog,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Canada", "Pacific" of the region subject to the group keyword are displayed on the first line of the group.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Normal group displays Like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="normal_group.png" style="width: 412px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18007iD98A6D4C4FCAB0F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="normal_group.png" alt="normal_group.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=shoes nowd;
title 'REPORT Default Behavior';
  column region subsidiary product,(sales sales=savg);
 
  define region / group 
         style(column)=Header;
  define subsidiary / group
         style(column)=Header;
  define product / across 'Product Sales';
  define sales / sum 'Sum' f=dollar10.;
  define savg / mean 'Mean' f=dollar10.;
  rbreak after / summarize style=Header;
run;
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;What I want is like this.Look position of Canada and Pacific.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="normal_group - コピー.png" style="width: 412px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18008i554B53621C45558F/image-size/large?v=v2&amp;amp;px=999" role="button" title="normal_group - コピー.png" alt="normal_group - コピー.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please let me know the option / technique to display like this.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jan 2018 12:16:58 GMT</pubDate>
    <dc:creator>t_ar_taat</dc:creator>
    <dc:date>2018-01-21T12:16:58Z</dc:date>
    <item>
      <title>Show at the "end",not "first" when proc report and group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-at-the-quot-end-quot-not-quot-first-quot-when-proc-report/m-p/429457#M106086</link>
      <description>&lt;P&gt;In the proc report and with group keyword, variable that follow the same value can be&amp;nbsp; displayed only at the first observation, but is there an option specification that displays "last" instead of "first"?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example with &lt;A href="https://blogs.sas.com/content/sastraining/2011/02/28/whats-so-great-about-spanrows/" target="_self"&gt;this&lt;/A&gt; SAS official blog,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Canada", "Pacific" of the region subject to the group keyword are displayed on the first line of the group.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Normal group displays Like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="normal_group.png" style="width: 412px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18007iD98A6D4C4FCAB0F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="normal_group.png" alt="normal_group.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=shoes nowd;
title 'REPORT Default Behavior';
  column region subsidiary product,(sales sales=savg);
 
  define region / group 
         style(column)=Header;
  define subsidiary / group
         style(column)=Header;
  define product / across 'Product Sales';
  define sales / sum 'Sum' f=dollar10.;
  define savg / mean 'Mean' f=dollar10.;
  rbreak after / summarize style=Header;
run;
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;What I want is like this.Look position of Canada and Pacific.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="normal_group - コピー.png" style="width: 412px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18008i554B53621C45558F/image-size/large?v=v2&amp;amp;px=999" role="button" title="normal_group - コピー.png" alt="normal_group - コピー.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please let me know the option / technique to display like this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 12:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-at-the-quot-end-quot-not-quot-first-quot-when-proc-report/m-p/429457#M106086</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2018-01-21T12:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show at the "end",not "first" when proc report and group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-at-the-quot-end-quot-not-quot-first-quot-when-proc-report/m-p/429483#M106089</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; You need to change the vertical adjustment to "bottom" in order to change the position of the text in the spanning row cell. So you will need to change the VJUST attribute, as shown in this code.&lt;BR /&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.shoes out=shoes;
by region subsidiary product;
where region in ('Canada' 'Pacific') and
      product contains 'Casual';
run;
  
proc report data=shoes nowd spanrows;
title 'VJUST=M';
  column region subsidiary product,(sales sales=savg);
 
  define region / group 
         style(column)=Header{vjust=m};
  define subsidiary / group
         style(column)=Header;
  define product / across 'Product Sales';
  define sales / sum 'Sum' f=dollar10.;
  define savg / mean 'Mean' f=dollar10.;
  rbreak after / summarize style=Header;
run;

proc report data=shoes nowd spanrows;
title 'VJUST=B';
  column region subsidiary product,(sales sales=savg);
 
  define region / group 
         style(column)=Header{vjust=b};
  define subsidiary / group
         style(column)=Header;
  define product / across 'Product Sales';
  define sales / sum 'Sum' f=dollar10.;
  define savg / mean 'Mean' f=dollar10.;
  rbreak after / summarize style=Header;
run;
 
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Jan 2018 18:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-at-the-quot-end-quot-not-quot-first-quot-when-proc-report/m-p/429483#M106089</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-01-21T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show at the "end",not "first" when proc report and group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-at-the-quot-end-quot-not-quot-first-quot-when-proc-report/m-p/429591#M106118</link>
      <description>&lt;P&gt;Hi,Cynthia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much !!&lt;/P&gt;&lt;P&gt;It worked very good!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,t_ar_taat&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="group_bottom.png" style="width: 533px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18019i15E6D9A67A111E20/image-size/large?v=v2&amp;amp;px=999" role="button" title="group_bottom.png" alt="group_bottom.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 12:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-at-the-quot-end-quot-not-quot-first-quot-when-proc-report/m-p/429591#M106118</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2018-01-22T12:14:02Z</dc:date>
    </item>
  </channel>
</rss>

