<?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: Concatenation/Spacing Issue in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101911#M9726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your clear and concise explanation! It appears to be wrapping correctly now &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2013 16:06:14 GMT</pubDate>
    <dc:creator>JY2013</dc:creator>
    <dc:date>2013-08-06T16:06:14Z</dc:date>
    <item>
      <title>Concatenation/Spacing Issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101906#M9721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem when running this code to generate SQL data into report text format because it has a spacing problem in which sentences or words are being separated onto separate lines instead of flowing smoothly across (sample attached). I know it is a concatenation issue and have tried the options ls (linespace) and options ps (pagesize) but they have not helped. Does anyone have any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Bringing in SQL tables into SAS format;&lt;/P&gt;&lt;P&gt;**Set DBMAX to longest character length in data field;&lt;/P&gt;&lt;P&gt;libname testsql oledb&lt;/P&gt;&lt;P&gt;init_string="Provider=SQLOLEDB.1;&lt;/P&gt;&lt;P&gt;Integrated Security=SSPI;&lt;/P&gt;&lt;P&gt;Persist Security Info=True;&lt;/P&gt;&lt;P&gt;Initial Catalog = 201107014D;&lt;/P&gt;&lt;P&gt;Data Source=vhacdwrb01.vha.med.va.gov"&lt;/P&gt;&lt;P&gt;Schema= dflt&lt;/P&gt;&lt;P&gt;DBMAX_Text= 10000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Getting sample into SAS dataset;&lt;/P&gt;&lt;P&gt;data batch3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set testsql.TIU_Batch3_wText;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep Source Sta3n DocumentIEN ReportText;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Exporting SAS dataset to txt files;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set batch3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _filename= cats("\\vhacdwfpcfs02\Projects\201107014D\Annotation\TIU Reports\Batch 3\",Source,"_",Sta3n, "_",DocumentIEN)||'.txt';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file dummy filevar= _filename;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put Source= ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put Sta3n= ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put DocumentIEN= ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put ReportText= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 23:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101906#M9721</guid>
      <dc:creator>JY2013</dc:creator>
      <dc:date>2013-08-05T23:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation/Spacing Issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101907#M9722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output you're giving us in the attachment hasn't been created with the code you've posted. So I'm not really sure what I'm looking at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use multiple 'put' statements writing text onto the same line of output you need to use syntax like 'put &amp;lt;variable&amp;gt; @;'&amp;nbsp; - else each put statement will start on column 1 of a new line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I actually assume what disturbes you is that the output of variable 'ReportText' breaks over multiple lines. Have you checked that these line breaks are not already in the source data? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 12:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101907#M9722</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-08-06T12:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation/Spacing Issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101908#M9723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. Yes you are right, the Report Text being separated across multiple lines is the issue. I have checked that the source data is perfectly normal so I know it definitely has something to do with the code.&amp;nbsp; I have tried putting the put &amp;lt;variable&amp;gt; @; as you suggested but it did not return favorable results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone encounter similar problems before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 15:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101908#M9723</guid>
      <dc:creator>JY2013</dc:creator>
      <dc:date>2013-08-06T15:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation/Spacing Issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101909#M9724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the LRECL option on the FILE statement to set the line length.&amp;nbsp; The default is only 256.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 15:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101909#M9724</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-08-06T15:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation/Spacing Issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101910#M9725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have thought that thlog would have a message about the wrapping.&amp;nbsp; Very curious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your filename does not specify a record length, LRECL, but the libref specifies max length=10000.&amp;nbsp; As I recall, the default output record length is 256 and wrapping occurs after that.&amp;nbsp; Maybe you need to add LRECL=10000 to your fileref so that it looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file dummy filevar= _filename lrecl=10000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't solve the problem, perhaps provide a few records from your work.batch3 data set for us to play with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 15:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101910#M9725</guid>
      <dc:creator>bentleyj1</dc:creator>
      <dc:date>2013-08-06T15:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation/Spacing Issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101911#M9726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your clear and concise explanation! It appears to be wrapping correctly now &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 16:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Concatenation-Spacing-Issue/m-p/101911#M9726</guid>
      <dc:creator>JY2013</dc:creator>
      <dc:date>2013-08-06T16:06:14Z</dc:date>
    </item>
  </channel>
</rss>

