<?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: Repeating Headers in Output for Proc Report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501461#M133703</link>
    <description>&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data person;&lt;BR /&gt;input column1 $1-4 column2 $6-7;&lt;BR /&gt;datalines;&lt;BR /&gt;AAAA C1&lt;BR /&gt;AAAA C2&lt;BR /&gt;AAAA C3&lt;BR /&gt;BBBB D1&lt;BR /&gt;BBBB D2&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=work.PERSON;&lt;BR /&gt;column column1column2;&lt;/P&gt;&lt;P&gt;define column1 /group order=internal;&lt;BR /&gt;define column2 /display;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 139px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23768i08B3B3C08E0738B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, your decision makes two tables instead of one:&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.png" style="width: 140px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23769i82895E8FB8242704/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic2.png" alt="pic2.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is:&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic3.png" style="width: 137px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23770i285017D03DF8B6C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic3.png" alt="pic3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 13:20:59 GMT</pubDate>
    <dc:creator>elessar</dc:creator>
    <dc:date>2018-10-04T13:20:59Z</dc:date>
    <item>
      <title>Repeating Headers in Output for Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501415#M133686</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would like to know how to customize my report1 in PROC REPORT to look as report2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is what I have now:&amp;nbsp;&lt;SPAN&gt;Report1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;column1_____column2_____&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAAA_______C1_________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAAA_______C2_________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAAA_______C3_________&lt;BR /&gt;BBBB_______D1_________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BBBB_______D2_________&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is what&amp;nbsp;I want to have: Report2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;column1_____column2_____&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAAA_______C1_________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAAA_______C2_________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAAA_______C3_________&lt;BR /&gt;column1_____column2_____&lt;BR /&gt;BBBB_______D1_________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BBBB_______D2_________&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to repeat a header before each section which&amp;nbsp;group by column1.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 10:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501415#M133686</guid>
      <dc:creator>elessar</dc:creator>
      <dc:date>2018-10-04T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating Headers in Output for Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501418#M133688</link>
      <description>&lt;P&gt;With nothing to work with I can't provide code, at a guess I would say set the options to be break on nothing - How you do this depends on the output type.&amp;nbsp; Also set:&lt;/P&gt;
&lt;PRE&gt;options nobyline;&lt;/PRE&gt;
&lt;P&gt;Then do your proc report with:&lt;/P&gt;
&lt;PRE&gt;by column1;&lt;/PRE&gt;
&lt;P&gt;This will print each by group, with headers one after the other, again depending on output type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When posting a question its very important to tell us some information about the question as we can't see your machine.&amp;nbsp; Show your code, present some test data in the form of a datastep or use the sashelp library datasets to show what you mean.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 10:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501418#M133688</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-04T10:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating Headers in Output for Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501437#M133697</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class nowd noheader;
column sex name  age;
define sex/group;
define name /display;
define age/display;
compute before sex;
line @1 'Sex' @6 'Name' @14 'Age';
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Oct 2018 11:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501437#M133697</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-04T11:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating Headers in Output for Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501461#M133703</link>
      <description>&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data person;&lt;BR /&gt;input column1 $1-4 column2 $6-7;&lt;BR /&gt;datalines;&lt;BR /&gt;AAAA C1&lt;BR /&gt;AAAA C2&lt;BR /&gt;AAAA C3&lt;BR /&gt;BBBB D1&lt;BR /&gt;BBBB D2&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=work.PERSON;&lt;BR /&gt;column column1column2;&lt;/P&gt;&lt;P&gt;define column1 /group order=internal;&lt;BR /&gt;define column2 /display;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 139px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23768i08B3B3C08E0738B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, your decision makes two tables instead of one:&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.png" style="width: 140px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23769i82895E8FB8242704/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic2.png" alt="pic2.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is:&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic3.png" style="width: 137px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23770i285017D03DF8B6C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic3.png" alt="pic3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 13:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501461#M133703</guid>
      <dc:creator>elessar</dc:creator>
      <dc:date>2018-10-04T13:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating Headers in Output for Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501471#M133707</link>
      <description>&lt;P&gt;Well, two tables is effectively what your asking for, a table is defined as one row for headers, then a row for each data item.&amp;nbsp; In the given case, can you not shrink the gap between the two, margins and such like.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;has a nice suggestion with putting a row out per by group rather than breaking the table.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 13:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeating-Headers-in-Output-for-Proc-Report/m-p/501471#M133707</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-04T13:37:05Z</dc:date>
    </item>
  </channel>
</rss>

