<?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 180-322: Statement is not valid or it is used out of proper order. - Proc IMPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/180-322-Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/732265#M228189</link>
    <description>&lt;P&gt;Hi Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having issues debugging my Proc Import code. I tried multiple ways but still issue persisted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="C:\FilePath\Test_report.xlsx"  DBMS=Excel REPLACE out=test;
    SHEET="Rep01_mat";
	getnames=YES;
	namerow = 4;
	datarow=5; 	
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is the error I get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;706      getnames=YES;
2707      namerow = 4;
          -------
          180
2708      datarow=5;
          -------
          180
ERROR 180-322: Statement is not valid or it is used out of proper order.

2709  run;

&lt;/PRE&gt;&lt;P&gt;The variable names are in Row 4 and data in row 5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts and suggestions are appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 16:48:38 GMT</pubDate>
    <dc:creator>shasank</dc:creator>
    <dc:date>2021-04-08T16:48:38Z</dc:date>
    <item>
      <title>180-322: Statement is not valid or it is used out of proper order. - Proc IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/180-322-Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/732265#M228189</link>
      <description>&lt;P&gt;Hi Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having issues debugging my Proc Import code. I tried multiple ways but still issue persisted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="C:\FilePath\Test_report.xlsx"  DBMS=Excel REPLACE out=test;
    SHEET="Rep01_mat";
	getnames=YES;
	namerow = 4;
	datarow=5; 	
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is the error I get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;706      getnames=YES;
2707      namerow = 4;
          -------
          180
2708      datarow=5;
          -------
          180
ERROR 180-322: Statement is not valid or it is used out of proper order.

2709  run;

&lt;/PRE&gt;&lt;P&gt;The variable names are in Row 4 and data in row 5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts and suggestions are appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 16:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/180-322-Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/732265#M228189</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2021-04-08T16:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: 180-322: Statement is not valid or it is used out of proper order. - Proc IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/180-322-Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/732274#M228195</link>
      <description>&lt;P&gt;I have found the answer through some testing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="C:\filepath\report.xlsx" DBMS=Excel REPLACE out=test;
SHEET="REP01_mat";
Range = "REP01_mat$A4:K0";
getnames=Yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Apr 2021 17:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/180-322-Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/732274#M228195</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2021-04-08T17:42:56Z</dc:date>
    </item>
  </channel>
</rss>

