<?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: Row titles (header) not repeating 'correctly' in pdf in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/600990#M23450</link>
    <description>&lt;P&gt;You should provide some example data that we can test or possibly modify to demonstrate solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The core cause of the issue is that you are using more columns than fit across the "page" and controlling how to show a column across the break from width. If you do not need to print this on paper you may want to try changing the PAPERSIZE system option to accommodate wider columns.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2019 15:09:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-11-01T15:09:22Z</dc:date>
    <item>
      <title>Row titles (header) not repeating 'correctly' in pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/600974#M23448</link>
      <description>&lt;P&gt;Code (we are on 9.3) is the following and have attached the output pdf. Rather than repeat the clinic name and date on the next page(s) it is repeating on each adjacent row. I am fairly new to SAS so any help is much appreciated.. Thanks.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=landscape;
 ods listing close;
 ods pdf file="dummy_opencharts.pdf" 
         notoc startpage=no;
     
 title  "Clinic Summary - Physician Open Chart Report (for incomplete charts more than 14* days old)";
 footnote1 'Each open chart will have a $10.00 fee based upon the weekly InBasket report';
 footnote2 '*- Starting on 1/1/2020 penalty will apply to incomplete charts more than 7 days old';

 proc report data=tmp3 nowindows nowd spanrows
    style(report)={font_face=times font_size=1}
    style(column)={just=center font_face=times background=white foreground=black
                 font_size=1 cellwidth=.6in}
    style(header)={just=center font_face=times cellheight=.7in font_size=1
                 foreground=black cellwidth=.6in background=white};
    column scheduling_department 
           report_dt 
           unclosed_14_plus_num 
           unclosed_14_plus_amt
           transcription_14_plus_num 
           transcription_14_plus_amt
           unsigned_esig_14_plus_num 
           unsigned_esig_14_plus_amt
           hospital_14_plus_num 
           hospital_14_plus_amt
           cosigns_14_plus_num  
           cosigns_14_plus_amt
           total_14_plus_num    
           total_14_plus_amt
           unclosed_8_plus_num
	   unclosed_8_plus_amt
	   transcription_8_plus_num
	   transcription_8_plus_amt
	   unsigned_esig_8_plus_num
	   unsigned_esig_8_plus_amt
	   hospital_8_plus_num
	   hospital_8_plus_amt
	   cosigns_8_plus_num
	   cosigns_8_plus_amt
           total_8_plus_num
           ;
    define scheduling_department / group
       style(header)={vjust=middle}
       style(column)={vjust=middle};
    define report_dt / order order=internal format=mmddyy10.
       style(header)={vjust=middle}
       style(column)={vjust=middle};        
    break   after scheduling_department / summarize;
    compute after scheduling_department; line ' '; endcomp ;
 run;

 ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Nov 2019 14:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/600974#M23448</guid>
      <dc:creator>manateaz</dc:creator>
      <dc:date>2019-11-01T14:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Row titles (header) not repeating 'correctly' in pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/600976#M23449</link>
      <description>&lt;P&gt;I see now why the repeated adjacent row (for the summarizing) but still need to figure out how to display the header row titles (scheduling_department and report_dt) on subsequent pages&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 14:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/600976#M23449</guid>
      <dc:creator>manateaz</dc:creator>
      <dc:date>2019-11-01T14:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Row titles (header) not repeating 'correctly' in pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/600990#M23450</link>
      <description>&lt;P&gt;You should provide some example data that we can test or possibly modify to demonstrate solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The core cause of the issue is that you are using more columns than fit across the "page" and controlling how to show a column across the break from width. If you do not need to print this on paper you may want to try changing the PAPERSIZE system option to accommodate wider columns.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 15:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/600990#M23450</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-01T15:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Row titles (header) not repeating 'correctly' in pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/601010#M23451</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
 ods csv file = "dummy_charts.txt";
 proc print data=tmp3; run;
 ods csv close;
 ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let me know if the text file works (exported the sas dataset tmp3 as a csv)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 16:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/601010#M23451</guid>
      <dc:creator>manateaz</dc:creator>
      <dc:date>2019-11-01T16:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Row titles (header) not repeating 'correctly' in pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/601045#M23452</link>
      <description>&lt;P&gt;Thanks for the suggestions. This does need to be print-friendly but I may see if legal paper size and shrinking the columns will print everything on one page if I can't get the headers to repeat.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 18:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/601045#M23452</guid>
      <dc:creator>manateaz</dc:creator>
      <dc:date>2019-11-01T18:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Row titles (header) not repeating 'correctly' in pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/601088#M23453</link>
      <description>&lt;P&gt;Another possible approach requires restructuring your data. You have apparently two similar measures at different time frames:&lt;/P&gt;
