<?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 Question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Question/m-p/123592#M33960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm having a hard time visualizing your data from just seeing your code. There is not anything like a conditional NOPRINT with PROC REPORT. However, when you are in an ACROSS scenario, PROC REPORT tries to help you out by "completing" all the categories under an ACROSS item. Sometimes, this is what you want; sometimes not. I would recommend that you try to turn off the automatic completion of columns by using NOCOMPLETECOLS statment in your PROC REPORT code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=xxx.yyy nowd &lt;SPAN style="color: #3366ff;"&gt;nocompletecols&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;...more code...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If that doesn't work for you, then you might want to open a track with Tech Support. Running PROC REPORT twice is one option; there might also be a way to manipulate your data so that you have some kind of better type indicator variable for each of your columns and then you have a simple COUNTVAR for each type indicator variable. At any rate, Tech Support can look at all of your data and all of your code and help you come to the best solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 16:59:15 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-09-17T16:59:15Z</dc:date>
    <item>
      <title>Proc Report Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Question/m-p/123589#M33957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on a project in which I am looking at three different types of patients. For two of the patient types, there is a count variable, a Bed to RN variable, and an AVS to ED Departure Variable. The third patient type has the Count and Bed to RN variables, but instead of the AVS to ED Departure variable, it has an IP Bed Ready variable. Since I am reporting by type, this leaves three blank columns in my report. I can't do a noprint option because it will get rid of the variable across the board, not just for the patient type. Is there a way I can do a conditional noprint option? I have attached my code so hopefully it makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 15:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Question/m-p/123589#M33957</guid>
      <dc:creator>msricha2</dc:creator>
      <dc:date>2012-09-17T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Question/m-p/123590#M33958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want your output to look like? That will probably get better responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 15:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Question/m-p/123590#M33958</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-09-17T15:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Question/m-p/123591#M33959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if there's a difficult solution or not, but there's certainly an easy one.&amp;nbsp; Why not just run PROC REPORT twice?&amp;nbsp; Use a different WHERE statement to select the TYPE(s), and change the final column appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 15:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Question/m-p/123591#M33959</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-09-17T15:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Question/m-p/123592#M33960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm having a hard time visualizing your data from just seeing your code. There is not anything like a conditional NOPRINT with PROC REPORT. However, when you are in an ACROSS scenario, PROC REPORT tries to help you out by "completing" all the categories under an ACROSS item. Sometimes, this is what you want; sometimes not. I would recommend that you try to turn off the automatic completion of columns by using NOCOMPLETECOLS statment in your PROC REPORT code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=xxx.yyy nowd &lt;SPAN style="color: #3366ff;"&gt;nocompletecols&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;...more code...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If that doesn't work for you, then you might want to open a track with Tech Support. Running PROC REPORT twice is one option; there might also be a way to manipulate your data so that you have some kind of better type indicator variable for each of your columns and then you have a simple COUNTVAR for each type indicator variable. At any rate, Tech Support can look at all of your data and all of your code and help you come to the best solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 16:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Question/m-p/123592#M33960</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-09-17T16:59:15Z</dc:date>
    </item>
  </channel>
</rss>

