<?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 Import - Problem with CSV File Format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637747#M78159</link>
    <description>Your description is not at all clear. It would help to show a (small) example of the type of rows that are causing trouble.&lt;BR /&gt;&lt;BR /&gt;Most likely the LENGTH of the strings is not the issue. Instead it is probable that the long strings contain end of line characters.  Remove those and your CSV file should work.</description>
    <pubDate>Sun, 05 Apr 2020 22:48:32 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-04-05T22:48:32Z</dc:date>
    <item>
      <title>PROC Import - Problem with CSV File Format and line breaks</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637744#M78158</link>
      <description>&lt;P&gt;HI!&amp;nbsp; I am having a problem getting an Excel file (xlsx) in a CSV file format that I can use to import into SAS.&amp;nbsp; I have a very long text column in the Excel spreadsheet.&amp;nbsp; When I save the file to a CSV file and use Proc Import, it appears that the column gets read in as individual rows instead of a column.&amp;nbsp; When I open the CSV file in Excel, the format is fine.&amp;nbsp; If I open the CSV file in Word, I can see that portion of the text column data is displayed as a row, whether than a continuous text column.&amp;nbsp; Is there some other format I should be using to prevent this happening.&amp;nbsp; Unfortunately, I have several files with long text columns that are acting the same way when I want to import the file in my SAS process.&amp;nbsp; I have tried saving the file as a tab delimited instead of a comma delimited file with the same results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 12:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637744#M78158</guid>
      <dc:creator>luj</dc:creator>
      <dc:date>2020-04-06T12:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Import - Problem with CSV File Format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637747#M78159</link>
      <description>Your description is not at all clear. It would help to show a (small) example of the type of rows that are causing trouble.&lt;BR /&gt;&lt;BR /&gt;Most likely the LENGTH of the strings is not the issue. Instead it is probable that the long strings contain end of line characters.  Remove those and your CSV file should work.</description>
      <pubDate>Sun, 05 Apr 2020 22:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637747#M78159</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-05T22:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Import - Problem with CSV File Format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637757#M78160</link>
      <description>&lt;P&gt;Sorry I wasn't clear.&amp;nbsp; Below are screen prints of the columns as they appear in Excel, Word and SAS output and my SAS statement:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="luj_0-1586127938919.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37938iB87827E7F1A8B2E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="luj_0-1586127938919.png" alt="luj_0-1586127938919.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="luj_1-1586128020125.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37939i49E9E56F67E5A88B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="luj_1-1586128020125.png" alt="luj_1-1586128020125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="luj_2-1586128118222.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37940i1C2B0487BF02F9DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="luj_2-1586128118222.png" alt="luj_2-1586128118222.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="luj_3-1586128182653.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37941i4FEF564FB249313C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="luj_3-1586128182653.png" alt="luj_3-1586128182653.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how to identify or remove end of line characters from the Excel file.&lt;/P&gt;&lt;P&gt;Thanks for your help!&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>Sun, 05 Apr 2020 23:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637757#M78160</guid>
      <dc:creator>luj</dc:creator>
      <dc:date>2020-04-05T23:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Import - Problem with CSV File Format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637759#M78161</link>
      <description>&lt;P&gt;You could google it.&amp;nbsp;&amp;nbsp;&lt;A href="https://www.google.com/search?q=remove+line+breask+in+excel" target="_blank"&gt;https://www.google.com/search?q=remove+line+breask+in+excel&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You could also just use the XSLX file directly.&amp;nbsp; Then you can remove/replace the CR and/or LF characters with SAS code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib xlsx "myfile.xlsx";
data want;
  set mylib.mysheet;
  array _c _character_;
  do over _c;
    _c=translate(compress(_c,'0D'x),' ','0A'x);
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 Apr 2020 23:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637759#M78161</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-05T23:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Import - Problem with CSV File Format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637762#M78162</link>
      <description>&lt;P&gt;Thanks ... really appreciate your assistance!!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 00:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-Problem-with-CSV-File-Format-and-line-breaks/m-p/637762#M78162</guid>
      <dc:creator>luj</dc:creator>
      <dc:date>2020-04-06T00:00:14Z</dc:date>
    </item>
  </channel>
</rss>

