<?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 Excel, PROC ODSTEXT and tagattr=wraptext in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-PROC-ODSTEXT-and-tagattr-wraptext/m-p/556926#M22729</link>
    <description>&lt;P&gt;Got a badge for answering my own question.&amp;nbsp; I'm somewhere between "Yoohoo" and "wait -- what's going on here?"&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2019 19:46:34 GMT</pubDate>
    <dc:creator>PhilC</dc:creator>
    <dc:date>2019-05-07T19:46:34Z</dc:date>
    <item>
      <title>ODS Excel, PROC ODSTEXT and tagattr=wraptext</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-PROC-ODSTEXT-and-tagattr-wraptext/m-p/556826#M22727</link>
      <description>&lt;P&gt;Why does the second and third lines wrap, despite using&amp;nbsp;"tagattr=wraptext", while the first one does not wrap?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect all three lines &lt;EM&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to wrap.&amp;nbsp; Do you have any ideas about what I am doing incorrectly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel
  file=  "&amp;amp;Folder\wraptext.xlsx" 
  options (
    Absolute_column_width = '  140pt, 59pt'
    /*I need these column widths for this to work with 
    a table that I will add after this procedure.*/
    );

  Title;footnote;
  proc odstext;
    p "Discharges from (screen) and Investigation Records" 
       /style=[tagattr='wraptext:no' fontsize=14pt font_weight=bold];
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with appropriate HIPAA-compliant business agreements."
       /style=[tagattr='wraptext:no' ];
    p "This file may contain information associated with pre-trial investigations.  It is exempt from public record disclosure unless cleared by the appropriate, qualified record custodian."
       /style=[tagattr='wraptext:no' ];
  run;

  ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets identify two different kinds of line wrapping.&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;First, there is the line wrapping&amp;nbsp;ODS EXCEL implements (fixed with the&amp;nbsp;option Flow)&lt;/LI&gt;&lt;LI&gt;Second, the line wrapping done, or not done,&amp;nbsp;because of the specific Excel, XML schema level, formatting&lt;FONT color="#000000"&gt; code "WrapText".&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The latter line wrapping is happening, but I am truly only concerned about the former type of line wrapping.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- SAS Software ---&lt;BR /&gt;&amp;nbsp; SAS Enterprise Guide version: 7.15 HF7 (7.100.5.6177)&lt;BR /&gt;&amp;nbsp; SAS System version: 9405.100.22960.39165&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 18:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-PROC-ODSTEXT-and-tagattr-wraptext/m-p/556826#M22727</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2019-05-07T18:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, PROC ODSTEXT and tagattr=wraptext</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-PROC-ODSTEXT-and-tagattr-wraptext/m-p/556924#M22728</link>
      <description>&lt;P&gt;Too slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok I figured this out.&amp;nbsp; I started varying the length of the string and I found that there was a threshold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel
  file=  "&amp;amp;Folder\wraptext.xlsx" 
  options (
    Absolute_column_width = '  140pt, 59pt'
    );

  Title;footnote;
  proc odstext;
    p "Discharges from (screen) and Investigation Records" 
       /style=[tagattr='WrapText:0' fontsize=14pt font_weight=bold];
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners wi";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with a";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with appro";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with appropria";
    p " ";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with ap";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with app";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with appr";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with appro";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with approp";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with appropr";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with appropri";
    p "This file contains HIPAA protected healthcare information.  It is intended for use within this agency and with authorized partners with appropria";

run;

  ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;The magic number 139.&amp;nbsp; (???)&amp;nbsp; So why?&amp;nbsp; I wonder.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 19:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-PROC-ODSTEXT-and-tagattr-wraptext/m-p/556924#M22728</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2019-05-07T19:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, PROC ODSTEXT and tagattr=wraptext</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-PROC-ODSTEXT-and-tagattr-wraptext/m-p/556926#M22729</link>
      <description>&lt;P&gt;Got a badge for answering my own question.&amp;nbsp; I'm somewhere between "Yoohoo" and "wait -- what's going on here?"&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 19:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-PROC-ODSTEXT-and-tagattr-wraptext/m-p/556926#M22729</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2019-05-07T19:46:34Z</dc:date>
    </item>
  </channel>
</rss>

