<?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: Removing header in a PROC PRINT report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-header-in-a-PROC-PRINT-report/m-p/702738#M215255</link>
    <description>&lt;P&gt;Also keep an eye on&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Removing-table-headers-in-a-PROC-PRINT-report/td-p/702701" target="_blank" rel="noopener"&gt;this discussion&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 06:17:51 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-12-01T06:17:51Z</dc:date>
    <item>
      <title>Removing header in a PROC PRINT report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-header-in-a-PROC-PRINT-report/m-p/702735#M215253</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use a PROC PRINT step to display only the subjects who died from a stroke from my data set. I am already satisfied with almost every part of the data set, but I would like to remove a line above my table where it says "Cause of Death Code = Stroke" just below my Title.&lt;/P&gt;&lt;P&gt;This is the code I have been working with:&lt;/P&gt;&lt;P&gt;PROC SORT&lt;BR /&gt;DATA = Hypdt.Stroke&lt;BR /&gt;OUT = WORK.hypdta_ST;&lt;BR /&gt;BY DESCENDING CODCd SSN ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TITLE1 "Subjects Who Died from #BYVAL(CODCd)";&lt;BR /&gt;PROC PRINT data= WORK.hypdta_ST&lt;BR /&gt;SPLIT = '*'&lt;BR /&gt;NOOBS ;&lt;BR /&gt;By DESCENDING CODCd;&lt;BR /&gt;PAGEBY CODCd;&lt;BR /&gt;ID SSN;&lt;BR /&gt;VAR WtLb BMI SBP;&lt;BR /&gt;LABEL SSN = '* Soc Sec * Number'&lt;BR /&gt;WtLb = '* Subject * Weight'&lt;BR /&gt;BMI = 'Body * Mass * Index'&lt;BR /&gt;SBP = 'Systolic * Blood * Pressure';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;The result I am getting is displayed below. I am not concerned with the values displayed inside the table. I am simply trying to remove the line below the title. Any guidance would be greatly appreciated.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sherricj18_1-1607906379779.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52551i2EB7515EA6664779/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sherricj18_1-1607906379779.png" alt="sherricj18_1-1607906379779.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, 14 Dec 2020 00:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-header-in-a-PROC-PRINT-report/m-p/702735#M215253</guid>
      <dc:creator>James18</dc:creator>
      <dc:date>2020-12-14T00:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Removing header in a PROC PRINT report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-header-in-a-PROC-PRINT-report/m-p/702737#M215254</link>
      <description>&lt;P&gt;I believe you are seeing&amp;nbsp;&lt;SPAN&gt;the "Cause of Death Code = Heart Failure" line under your title because of a few things. First you're using a BYVAL option in your title which is used&amp;nbsp;to customize titles to values of the BY variable. Additionally you're using a BY statement and a PAGEBY statement. The PAGEBY statement is needed for the #BYVAL option to display a different title on each page of a report.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Try changing your title1 to "Subjects Who Died from Heart Failure" and removing the BY and PAGEBY statements. Instead, use a WHERE statement to display the five subjects who died from heart failure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I suggest trying the following code:&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2020-11-30 at 11.05.13 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52199iF308526879BA2484/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-11-30 at 11.05.13 PM.png" alt="Screen Shot 2020-11-30 at 11.05.13 PM.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;I hope this is helpful!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 06:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-header-in-a-PROC-PRINT-report/m-p/702737#M215254</guid>
      <dc:creator>mvhoya</dc:creator>
      <dc:date>2020-12-01T06:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Removing header in a PROC PRINT report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-header-in-a-PROC-PRINT-report/m-p/702738#M215255</link>
      <description>&lt;P&gt;Also keep an eye on&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Removing-table-headers-in-a-PROC-PRINT-report/td-p/702701" target="_blank" rel="noopener"&gt;this discussion&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 06:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-header-in-a-PROC-PRINT-report/m-p/702738#M215255</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-01T06:17:51Z</dc:date>
    </item>
  </channel>
</rss>

