<?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: ods pdf text formatting in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335334#M75884</link>
    <description>Formchar is a LISTING only option. should not work for PDF or RTF, per the doc&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#n1dz7jdasx5t56n1rmlx346dyk6n.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#n1dz7jdasx5t56n1rmlx346dyk6n.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Thu, 23 Feb 2017 16:10:28 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-02-23T16:10:28Z</dc:date>
    <item>
      <title>ods pdf text formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335218#M75848</link>
      <description>&lt;P&gt;Hi All, i faced with a problem when creating .pdf output. At the moment output looks like this:&lt;/P&gt;&lt;P&gt;But i have to remove "~" symbols. For .rtf format it is working correctly ,just using escapechar="~". Is there any way to remove "~" using soome options or parameters in "ods pdf" ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%if &amp;amp;form=pdf %then %do;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods pdf file="&amp;amp;path.out/&amp;amp;prefix. Incidence of all Adverse Events.pdf" style=Journal; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;OPTIONS PAPERSIZE=A4 ORIENTATION=Portrait linesize=max;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ODS escapechar="~";&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;options missing=' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc report data=final style={protectspecialchars=yes} nowd missing split='@';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;columns col1 col2 col3 col4 ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;define col1 / display left 'System Organ Class@ Preferred Term' ; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;define col2 / display center 'Number @ of Patients' ; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;define col3 / display center 'Percentage @ of Patients'; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;define col4 / display center 'Number @ of Events'; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods &amp;amp;form close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I tried to use &lt;/EM&gt;&lt;STRONG&gt;col1='a0'x||strip(col1); &lt;/STRONG&gt;&lt;EM&gt;but it is working really strange, for some rows it is adding &amp;nbsp;1 blank and in some rows it is deleting combination of letters &lt;/EM&gt;&lt;STRONG&gt;'an'&amp;nbsp; &lt;/STRONG&gt;&lt;EM&gt;even in header ))).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Also i tried to use: &lt;/EM&gt;&lt;STRONG&gt;col1= ' ~{nbspace 4} ' ||strip(col1);&lt;/STRONG&gt; but in output it appeares as a text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13485i96B0B541AC1B551D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capturesssss.JPG" title="Capturesssss.JPG" /&gt;</description>
      <pubDate>Thu, 23 Feb 2017 13:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335218#M75848</guid>
      <dc:creator>Jeka</dc:creator>
      <dc:date>2017-02-23T13:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf text formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335286#M75869</link>
      <description>&lt;P&gt;If the ~ is embedded in the column, have you tried using the tranwrd function ot take it out of the text string? It would work like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NewVar=tranwrd(Yourvar,'~','');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Feb 2017 14:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335286#M75869</guid>
      <dc:creator>nehalsanghvi</dc:creator>
      <dc:date>2017-02-23T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf text formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335288#M75870</link>
      <description>&lt;P&gt;If the '~' is embedded in the column, have you tried using the tranwrd function ot take it out of the text string? It would work like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NewVar=tranwrd(Yourvar,'~','');&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 14:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335288#M75870</guid>
      <dc:creator>nehalsanghvi</dc:creator>
      <dc:date>2017-02-23T14:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf text formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335294#M75872</link>
      <description>Looking at your report, it appears that someone tried to fake out indention for some of the report rows by padding the row with tildes (~). I don't know why you have the protectspecialchars=yes, unless your data also has RTF control strings embedded in the data. You did not post the data, so it is nearly impossible to guess. &lt;BR /&gt;&lt;BR /&gt;You can accomplish the indention using the leftmargin style attribute, as I show here &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Indent-different-rows-of-a-column-in-RTF/td-p/215812" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Indent-different-rows-of-a-column-in-RTF/td-p/215812&lt;/A&gt; and here &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-proc-report-indent-column-conditionally/td-p/85624" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-proc-report-indent-column-conditionally/td-p/85624&lt;/A&gt; (with picture) and here &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Indent-and-background-color/td-p/131036" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Indent-and-background-color/td-p/131036&lt;/A&gt; and there are many other postings about LEFTMARGIN or INDENT that you could search for. Also, if you want to use RTF control strings, then \tab usually works to indent, as shown here &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/formatting-multiple-line-statements-in-proc-report/td-p/43637" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/formatting-multiple-line-statements-in-proc-report/td-p/43637&lt;/A&gt;, in which case you would need protectspecialchars=off.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 23 Feb 2017 14:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335294#M75872</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-02-23T14:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf text formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335311#M75876</link>
      <description>&lt;P&gt;Thank you all for your attention! I found the solution :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;col1=&lt;FONT color="#FF0000"&gt;'a0'x||'a0'x||'a0'x||'a0'x||'a0'x||&lt;/FONT&gt;strip(aeterm_pt);&amp;nbsp;&lt;/STRONG&gt;it is adding 5 spaces , but it works correctly &amp;nbsp;for .pdf and .rtf when using next options in proc report definition:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc report data=final style={protectspecialchars=on} nowd missing &lt;FONT color="#FF0000"&gt;formchar(2)='_' &lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt; split='@';&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 15:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335311#M75876</guid>
      <dc:creator>Jeka</dc:creator>
      <dc:date>2017-02-23T15:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf text formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335334#M75884</link>
      <description>Formchar is a LISTING only option. should not work for PDF or RTF, per the doc&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#n1dz7jdasx5t56n1rmlx346dyk6n.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#n1dz7jdasx5t56n1rmlx346dyk6n.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 23 Feb 2017 16:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-pdf-text-formatting/m-p/335334#M75884</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-02-23T16:10:28Z</dc:date>
    </item>
  </channel>
</rss>

