<?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 How to read specific rows from a source file when column names are inserted several times? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-specific-rows-from-a-source-file-when-column-names/m-p/371559#M88773</link>
    <description>&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a txt file where the column names are inserted several times in the text file (look at the attachment).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to read from row 1-3, 7-8 and 12-13.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate for any help you can give me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2017 08:06:14 GMT</pubDate>
    <dc:creator>tofuslim</dc:creator>
    <dc:date>2017-06-29T08:06:14Z</dc:date>
    <item>
      <title>How to read specific rows from a source file when column names are inserted several times?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-specific-rows-from-a-source-file-when-column-names/m-p/371559#M88773</link>
      <description>&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a txt file where the column names are inserted several times in the text file (look at the attachment).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to read from row 1-3, 7-8 and 12-13.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate for any help you can give me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-specific-rows-from-a-source-file-when-column-names/m-p/371559#M88773</guid>
      <dc:creator>tofuslim</dc:creator>
      <dc:date>2017-06-29T08:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to read specific rows from a source file when column names are inserted several times?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-specific-rows-from-a-source-file-when-column-names/m-p/371577#M88777</link>
      <description>&lt;P&gt;Do a test-read, hold the line pointer (@), and conclude the data step iteration only for data you want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile cards truncover;
input id $ name $@;
if ID not in ('ID',' ');
input age;
cards;
ID NAME AGE
1 OLE 31
2 PER 50


ID NAME AGE
3 KARI 45
4 PETTER 31


ID NAME AGE
5 JOHAN 60
6 EVA 45
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-specific-rows-from-a-source-file-when-column-names/m-p/371577#M88777</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-29T08:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to read specific rows from a source file when column names are inserted several times?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-specific-rows-from-a-source-file-when-column-names/m-p/371623#M88786</link>
      <description>Thank you very much. It works nicely.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jun 2017 11:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-specific-rows-from-a-source-file-when-column-names/m-p/371623#M88786</guid>
      <dc:creator>tofuslim</dc:creator>
      <dc:date>2017-06-29T11:40:39Z</dc:date>
    </item>
  </channel>
</rss>