&lt;PRE&gt;           unclosed_14_plus_num 
           unclosed_14_plus_amt
           transcription_14_plus_num 
           transcription_14_plus_amt
           unsigned_esig_14_plus_num 
           unsigned_esig_14_plus_amt
           hospital_14_plus_num 
           hospital_14_plus_amt
           cosigns_14_plus_num  
           cosigns_14_plus_amt
           total_14_plus_num    
           total_14_plus_amt
           unclosed_8_plus_num
	   unclosed_8_plus_amt
	   transcription_8_plus_num
	   transcription_8_plus_amt
	   unsigned_esig_8_plus_num
	   unsigned_esig_8_plus_amt
	   hospital_8_plus_num
	   hospital_8_plus_amt
	   cosigns_8_plus_num
	   cosigns_8_plus_amt
           total_8_plus_num
&lt;/PRE&gt;
&lt;P&gt;I would be tempted to create a variable with the "14_plus" or "8_plus" as an additional and then have the variables reduced to&lt;/P&gt;
&lt;PRE&gt;unclosed_num 
unclosed_amt
transcription_num 
transcription_amt
unsigned_esig_num 
unsigned_esig_amt
hospital_num 
hospital_amt
cosigns_num  
cosigns_amt
total_num    
total_amt
&lt;/PRE&gt;
&lt;P&gt;And using that time frame variable a grouping variable to control things:&lt;/P&gt;
&lt;P&gt;Something along the lines of :&lt;/P&gt;
&lt;PRE&gt;proc report data=tmp3 nowindows nowd spanrows
    style(report)={font_face=times font_size=1}
    style(column)={just=center font_face=times background=white foreground=black
                 font_size=1 cellwidth=.6in}
    style(header)={just=center font_face=times cellheight=.7in font_size=1
                 foreground=black cellwidth=.6in background=white};
    column timeframe&lt;BR /&gt;           scheduling_department 
           report_dt 
           
            unclosed_num 
            unclosed_amt
            transcription_num 
            transcription_amt
            unsigned_esig_num 
            unsigned_esig_amt
            hospital_num 
            hospital_amt
            cosigns_num  
            cosigns_amt
            total_num    
            total_amt
   ;
    define timeframe /group;
    define scheduling_department / group
       style(header)={vjust=middle}
       style(column)={vjust=middle};
    define report_dt / order order=internal format=mmddyy10.
       style(header)={vjust=middle}
       style(column)={vjust=middle};        
    break   after scheduling_department / summarize;
    compute after scheduling_department; line ' '; endcomp ;
 run;
&lt;/PRE&gt;
&lt;P&gt;Or possibly as an Across variable&lt;/P&gt;
&lt;PRE&gt;proc report data=tmp3 nowindows nowd spanrows
    style(report)={font_face=times font_size=1}
    style(column)={just=center font_face=times background=white foreground=black
                 font_size=1 cellwidth=.6in}
    style(header)={just=center font_face=times cellheight=.7in font_size=1
                 foreground=black cellwidth=.6in background=white};
    column scheduling_department 
           report_dt 
           timeframe,(
            unclosed_num 
            unclosed_amt
            transcription_num 
            transcription_amt
            unsigned_esig_num 
            unsigned_esig_amt
            hospital_num 
            hospital_amt
            cosigns_num  
            cosigns_amt
            total_num    
            total_amt )
   ;
    define timeframe /across;
    define scheduling_department / group
       style(header)={vjust=middle}
       style(column)={vjust=middle};
    define report_dt / order order=internal format=mmddyy10.
       style(header)={vjust=middle}
       style(column)={vjust=middle};        
    break   after scheduling_department / summarize;
    compute after scheduling_department; line ' '; endcomp ;
 run;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Nov 2019 20:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-titles-header-not-repeating-correctly-in-pdf/m-p/601088#M23453</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-01T20:39:36Z</dc:date>
    </item>
  </channel>
</rss>

