<?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 to import delimited text file with comment lines using PROC IMPORT? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48049#M12958</link>
    <description>Thank you for all your replies.  I've resolved the problem by using DBailey's approach, i.e., I used substr( ) to delete the lines with #s in the DATA step.</description>
    <pubDate>Tue, 12 Apr 2011 17:47:47 GMT</pubDate>
    <dc:creator>sy2011</dc:creator>
    <dc:date>2011-04-12T17:47:47Z</dc:date>
    <item>
      <title>How to import delimited text file with comment lines using PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48043#M12952</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Can I use PROC IMPORT to import delimited text file which contains a lots of comment lines at the beginning of the file.  The comment lines are marked with "#"s.  I want to exclude the comment lines and start to import at the header line.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;BR /&gt;
sy</description>
      <pubDate>Mon, 11 Apr 2011 19:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48043#M12952</guid>
      <dc:creator>sy2011</dc:creator>
      <dc:date>2011-04-11T19:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to import delimited text file with comment lines using PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48044#M12953</link>
      <description>Single input file or multiple input files with varying numbers of comment lines?</description>
      <pubDate>Mon, 11 Apr 2011 21:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48044#M12953</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-04-11T21:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to import delimited text file with comment lines using PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48045#M12954</link>
      <description>It seems that proc import cann't do it, But Import Data Wizard in sas menu can choose the start row of data. Maybe it is not what you want.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Tue, 12 Apr 2011 03:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48045#M12954</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-12T03:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to import delimited text file with comment lines using PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48046#M12955</link>
      <description>You could always fall back and write your own data step to check the first character of the line before parsing and outputting the data set.</description>
      <pubDate>Tue, 12 Apr 2011 11:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48046#M12955</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-04-12T11:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to import delimited text file with comment lines using PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48047#M12956</link>
      <description>HI&lt;BR /&gt;
I am not sure about the wizard but you can do  by code&lt;BR /&gt;
&lt;BR /&gt;
data dataset_name;&lt;BR /&gt;
infile 'path\file.txt' dlm='#&amp;amp;*';&lt;BR /&gt;
input var1$ var2 ;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 12 Apr 2011 12:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48047#M12956</guid>
      <dc:creator>sss</dc:creator>
      <dc:date>2011-04-12T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to import delimited text file with comment lines using PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48048#M12957</link>
      <description>I've resolved the problem.  Thank you for your reply.</description>
      <pubDate>Tue, 12 Apr 2011 17:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48048#M12957</guid>
      <dc:creator>sy2011</dc:creator>
      <dc:date>2011-04-12T17:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to import delimited text file with comment lines using PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48049#M12958</link>
      <description>Thank you for all your replies.  I've resolved the problem by using DBailey's approach, i.e., I used substr( ) to delete the lines with #s in the DATA step.</description>
      <pubDate>Tue, 12 Apr 2011 17:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-delimited-text-file-with-comment-lines-using-PROC/m-p/48049#M12958</guid>
      <dc:creator>sy2011</dc:creator>
      <dc:date>2011-04-12T17:47:47Z</dc:date>
    </item>
  </channel>
</rss>

