<?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 proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/529787#M144810</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in creating&amp;nbsp; report, I am trying to list the first and last names of individuals with a&amp;nbsp; count of surveys completed. In my report, one individual may be listed more than once, however proc report leaves a blank space (to represent a duplicated name). Is there any way to have the name printed again, instead of leaving&amp;nbsp; blank?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=ITr out=ITre(drop=_break_) nowd;&lt;BR /&gt;column ID LName FName survey n;&lt;BR /&gt;define ID/Group;&lt;BR /&gt;define LName/Order 'Last';&lt;BR /&gt;define FName/Order 'First';&lt;BR /&gt;define survey/across 'surveys for 2018';&lt;BR /&gt;rbreak after / dol skip summarize ;&lt;BR /&gt;compute after;&lt;BR /&gt;ID='Total';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 18:09:03 GMT</pubDate>
    <dc:creator>JibJam221</dc:creator>
    <dc:date>2019-01-24T18:09:03Z</dc:date>
    <item>
      <title>proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/529787#M144810</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in creating&amp;nbsp; report, I am trying to list the first and last names of individuals with a&amp;nbsp; count of surveys completed. In my report, one individual may be listed more than once, however proc report leaves a blank space (to represent a duplicated name). Is there any way to have the name printed again, instead of leaving&amp;nbsp; blank?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=ITr out=ITre(drop=_break_) nowd;&lt;BR /&gt;column ID LName FName survey n;&lt;BR /&gt;define ID/Group;&lt;BR /&gt;define LName/Order 'Last';&lt;BR /&gt;define FName/Order 'First';&lt;BR /&gt;define survey/across 'surveys for 2018';&lt;BR /&gt;rbreak after / dol skip summarize ;&lt;BR /&gt;compute after;&lt;BR /&gt;ID='Total';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/529787#M144810</guid>
      <dc:creator>JibJam221</dc:creator>
      <dc:date>2019-01-24T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/529791#M144811</link>
      <description>Try adding display as an option after the slash.</description>
      <pubDate>Thu, 24 Jan 2019 18:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/529791#M144811</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-24T18:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/529798#M144814</link>
      <description>&lt;P&gt;thanks! Is there any way I could do order and display for the ID? Id the the ID to show up both times as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/529798#M144814</guid>
      <dc:creator>JibJam221</dc:creator>
      <dc:date>2019-01-24T18:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/529940#M144875</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Without data, it's hard to run your code, especially since you have an ACROSS variable. However, the issue of blanks for ORDER or GROUP items will happen whether you have ACROSS variables or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But, making some fake data based on SASHELP.CLASS,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show_default_blanks.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26567iC97633FFBF5A17C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="show_default_blanks.png" alt="show_default_blanks.png" /&gt;&lt;/span&gt; &lt;/P&gt;
&lt;P&gt;and then running PROC REPORT, you can see where the duplicate values were suppressed. However you can cause PROC REPORT to "fill-in" the&amp;nbsp; blanks for you using a COMPUTE blocks, like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="report_method1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26568iC72B498F4B7D7BA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="report_method1.png" alt="report_method1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and there is an alternate coding technique that would produce the same results. You can make all the changes in the COMPUTE block for name because of the left-to-right rule of PROC REPORT, the COMPUTE block for NAME can "touch" the cells for ID and CHARAGE in order to fill in the blanks The changed code is shown below. The rest of the REPORT code is the same:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="report_method2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26569i919B1562A290C362/image-size/large?v=v2&amp;amp;px=999" role="button" title="report_method2.png" alt="report_method2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 01:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/529940#M144875</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-25T01:27:48Z</dc:date>
    </item>
  </channel>
</rss>

