<?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: Wrapping variables to multiple lines with Proc Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-variables-to-multiple-lines-with-Proc-Report/m-p/9036#M2907</link>
    <description>(Good test program, hemanth. You made it easy for me to figure out what was going on!)&lt;BR /&gt;
&lt;BR /&gt;
If you try your test without the "*" in the data, that is " is a good guy" instead of " is a*good guy", you'll get the output you expect.&lt;BR /&gt;
&lt;BR /&gt;
The FLOW documentation says "The FLOW option honors the split character. If the text contains no split character, then PROC REPORT tries to split text at a blank." What is doesn't say (but possibly should) is that when the text contains an explicit split character then PROC REPORT does not use blanks as implicit split characters.&lt;BR /&gt;
&lt;BR /&gt;
In the text "Alice is a*good guy" there are 10 characters preceding the split character, so PROC REPORT simply splits after the first 7.</description>
    <pubDate>Fri, 04 Apr 2008 13:36:40 GMT</pubDate>
    <dc:creator>Tim_SAS</dc:creator>
    <dc:date>2008-04-04T13:36:40Z</dc:date>
    <item>
      <title>Wrapping variables to multiple lines with Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-variables-to-multiple-lines-with-Proc-Report/m-p/9035#M2906</link>
      <description>All:&lt;BR /&gt;
&lt;BR /&gt;
 I have an issue with wrapping a variable to the next line. I was in an impression that a flow statement given for any variable in the define step, would wrap the respective variable properly to the number of lines. But, when I was working with the following piece of code, I felt, there must be something other than FLOW, which controls wrapping in proc report. Could someone suggest me, if there is a solution for this, or if I have done some mistake in the code?&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
 set sashelp.class;&lt;BR /&gt;
  tempname=trim(left(name))||' is a*good guy';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc report data=test split='*' headskip headline;&lt;BR /&gt;
columns tempname;&lt;BR /&gt;
define tempname / flow group width=7;&lt;BR /&gt;
break after tempname/skip;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
With this code, I expected the output to be something like the left one, but ended up with an output like the right one:&lt;BR /&gt;
&lt;BR /&gt;
		&lt;BR /&gt;
tempnam.................................tempnam&lt;BR /&gt;
e.............................................e&lt;BR /&gt;
-------........................................-------&lt;BR /&gt;
                                        &lt;BR /&gt;
Alfred......................................Alfred&lt;BR /&gt;
is a.........................................is a&lt;BR /&gt;
good.......................................good&lt;BR /&gt;
guy.........................................guy&lt;BR /&gt;
                                        &lt;BR /&gt;
Alice.......................................Alice i&lt;BR /&gt;
is a.........................................s a&lt;BR /&gt;
good.......................................good&lt;BR /&gt;
guy.........................................guy&lt;BR /&gt;
                                        &lt;BR /&gt;
Barbara...................................Barbara&lt;BR /&gt;
 is a.........................................is a&lt;BR /&gt;
good.......................................good&lt;BR /&gt;
guy.........................................guy&lt;BR /&gt;
                                        &lt;BR /&gt;
Carol.......................................Carol i&lt;BR /&gt;
is a.........................................s a&lt;BR /&gt;
good.......................................good&lt;BR /&gt;
guy.........................................guy&lt;BR /&gt;
                                        &lt;BR /&gt;
Henry......................................Henry i&lt;BR /&gt;
is a.........................................s a&lt;BR /&gt;
good.......................................good&lt;BR /&gt;
guy.........................................guy&lt;BR /&gt;
.....................................................................&lt;BR /&gt;
&lt;BR /&gt;
My question is, why is 'is' being splitted, though there is no split character or a blank space in between? &lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance,&lt;BR /&gt;
Hemanth.</description>
      <pubDate>Fri, 04 Apr 2008 10:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-variables-to-multiple-lines-with-Proc-Report/m-p/9035#M2906</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-04T10:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping variables to multiple lines with Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-variables-to-multiple-lines-with-Proc-Report/m-p/9036#M2907</link>
      <description>(Good test program, hemanth. You made it easy for me to figure out what was going on!)&lt;BR /&gt;
&lt;BR /&gt;
If you try your test without the "*" in the data, that is " is a good guy" instead of " is a*good guy", you'll get the output you expect.&lt;BR /&gt;
&lt;BR /&gt;
The FLOW documentation says "The FLOW option honors the split character. If the text contains no split character, then PROC REPORT tries to split text at a blank." What is doesn't say (but possibly should) is that when the text contains an explicit split character then PROC REPORT does not use blanks as implicit split characters.&lt;BR /&gt;
&lt;BR /&gt;
In the text "Alice is a*good guy" there are 10 characters preceding the split character, so PROC REPORT simply splits after the first 7.</description>
      <pubDate>Fri, 04 Apr 2008 13:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-variables-to-multiple-lines-with-Proc-Report/m-p/9036#M2907</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2008-04-04T13:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping variables to multiple lines with Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-variables-to-multiple-lines-with-Proc-Report/m-p/9037#M2908</link>
      <description>Hi Tim,&lt;BR /&gt;
&lt;BR /&gt;
 Thanks for the reply. Is there a way to avoid this? Meaning, I want to use a split character, and I also want to split the line whenever a space is reached (instead of truncating the word), whichever comes first. Is there a way to get the desired result?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Hemanth.</description>
      <pubDate>Wed, 09 Apr 2008 05:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-variables-to-multiple-lines-with-Proc-Report/m-p/9037#M2908</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-09T05:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping variables to multiple lines with Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-variables-to-multiple-lines-with-Proc-Report/m-p/9038#M2909</link>
      <description>Sorry, no.</description>
      <pubDate>Wed, 09 Apr 2008 12:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-variables-to-multiple-lines-with-Proc-Report/m-p/9038#M2909</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2008-04-09T12:31:52Z</dc:date>
    </item>
  </channel>
</rss>

