<?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: Import wrapped text from Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-wrapped-text-from-Excel/m-p/613707#M179267</link>
    <description>&lt;P&gt;Hi,&amp;nbsp; ballardw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I think you're right, it's probably the line breaks that are the problem.&lt;/P&gt;&lt;P&gt;Unfortunately I can't provide a file, the text in the column I'm trying to import looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option 1;&lt;/P&gt;&lt;P&gt;Option 2;&lt;/P&gt;&lt;P&gt;Option 3;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to import that as one long string but only the first line (Option 1; ) gets imported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what the code looks like (preceded by a filename statement):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile=tmp dbms = xlsx replace out=study (keep=a--n drop=g h i j k );&lt;BR /&gt;sheet="eCRF" ;&lt;BR /&gt;datarow=28;&lt;BR /&gt;getnames=no;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2019 09:10:48 GMT</pubDate>
    <dc:creator>HFatTRI</dc:creator>
    <dc:date>2019-12-24T09:10:48Z</dc:date>
    <item>
      <title>Import wrapped text from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-wrapped-text-from-Excel/m-p/613585#M179211</link>
      <description>&lt;P&gt;When trying to import an Excel sheet with a column containing wrapped text, only the first line of text gets imported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I import all the text in the column with wrapped text without "unwrapping" it manually?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-wrapped-text-from-Excel/m-p/613585#M179211</guid>
      <dc:creator>HFatTRI</dc:creator>
      <dc:date>2019-12-23T17:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Import wrapped text from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-wrapped-text-from-Excel/m-p/613586#M179212</link>
      <description>&lt;P&gt;Pleas shoe the code for how you are "importing" the file.&lt;/P&gt;
&lt;P&gt;Ideally provide an example of the file but I realize that may not be possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Wrapping" should not be any issue. More like is the presence of line breaks cause by using Alt-Enter but without an example it may be difficult to provide an specific solutions.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-wrapped-text-from-Excel/m-p/613586#M179212</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-23T17:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Import wrapped text from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-wrapped-text-from-Excel/m-p/613707#M179267</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; ballardw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I think you're right, it's probably the line breaks that are the problem.&lt;/P&gt;&lt;P&gt;Unfortunately I can't provide a file, the text in the column I'm trying to import looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option 1;&lt;/P&gt;&lt;P&gt;Option 2;&lt;/P&gt;&lt;P&gt;Option 3;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to import that as one long string but only the first line (Option 1; ) gets imported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what the code looks like (preceded by a filename statement):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile=tmp dbms = xlsx replace out=study (keep=a--n drop=g h i j k );&lt;BR /&gt;sheet="eCRF" ;&lt;BR /&gt;datarow=28;&lt;BR /&gt;getnames=no;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 09:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-wrapped-text-from-Excel/m-p/613707#M179267</guid>
      <dc:creator>HFatTRI</dc:creator>
      <dc:date>2019-12-24T09:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import wrapped text from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-wrapped-text-from-Excel/m-p/613712#M179272</link>
      <description>&lt;P&gt;It turns out the problem was not the proc import but a subsequent combination of datasets in a data step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I learned from this that wrapped text does not appear to be a problem and that you may have to use a length statement when combining multiple datasets to avoid truncation, even though the variables in each dataset have the same lengths in bytes.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 10:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-wrapped-text-from-Excel/m-p/613712#M179272</guid>
      <dc:creator>HFatTRI</dc:creator>
      <dc:date>2019-12-24T10:20:12Z</dc:date>
    </item>
  </channel>
</rss>

