<?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 ODSTEXT text justification is fickle in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437364#M20400</link>
    <description>&lt;P&gt;Nevermind - turns out you have to include 'just=' separately:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		p "^S={font_style= italic just= c}hello"/style=[just=c];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 21:59:20 GMT</pubDate>
    <dc:creator>sm4</dc:creator>
    <dc:date>2018-02-14T21:59:20Z</dc:date>
    <item>
      <title>PROC ODSTEXT text justification is fickle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437329#M20398</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I switched to using proc odstext from 'ods rtf text=' statements because the latter did not allow page breaks to work. But proc odstext is giving me some issues with my text justification.&amp;nbsp;Specifically, it will not center-justify text&amp;nbsp;that does not exceed a certain length.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For example, the output of the following is centered:&lt;/P&gt;&lt;PRE&gt;proc odstext;&lt;BR /&gt;
p "^S={font_size= 9pt font_style= italic just= c}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.";

run;&lt;/PRE&gt;&lt;P&gt;But the output of the following stays left-justified:&lt;/P&gt;&lt;PRE&gt;proc odstext;

p "^S={font_size= 9pt font_style= italic just= c}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.";

run;&lt;/PRE&gt;&lt;P&gt;I have tried to find the exact threshold, but it's a little difficult to tell when the line is exactly the length of the page whether the text is definitely centered or not.&lt;BR /&gt;&lt;BR /&gt;Am I missing something obvious here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437329#M20398</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-02-14T20:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT text justification is fickle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437362#M20399</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the tip sheet:&lt;A href="https://support.sas.com/rnd/base/ods/Tipsheet_ListTextBlks.pdf" target="_blank"&gt;https://support.sas.com/rnd/base/ods/Tipsheet_ListTextBlks.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The techniques shown on the tip sheet worked for me without needing ESCAPECHAR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;cynthia&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="proc_odstext.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18595i7A6A08A767406345/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc_odstext.png" alt="proc_odstext.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437362#M20399</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-02-14T21:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT text justification is fickle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437364#M20400</link>
      <description>&lt;P&gt;Nevermind - turns out you have to include 'just=' separately:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		p "^S={font_style= italic just= c}hello"/style=[just=c];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437364#M20400</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-02-14T21:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT text justification is fickle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437365#M20401</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw this right after I posted&amp;nbsp;myself, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 22:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437365#M20401</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-02-14T22:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT text justification is fickle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437367#M20402</link>
      <description>&lt;P&gt;Perhaps you need to look at the examples for Proc ODSTEXT a bit more. For style elements affecting an entire P statement the syntax should look a bit more like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc odstext;
p "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx." /
  style=[font_size= 9pt font_style= italic just= c];
run;
proc odstext;
p "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx." /
  style=[font_size= 9pt font_style= italic just= c];
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or perhaps:&lt;/P&gt;
&lt;PRE&gt;proc odstext;
p "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx." /
  style=[font_size= 9pt font_style= italic just= c];
p "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx." /
  style=[font_size= 9pt font_style= italic just= c];
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also which ODS destination are you using? For destinations that will honor the Papersize option that may help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I note in my html results that resizing the window can make the text appear not centered relative to the other line of text when the window is reduced in width.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 22:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437367#M20402</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-14T22:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT text justification is fickle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437368#M20403</link>
      <description>Hi:&lt;BR /&gt;  I agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;. There is no need to use ODS ESCAPECHAR when there is syntax that will do everything you want by adapting to the style override method shown in our examples and the tip sheet.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 14 Feb 2018 22:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437368#M20403</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-02-14T22:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT text justification is fickle</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437651#M20404</link>
      <description>&lt;P&gt;I see, thank you!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am using RTF. Mostly formatting varies within my statements, but I will switch to that when it doesn't.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-ODSTEXT-text-justification-is-fickle/m-p/437651#M20404</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-02-15T15:51:11Z</dc:date>
    </item>
  </channel>
</rss>

