<?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 pdf. header line breaking in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-pdf-header-line-breaking/m-p/713448#M220109</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what my define statement is doing to cause a gap on the header and footer in pdf output (RTF looks good).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_1-1611341044072.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53809i827C571BEFFF312D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_1-1611341044072.png" alt="HitmonTran_1-1611341044072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file = " &amp;amp;pgmname..pdf" startpage=no style= TLF_CN_9;
option formchar="|----|+|---+=|-/\&amp;lt;&amp;gt;*" ls=70 ps=70 missing = " " nobyline nocenter nodate nonumber orientation=landscape;&lt;BR /&gt;
proc report data=final nowindows center headline headskip missing split='|';
    column   ord1 ord2    desc &amp;amp;alltrt all;
    define ord1      / order order=internal noprint;
	define ord2      / order order=internal noprint;
    define desc     / display " " style(header)=[just=left]    style(column)=[asis=on cellwidth=2.5 in ]   ; 
 run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if i use "left" my indentations are gone.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 18:47:49 GMT</pubDate>
    <dc:creator>HitmonTran</dc:creator>
    <dc:date>2021-01-22T18:47:49Z</dc:date>
    <item>
      <title>proc report pdf. header line breaking</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-pdf-header-line-breaking/m-p/713448#M220109</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what my define statement is doing to cause a gap on the header and footer in pdf output (RTF looks good).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_1-1611341044072.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53809i827C571BEFFF312D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_1-1611341044072.png" alt="HitmonTran_1-1611341044072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file = " &amp;amp;pgmname..pdf" startpage=no style= TLF_CN_9;
option formchar="|----|+|---+=|-/\&amp;lt;&amp;gt;*" ls=70 ps=70 missing = " " nobyline nocenter nodate nonumber orientation=landscape;&lt;BR /&gt;
proc report data=final nowindows center headline headskip missing split='|';
    column   ord1 ord2    desc &amp;amp;alltrt all;
    define ord1      / order order=internal noprint;
	define ord2      / order order=internal noprint;
    define desc     / display " " style(header)=[just=left]    style(column)=[asis=on cellwidth=2.5 in ]   ; 
 run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if i use "left" my indentations are gone.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 18:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-pdf-header-line-breaking/m-p/713448#M220109</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2021-01-22T18:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc report pdf. header line breaking</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-pdf-header-line-breaking/m-p/713474#M220122</link>
      <description>&lt;P&gt;Without your style and your data there really isn't any way to check what may be happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would start by reviewing the definition of your TLF_CN_9 style.&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 &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 20:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-pdf-header-line-breaking/m-p/713474#M220122</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-22T20:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc report pdf. header line breaking</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-pdf-header-line-breaking/m-p/713589#M220170</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="c:\temp\x.rtf" style=journal;
proc report data=sashelp.class nowd;
column name age dummy weight height;
define dummy/computed '   ' style(header column)={ bordertopcolor=white bordertopwidth=2
                                    borderbottomcolor=white borderbottomwidth=2 cellwidth=100};
compute dummy/character length=40;
dummy='    ';
endcomp;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2021-01-23 195009.png" style="width: 641px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53828iC7EE02348FD4BC5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2021-01-23 195009.png" alt="屏幕截图 2021-01-23 195009.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 11:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-pdf-header-line-breaking/m-p/713589#M220170</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-01-23T11:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc report pdf. header line breaking</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-pdf-header-line-breaking/m-p/713615#M220179</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; As already indicated by others, without knowing your style and your macro variable values and having some test data, it is nearly impossible to make a constructive suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; However, there are some things that you could fix that are just distractors and may or may not impact the output:&lt;/P&gt;
&lt;P&gt;1) OPTIONS:&amp;nbsp; You should NOT need the FORMCHAR option, that is a LISTING only option. Also, LS= and PS= are ignored by ODS PDF and actually inconsistent with your orientation=landscape. And, my understanding was that you should specify your OPTIONS before you open the ODS PDF destination, so I would absolutely change your OPTIONS statement so it was before the ODS PDF statement.&lt;/P&gt;
&lt;P&gt;2) PROC REPORT statement: HEADLINE and HEADSKIP are LISTING only options and ignored by ODS destinations like PDF. So I would recommend that you get rid of these options, they are doing nothing.&lt;/P&gt;
&lt;P&gt;3) DEFINE for DESC column: there are other ways to make a line indent other than using ASIS=ON. ODS PDF supports the LEFTMARGIN= option as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leftmargin_pdf.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53835i633321969D5B8FEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="leftmargin_pdf.png" alt="leftmargin_pdf.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;DIV id="tinyMceEditorCynthia_sas_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 19:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-pdf-header-line-breaking/m-p/713615#M220179</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-01-23T19:34:02Z</dc:date>
    </item>
  </channel>
</rss>

