<?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: How do I import pipe delimited data and preserve the leading spaces in the data column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-import-pipe-delimited-data-and-preserve-the-leading/m-p/279646#M56375</link>
    <description>Thanks, that worked.</description>
    <pubDate>Thu, 23 Jun 2016 04:41:24 GMT</pubDate>
    <dc:creator>nishant604</dc:creator>
    <dc:date>2016-06-23T04:41:24Z</dc:date>
    <item>
      <title>How do I import pipe delimited data and preserve the leading spaces in the data column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-import-pipe-delimited-data-and-preserve-the-leading/m-p/279450#M56333</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a data that is pipe delimited and the last string variable in the file has leading spaces. An example of how the data looks like is -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1|10|5000|dr dr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1|2015|| dr dr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to import using the below code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data two;&lt;BR /&gt;infile cards dlm='|' dsd TRUNCOVER MISSOVER;&lt;BR /&gt;input cust_id A&amp;nbsp;B&amp;nbsp;C &amp;amp; $ ;&lt;BR /&gt;cards;&lt;BR /&gt;1|10|5000|dr dr&lt;BR /&gt;1|2015|| dr dr&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is giving me a data where the leading spaces have been stripped. And the last column reads as dr dr for both the rows. How can I preserve the leading spaces while importing this data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 17:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-import-pipe-delimited-data-and-preserve-the-leading/m-p/279450#M56333</guid>
      <dc:creator>nishant604</dc:creator>
      <dc:date>2016-06-22T17:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import pipe delimited data and preserve the leading spaces in the data column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-import-pipe-delimited-data-and-preserve-the-leading/m-p/279453#M56334</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;24         data two;
25            infile cards dlm='|' dsd MISSOVER;
26            input cust_id A B C:$char16.;
27            put c $char16.;
28            cards;

dr dr           
 dr dr    &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jun 2016 17:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-import-pipe-delimited-data-and-preserve-the-leading/m-p/279453#M56334</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-06-22T17:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import pipe delimited data and preserve the leading spaces in the data column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-import-pipe-delimited-data-and-preserve-the-leading/m-p/279646#M56375</link>
      <description>Thanks, that worked.</description>
      <pubDate>Thu, 23 Jun 2016 04:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-import-pipe-delimited-data-and-preserve-the-leading/m-p/279646#M56375</guid>
      <dc:creator>nishant604</dc:creator>
      <dc:date>2016-06-23T04:41:24Z</dc:date>
    </item>
  </channel>
</rss>

