<?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 group issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490915#M128603</link>
    <description>&lt;P&gt;Could you post the solution that work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 17:02:16 GMT</pubDate>
    <dc:creator>shahsn11</dc:creator>
    <dc:date>2018-08-29T17:02:16Z</dc:date>
    <item>
      <title>Proc report group issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490073#M128115</link>
      <description>&lt;P&gt;Below is my code and output.&lt;/P&gt;&lt;P&gt;data a;&lt;BR /&gt;input gr $ TRT $ Visno $ Param $ value;&lt;BR /&gt;datalines;&lt;BR /&gt;Gr1 TRT1 v1 A 8&lt;BR /&gt;Gr1 TRT1 v1 B 6&lt;BR /&gt;Gr1 TRT1 v1 C 5&lt;BR /&gt;Gr1 TRT1 v2 A 6&lt;BR /&gt;Gr1 TRT1 v2 B 7&lt;BR /&gt;Gr1 TRT1 v3 C 8&lt;BR /&gt;Gr1 TRT2 v1 A 3&lt;BR /&gt;Gr1 TRT2 v1 B 7&lt;BR /&gt;Gr1 TRT2 v1 C 5&lt;BR /&gt;Gr1 TRT2 v2 A 10&lt;BR /&gt;Gr1 TRT2 v2 B 6&lt;BR /&gt;Gr1 TRT2 v3 C 10&lt;BR /&gt;Gr2 TRT3 v1 A 10&lt;BR /&gt;Gr2 TRT3 v1 B 16&lt;BR /&gt;Gr2 TRT3 v1 C 18&lt;BR /&gt;Gr2 TRT3 v2 A 14&lt;BR /&gt;Gr2 TRT3 v2 B 11&lt;BR /&gt;Gr2 TRT3 v3 C 15&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc report data=a nocompletecols;&lt;BR /&gt;column gr trt visno, (param, value);&lt;BR /&gt;define gr / group ;&lt;BR /&gt;define trt / group;&lt;BR /&gt;define visno / across;&lt;BR /&gt;define param / across;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp; output, the gr column has a blank and it should be filled with 'Gr1'.&amp;nbsp; How can I fill the blank with gr value? please advice thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the output, with blank in gr column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.JPG" style="width: 455px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22800i2968A2F51CC0FA4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.JPG" alt="Capture1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is what I want,&amp;nbsp; Filled with Gr1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.JPG" style="width: 0px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22797i08AF269586E5417A/image-size/small?v=v2&amp;amp;px=200" width="0" height="0" role="button" title="Capture1.JPG" alt="Capture1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 436px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22798i42107A72979C4C84/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&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, 27 Aug 2018 13:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490073#M128115</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2018-08-27T13:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report group issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490154#M128159</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/100692"&gt;@Niugg2010&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most probably, you can adapt the solution I provided to another user in 2016:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Report-How-to-let-a-group-variable-show-up-multiple-times/m-p/267231#M15775" target="_blank"&gt;PDF Report: How to let a group variable show up multiple times&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I think in the last COMPUTE block you won't need the IF condition.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 16:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490154#M128159</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-08-27T16:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report group issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490177#M128176</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;If there is an option to control grouped value display, it will be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 17:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490177#M128176</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2018-08-27T17:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report group issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490915#M128603</link>
      <description>&lt;P&gt;Could you post the solution that work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 17:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490915#M128603</guid>
      <dc:creator>shahsn11</dc:creator>
      <dc:date>2018-08-29T17:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report group issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490924#M128609</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Below is my code based on the above link method. This works well, but not best.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=a nocompletecols;&lt;BR /&gt;column gr _gr trt visno, (param, value);&lt;BR /&gt;define gr / group noprint;&lt;BR /&gt;define trt / group;&lt;BR /&gt;define visno / across;&lt;BR /&gt;define param / across;&lt;BR /&gt;define _gr/ computed;&lt;/P&gt;&lt;P&gt;compute before gr;&lt;BR /&gt;temp=gr;&lt;BR /&gt;endcomp;&lt;BR /&gt;compute _gr / character length=8;&lt;BR /&gt;_gr=temp;&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 17:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-group-issue/m-p/490924#M128609</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2018-08-29T17:45:00Z</dc:date>
    </item>
  </channel>
</rss>

