<?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: Any limit on DATAROW/PROC IMPORT? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Any-limit-on-DATAROW-PROC-IMPORT/m-p/829803#M327866</link>
    <description>&lt;P&gt;The file has thousands of lines. It is created at real time, all columns are numbers with first 20s(not stable) lines with&amp;nbsp;-nan(ind).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2022 07:21:32 GMT</pubDate>
    <dc:creator>hellohere</dc:creator>
    <dc:date>2022-08-23T07:21:32Z</dc:date>
    <item>
      <title>Any limit on DATAROW/PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-limit-on-DATAROW-PROC-IMPORT/m-p/829787#M327855</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	PROC IMPORT OUT=&amp;amp;outdata.
	     DATAFILE="C:\Users\Administrator\Desktop\&amp;amp;fn..log"
	   DBMS=CSV REPLACE;
	   GETNAMES=NO;
	   DATAROW=20;
	RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I try to readin a text file, and success with datarow=20. But fail with datarow=30.&lt;/P&gt;
&lt;P&gt;SAS does not give out details.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Import unsuccessful.  See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any limit on DATAROW?!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 03:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-limit-on-DATAROW-PROC-IMPORT/m-p/829787#M327855</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-08-23T03:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Any limit on DATAROW/PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-limit-on-DATAROW-PROC-IMPORT/m-p/829788#M327856</link>
      <description>&lt;P&gt;Why are you using the DATAROW option?&amp;nbsp; That is saying you want to skip the first 19 (or 29) lines of the file instead of just the header line.&amp;nbsp; Are you sure the file had more than 29 lines?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is code to recreate your problem.&amp;nbsp; There are only 19 observations in SASHELP.CLASS so the CSV file will only have 20 lines in it.&amp;nbsp; So asking PROC IMPORT to start reading from line 30 will cause an error because there is no line 30.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv temp;
proc export data=sashelp.class file=csv replace dbms=csv;
run;
proc import file=csv out=want replace dbms=csv;
  datarow=30;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;3124  proc import file=csv out=want replace dbms=csv;
3125    datarow=30;
3126  run;

&lt;FONT color="#FF0000"&gt;Unable to sample external file, no data in first 5 records.&lt;/FONT&gt;
ERROR: Import unsuccessful.  See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 03:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-limit-on-DATAROW-PROC-IMPORT/m-p/829788#M327856</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-23T03:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Any limit on DATAROW/PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-limit-on-DATAROW-PROC-IMPORT/m-p/829791#M327858</link>
      <description>&lt;P&gt;Why do you use PROC IMPORT for a&amp;nbsp;&lt;U&gt;CSV&lt;/U&gt; file? Write the data step yourself, with the proper FIRSTOBS= option in the INFILE statement.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 04:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-limit-on-DATAROW-PROC-IMPORT/m-p/829791#M327858</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-23T04:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Any limit on DATAROW/PROC IMPORT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-limit-on-DATAROW-PROC-IMPORT/m-p/829803#M327866</link>
      <description>&lt;P&gt;The file has thousands of lines. It is created at real time, all columns are numbers with first 20s(not stable) lines with&amp;nbsp;-nan(ind).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 07:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-limit-on-DATAROW-PROC-IMPORT/m-p/829803#M327866</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-08-23T07:21:32Z</dc:date>
    </item>
  </channel>
</rss>

