<?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: First row contains variable names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/First-row-contains-variable-names/m-p/317654#M313288</link>
    <description>&lt;P&gt;How are you importing the file? &amp;nbsp;If its proc import then just add the option: firstobs=2;&lt;/P&gt;
&lt;P&gt;If its a datastep (which is preferred) add firstobs=2 to the infile statement:&lt;BR /&gt;infile "yourfile.txt" firstobs=2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2016 16:59:44 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-12-08T16:59:44Z</dc:date>
    <item>
      <title>First row contains variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/First-row-contains-variable-names/m-p/317647#M313287</link>
      <description>&lt;P&gt;Hello again, I have a (probably) simple question and I feel dumb for not being able to figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I have a text file and the first row contains variable names, how do I simply just delete the first row?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Country, ID&lt;/P&gt;&lt;P&gt;USA, 1&lt;/P&gt;&lt;P&gt;China, 2&lt;/P&gt;&lt;P&gt;Germany, 3&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 16:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/First-row-contains-variable-names/m-p/317647#M313287</guid>
      <dc:creator>Peadymarvin</dc:creator>
      <dc:date>2016-12-08T16:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: First row contains variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/First-row-contains-variable-names/m-p/317654#M313288</link>
      <description>&lt;P&gt;How are you importing the file? &amp;nbsp;If its proc import then just add the option: firstobs=2;&lt;/P&gt;
&lt;P&gt;If its a datastep (which is preferred) add firstobs=2 to the infile statement:&lt;BR /&gt;infile "yourfile.txt" firstobs=2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 16:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/First-row-contains-variable-names/m-p/317654#M313288</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-12-08T16:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: First row contains variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/First-row-contains-variable-names/m-p/317965#M313289</link>
      <description>You can leverage the _n_ option and delete whichever specific record you want to delete.&lt;BR /&gt;&lt;BR /&gt;Sample code attached.&lt;BR /&gt;&lt;BR /&gt;data test ;&lt;BR /&gt;input country $ id ;&lt;BR /&gt;if _n_ =1 then delete ;&lt;BR /&gt;datalines ;&lt;BR /&gt;USA, 1&lt;BR /&gt;China, 2&lt;BR /&gt;Germany, 3&lt;BR /&gt;;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;proc print data=test ;&lt;BR /&gt;run ;</description>
      <pubDate>Fri, 09 Dec 2016 18:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/First-row-contains-variable-names/m-p/317965#M313289</guid>
      <dc:creator>anoopmohandas7</dc:creator>
      <dc:date>2016-12-09T18:58:50Z</dc:date>
    </item>
  </channel>
</rss>

