<?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 option to read multiple spaces as single space? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-import-option-to-read-multiple-spaces-as-single-space/m-p/686091#M208135</link>
    <description>&lt;P&gt;That should be the default behaviour.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would use DSD to override that behaviour.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't get much control over how to import your data with PROC IMPORT - if it's not reading data correctly the following is usually what I do:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Change Guessingrows to a large number for text files&lt;/LI&gt;
&lt;LI&gt;Copy the code from the log and modify it to fix the data as needed - this is the easiest method&lt;/LI&gt;
&lt;LI&gt;Write my own data step to read the data manually.&lt;/LI&gt;
&lt;/OL&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319809"&gt;@mcook&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to import a space delimited txt file, where it will read multiple consecutive spaces as a single delimiter?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 15:21:39 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-09-23T15:21:39Z</dc:date>
    <item>
      <title>proc import option to read multiple spaces as single space?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-option-to-read-multiple-spaces-as-single-space/m-p/686074#M208128</link>
      <description>&lt;P&gt;Is there a way to import a space delimited txt file, where it will read multiple consecutive spaces as a single delimiter?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 14:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-option-to-read-multiple-spaces-as-single-space/m-p/686074#M208128</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2020-09-23T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc import option to read multiple spaces as single space?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-option-to-read-multiple-spaces-as-single-space/m-p/686091#M208135</link>
      <description>&lt;P&gt;That should be the default behaviour.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would use DSD to override that behaviour.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't get much control over how to import your data with PROC IMPORT - if it's not reading data correctly the following is usually what I do:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Change Guessingrows to a large number for text files&lt;/LI&gt;
&lt;LI&gt;Copy the code from the log and modify it to fix the data as needed - this is the easiest method&lt;/LI&gt;
&lt;LI&gt;Write my own data step to read the data manually.&lt;/LI&gt;
&lt;/OL&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319809"&gt;@mcook&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to import a space delimited txt file, where it will read multiple consecutive spaces as a single delimiter?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 15:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-option-to-read-multiple-spaces-as-single-space/m-p/686091#M208135</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-23T15:21:39Z</dc:date>
    </item>
  </channel>
</rss>

