<?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: Help how to Import a Table Txt File with Column Headers in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-how-to-Import-a-Table-Txt-File-with-Column-Headers/m-p/538053#M148084</link>
    <description>&lt;P&gt;Add firstobs=2 to the infile statement. And remove the @@, that's for creating many obs with each line.&lt;/P&gt;</description>
    <pubDate>Sun, 24 Feb 2019 04:28:02 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-02-24T04:28:02Z</dc:date>
    <item>
      <title>Help how to Import a Table Txt File with Column Headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-how-to-Import-a-Table-Txt-File-with-Column-Headers/m-p/538052#M148083</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hello!&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am trying to import a txt file that has a table (delimited by spaces), which also has column headers. The txt file looks as follows:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;City State Price&lt;BR /&gt;Baltimore MD 10.95&lt;BR /&gt;Brooklyn NY 12.99&lt;BR /&gt;Buffalo NY 11.50&lt;BR /&gt;Harlem NY 12.50&lt;BR /&gt;Newark NJ 11.50&lt;BR /&gt;Rochester NY 10.95&lt;BR /&gt;Stamford CT 11.50&lt;BR /&gt;Syracuse NY 10.95&lt;BR /&gt;Troy NY 11.50&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And my code so far looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DATA Ribs;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;INFILE '/folders/myfolders/sasuser.v94/DinosaurBBQRibs.txt' DLM='';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;INPUT City :$9. State :$2. Price :COMMA6.2 @@;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table looks fine, except the first row includes City and State, and a . for price, but I don't want to include them there and I can't seem to get it correct.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue sas.png" style="width: 268px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27389iF9F30FF26F0A7BFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue sas.png" alt="issue sas.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 04:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-how-to-Import-a-Table-Txt-File-with-Column-Headers/m-p/538052#M148083</guid>
      <dc:creator>daft22</dc:creator>
      <dc:date>2019-02-24T04:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help how to Import a Table Txt File with Column Headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-how-to-Import-a-Table-Txt-File-with-Column-Headers/m-p/538053#M148084</link>
      <description>&lt;P&gt;Add firstobs=2 to the infile statement. And remove the @@, that's for creating many obs with each line.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 04:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-how-to-Import-a-Table-Txt-File-with-Column-Headers/m-p/538053#M148084</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-24T04:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help how to Import a Table Txt File with Column Headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-how-to-Import-a-Table-Txt-File-with-Column-Headers/m-p/538054#M148085</link>
      <description>&lt;P&gt;Thank you so much! I appreciate your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 04:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-how-to-Import-a-Table-Txt-File-with-Column-Headers/m-p/538054#M148085</guid>
      <dc:creator>daft22</dc:creator>
      <dc:date>2019-02-24T04:31:18Z</dc:date>
    </item>
  </channel>
</rss>

