<?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 REPORT avoid splitting column value on word boundary in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-avoid-splitting-column-value-on-word-boundary/m-p/522592#M73446</link>
    <description>Hi:&lt;BR /&gt;  There's no option like that that I know of except for fiddling with the width or explicitly using ODS ESCAPECHAR and {newline} to explicitly put your own linebreaks into the string.&lt;BR /&gt;Cynthia</description>
    <pubDate>Wed, 19 Dec 2018 15:46:40 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-12-19T15:46:40Z</dc:date>
    <item>
      <title>PROC REPORT avoid splitting column value on word boundary</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-avoid-splitting-column-value-on-word-boundary/m-p/522576#M73445</link>
      <description>&lt;P&gt;It looks like when PROC REPORT wraps a long text value, it will split values based on some word boundaries, e.g. "." and " ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ; 
  txt="AAAAAAAAAAAAA.BBBBBBBBBBBBB CCCCCCCCCCCCC"  ;
run ;

ods pdf file="%sysfunc(pathname(work))/mypdf.pdf" ;
proc report data=have ;
  columns txt ;
  define txt /style(column)=[cellwidth=2in];
run ;
ods pdf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Splits the text into 3 lines when it wraps, and gives me a PDF that looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mypdf.png" style="width: 360px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25803i92864EA3A254DFDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="mypdf.png" alt="mypdf.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there an option where I can tell PROC REPORT not to split the value on any boundaries when it wraps?&amp;nbsp; Perhaps a style option for a particular column that says something like IgnoreWordBoundaries?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Basically I want to save vertical space by allowing text to wrap in the middle of a "word".&amp;nbsp; If the above example wasn't split on word boundaries, it would be two rows instead of 3.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 15:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-avoid-splitting-column-value-on-word-boundary/m-p/522576#M73445</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-12-19T15:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT avoid splitting column value on word boundary</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-avoid-splitting-column-value-on-word-boundary/m-p/522592#M73446</link>
      <description>Hi:&lt;BR /&gt;  There's no option like that that I know of except for fiddling with the width or explicitly using ODS ESCAPECHAR and {newline} to explicitly put your own linebreaks into the string.&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 19 Dec 2018 15:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-avoid-splitting-column-value-on-word-boundary/m-p/522592#M73446</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-12-19T15:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT avoid splitting column value on word boundary</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-avoid-splitting-column-value-on-word-boundary/m-p/522621#M73448</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;.&amp;nbsp; If you don't know of it, then I'm sure it's not there.&amp;nbsp; Maybe I'll put it in as a ballot item.&amp;nbsp; Of course for real words, breaking on word boundaries makes sense.&amp;nbsp; But in this case I've got a column that shows the name of a file passed by the user.&amp;nbsp; And they come up with some really creative long names with spaces and sometimes dots in them, that are wrapping funny. So I'd like to just treat it as a string of characters, rather than a string of words.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 16:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-avoid-splitting-column-value-on-word-boundary/m-p/522621#M73448</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-12-19T16:25:45Z</dc:date>
    </item>
  </channel>
</rss>

