<?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 ODS EXCEL, PROC TABULATE, line wrapping question in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-PROC-TABULATE-line-wrapping-question/m-p/341340#M18130</link>
    <description>&lt;P&gt;Can any one explain a work around to this issue where the &lt;EM&gt;wraptext:no&lt;/EM&gt; ( or &lt;EM&gt;wrap:no&lt;/EM&gt;) style attribute does not stop ODS EXCEL from wrapping fields (i.e. inserting line feeds).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value EDUCLAM
    16 = '4 YEARS OF COLLEG 4 YEARS OF COLLEGE'
    17 = '1 YEAR OF GRAD SC 1 YEAR OF GRAD SCHOOL'
    18 = '2 YEARS OF GRAD S 2 YEARS OF GRAD SCHOOL'
    19 = '3 YEARS OF GRAD S 3 YEARS OF GRAD SCSCHOOL'
    20 = '4 OR MORE YEARS O 4 OR MORE YEARS OF GRAD SCHOOL'
  ;
run;

data nowrap;
  infile datalines;
  input edu;
  format edu EDUCLAM.;
datalines;
16
17
20
;
run;

ods excel file="d.xlsx";
  PROC TABULATE DATA=WORK.NOWRAP ;
    VAR edu/ style=[tagattr='wraptext:no'];
/*    VAR edu/ style=[tagattr='wrap:no'];*/
    TABLE edu,(min Median max)*F=EDUCLAM.;
  run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Mar 2017 20:33:06 GMT</pubDate>
    <dc:creator>PhilC</dc:creator>
    <dc:date>2017-03-15T20:33:06Z</dc:date>
    <item>
      <title>ODS EXCEL, PROC TABULATE, line wrapping question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-PROC-TABULATE-line-wrapping-question/m-p/341340#M18130</link>
      <description>&lt;P&gt;Can any one explain a work around to this issue where the &lt;EM&gt;wraptext:no&lt;/EM&gt; ( or &lt;EM&gt;wrap:no&lt;/EM&gt;) style attribute does not stop ODS EXCEL from wrapping fields (i.e. inserting line feeds).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value EDUCLAM
    16 = '4 YEARS OF COLLEG 4 YEARS OF COLLEGE'
    17 = '1 YEAR OF GRAD SC 1 YEAR OF GRAD SCHOOL'
    18 = '2 YEARS OF GRAD S 2 YEARS OF GRAD SCHOOL'
    19 = '3 YEARS OF GRAD S 3 YEARS OF GRAD SCSCHOOL'
    20 = '4 OR MORE YEARS O 4 OR MORE YEARS OF GRAD SCHOOL'
  ;
run;

data nowrap;
  infile datalines;
  input edu;
  format edu EDUCLAM.;
datalines;
16
17
20
;
run;

ods excel file="d.xlsx";
  PROC TABULATE DATA=WORK.NOWRAP ;
    VAR edu/ style=[tagattr='wraptext:no'];
/*    VAR edu/ style=[tagattr='wrap:no'];*/
    TABLE edu,(min Median max)*F=EDUCLAM.;
  run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Mar 2017 20:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-PROC-TABULATE-line-wrapping-question/m-p/341340#M18130</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2017-03-15T20:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL, PROC TABULATE, line wrapping question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-PROC-TABULATE-line-wrapping-question/m-p/341358#M18131</link>
      <description>&lt;P&gt;I'm no ODS maven, but this gets closer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    VAR edu/ style=[tagattr='wraptext:no' width=100%];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Mar 2017 22:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-PROC-TABULATE-line-wrapping-question/m-p/341358#M18131</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-03-15T22:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL, PROC TABULATE, line wrapping question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-PROC-TABULATE-line-wrapping-question/m-p/341539#M18134</link>
      <description>&lt;P&gt;Seems like we're giving SAS a reason not the wraplines rather than it not wrapping lines because we used &lt;FONT face="courier new,courier"&gt;tagattr='wraptext:no'&lt;/FONT&gt;?&amp;nbsp; Indeed, it *&lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;&lt;EM&gt;is*&lt;/EM&gt; &lt;/STRONG&gt;&lt;/FONT&gt;closer; I can see now that&amp;nbsp;I can force the column widths with the ODS statement.&amp;nbsp; It's not very satisfying, but thanks for the response.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 12:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-PROC-TABULATE-line-wrapping-question/m-p/341539#M18134</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2017-03-16T12:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL, PROC TABULATE, line wrapping question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-PROC-TABULATE-line-wrapping-question/m-p/341679#M18138</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;VAR edu/ style=[width=100%];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17429"&gt;@LaurieF&lt;/a&gt;, right, just tried it with this line.&amp;nbsp; If one&amp;nbsp;uses no &lt;FONT face="courier new,courier"&gt;wraptext&lt;/FONT&gt; style command but one uses the &lt;FONT face="courier new,courier"&gt;width&lt;/FONT&gt; command, same result, no wrapping occurs.&amp;nbsp; What's happening is that no line feeds are being added to the lines of text.&amp;nbsp; This is a forced line wrapping imposed by the ODS system (maybe?) before Excel appies&amp;nbsp;its own wrapping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 17:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-PROC-TABULATE-line-wrapping-question/m-p/341679#M18138</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2017-03-16T17:06:51Z</dc:date>
    </item>
  </channel>
</rss>

