<?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: ERROR 180-322: Statement is not valid or it is used out of proper order. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797862#M313700</link>
    <description>&lt;P&gt;This points to a bitness issue between SAS and MS Office. Both must be either 32 or 64 bit.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 16:49:36 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-02-22T16:49:36Z</dc:date>
    <item>
      <title>ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797671#M313609</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am a new SAS use and get&amp;nbsp;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;Could you please help me!&lt;/P&gt;&lt;P&gt;Here is the log&amp;nbsp;&lt;/P&gt;&lt;P&gt;140 proc import datafile = "K:\Variant Taskforce\Variant Codes\Variant Types and&lt;BR /&gt;140! Snomed_V20220126.xlsx"&lt;BR /&gt;141 out = work.Variants&lt;BR /&gt;142 dbms= XLSX replace;&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;143 RANGE = "Most Recent$";&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;144 GETNAMES = YES;&lt;BR /&gt;145 MIXED = YES;&lt;BR /&gt;-----&lt;BR /&gt;180&lt;BR /&gt;146 SCANTEXT = YES;&lt;BR /&gt;--------&lt;BR /&gt;180&lt;BR /&gt;147 USEDATE = YES;&lt;BR /&gt;-------&lt;BR /&gt;180&lt;BR /&gt;148 SCANTIME = YES;&lt;BR /&gt;--------&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;149 run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here is the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile = "K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx"&lt;BR /&gt;out = work.Variants&lt;BR /&gt;dbms= XLSX replace;&lt;BR /&gt;RANGE = "Most Recent$";&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;MIXED=YES;&lt;BR /&gt;SCANTEXT=YES;&lt;BR /&gt;USEDATE=YES;&lt;BR /&gt;SCANTIME=YES;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 22:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797671#M313609</guid>
      <dc:creator>Brian16</dc:creator>
      <dc:date>2022-02-21T22:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797673#M313610</link>
      <description>&lt;P&gt;MIXED, SCANTEXT, USEDATE and SCANTIME are not supported for DBMS=XLSX.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 22:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797673#M313610</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-21T22:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797676#M313613</link>
      <description>It was EXCEL instead of XLSX. I worked great before, but I got error after window update today</description>
      <pubDate>Mon, 21 Feb 2022 23:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797676#M313613</guid>
      <dc:creator>Brian16</dc:creator>
      <dc:date>2022-02-21T23:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797682#M313619</link>
      <description>&lt;P&gt;Please post the complete log of the PROC IMPORT with DBMS=EXCEL by copy/pasting it into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 23:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797682#M313619</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-21T23:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797812#M313676</link>
      <description>&lt;PRE&gt;proc import datafile = "K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx"
			out = work.Variants
			dbms= XLSX replace;
		RANGE = "Most Recent$";
		GETNAMES=YES;
		MIXED=YES;
		SCANTEXT=YES;
		USEDATE=YES;
		SCANTIME=YES; 
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 14:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797812#M313676</guid>
      <dc:creator>Brian16</dc:creator>
      <dc:date>2022-02-22T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797814#M313678</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/417646"&gt;@Brian16&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not the log, which is what was requested.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 14:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797814#M313678</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-22T14:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797821#M313684</link>
      <description>&lt;PRE&gt;Here is the correct log


28         proc import datafile = "K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx"
29         			out = work.Variants
30         			dbms= XLSX replace;
NOTE: The previous statement has been deleted.
NOTE: The previous statement has been deleted.
NOTE: The previous statement has been deleted.
31         		RANGE = "Most Recent$";
NOTE: The previous statement has been deleted.
32         		GETNAMES=YES;
33         		MIXED=YES;
             _____
             180
34         		SCANTEXT=YES;
             ________
             180
35         		USEDATE=YES;
             _______
             180
36         		SCANTIME=YES;
             ________
             180
ERROR 180-322: Statement is not valid or it is used out of proper order.

37         run;

Couldn't find range in spreadsheet
Requested Input File Is Invalid
2                                                          The SAS System                           08:48 Tuesday, February 22, 2022

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.31 seconds
      cpu time            0.00 seconds
      
38         
39         %LET _CLIENTTASKLABEL=;
40         %LET _CLIENTPROCESSFLOWNAME=;
41         %LET _CLIENTPROJECTPATH=;
42         %LET _CLIENTPROJECTPATHHOST=;
43         %LET _CLIENTPROJECTNAME=;
44         %LET _SASPROGRAMFILE=;
45         %LET _SASPROGRAMFILEHOST=;
46         
47         ;*';*";*/;quit;run;
48         ODS _ALL_ CLOSE;
49         
50         
51         QUIT; RUN;
52         &lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 14:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797821#M313684</guid>
      <dc:creator>Brian16</dc:creator>
      <dc:date>2022-02-22T14:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797822#M313685</link>
      <description>&lt;P&gt;As stated by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;you need to use DBMS=EXCEL, not DBMS=XLSX&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 14:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797822#M313685</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-22T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797827#M313686</link>
      <description>&lt;PRE&gt;When I run it with EXCEL it gives me this error. It worked with EXCEL before but gave me error for yesterday and today. (Yesterday, window was update automatically)

28         proc import datafile = "K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx"
29         			out = work.Variants
30         			dbms= EXCEL replace;
31         		RANGE = "Most Recent$";
32         		GETNAMES=YES;
33         		MIXED=YES;
34         		SCANTEXT=YES;
35         		USEDATE=YES;
36         		SCANTIME=YES;
37         run;

1                                                          The SAS System                           09:05 Tuesday, February 22, 2022

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.
ERROR: Connection Failed.  See log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
      real time           1.73 seconds
      cpu time            0.04 seconds
      
38         
39         %LET _CLIENTTASKLABEL=;
40         %LET _CLIENTPROCESSFLOWNAME=;
41         %LET _CLIENTPROJECTPATH=;
42         %LET _CLIENTPROJECTPATHHOST=;
43         %LET _CLIENTPROJECTNAME=;
44         %LET _SASPROGRAMFILE=;
45         %LET _SASPROGRAMFILEHOST=;
46         
47         ;*';*";*/;quit;run;
2                                                          The SAS System                           08:48 Tuesday, February 22, 2022

48         ODS _ALL_ CLOSE;
49         
50         
51         QUIT; RUN;
52         &lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797827#M313686</guid>
      <dc:creator>Brian16</dc:creator>
      <dc:date>2022-02-22T15:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797830#M313688</link>
      <description>&lt;P&gt;Just remove the statements that are not supported. They aren't doing anything for you now (and probably did not do anything for you when you did have access to actually run Excel).&amp;nbsp; Now you code is more portable as it will work on Unix also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile = "K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx"
  dbms= XLSX
  out = work.Variants
  replace
;
  RANGE = "Most Recent$";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797830#M313688</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-22T15:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797836#M313692</link>
      <description>&lt;P&gt;I tried that but still have error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;55         proc import datafile = "K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx"
56         		dbms= XLSX
57         		out = work.Variants
58         			 replace;
59         		RANGE = "Most Recent$";
60         		
61         run;

Couldn't find range in spreadsheet
Requested Input File Is Invalid
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.24 seconds
      cpu time            0.04 seconds
      
62         
63         %LET _CLIENTTASKLABEL=;
64         %LET _CLIENTPROCESSFLOWNAME=;
65         %LET _CLIENTPROJECTPATH=;
66         %LET _CLIENTPROJECTPATHHOST=;
67         %LET _CLIENTPROJECTNAME=;
3                                                          The SAS System                           09:27 Tuesday, February 22, 2022

68         %LET _SASPROGRAMFILE=;
69         %LET _SASPROGRAMFILEHOST=;
70         
71         ;*';*";*/;quit;run;
72         ODS _ALL_ CLOSE;
73         
74         
75         QUIT; RUN;
76         &lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797836#M313692</guid>
      <dc:creator>Brian16</dc:creator>
      <dc:date>2022-02-22T15:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797837#M313693</link>
      <description>&lt;P&gt;So what ranges do exist in the file you are using?&amp;nbsp; Try using the XLSX libname engine instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname x xlsx "K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx";
proc copy inlib=x output=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Check the NOTE lines from the PROC COPY step to see what sheets and named ranges were found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797837#M313693</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-22T15:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797858#M313699</link>
      <description>&lt;P&gt;I still have error with the change&lt;/P&gt;&lt;PRE&gt;468  libname x xlsx "K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx";
NOTE: Libref X was successfully assigned as follows:
      Engine:        XLSX
      Physical Name: K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx
469  proc copy inlib=x output=work;
                       ------
                       1
WARNING 1-322: Assuming the symbol OUT was misspelled as output.
470  run;

NOTE: Copying X.20210802 to WORK.20210802 (memtype=DATA).
NOTE:    Variable Name Change.  Variant Type -&amp;gt; Variant_Type
NOTE:    Variable Name Change.  Snomed Code -&amp;gt; Snomed_Code
NOTE:    Variable Name Change.  Date Requested -&amp;gt; Date_Requested
NOTE:    Variable Name Change.  Date Completed in HEDSS -&amp;gt; Date_Completed_in_HEDSS
NOTE:    Variable Name Change.  Variant Type_1 -&amp;gt; Variant_Type_1
NOTE:    Variable Name Change.  Common Name -&amp;gt; Common_Name
NOTE: BUFSIZE is not cloned when copying across different engines.
      System Option for BUFSIZE was used.
ERROR: The value 20210802 is not a valid SAS name.
ERROR: File WORK.'20210802'n.DATA has not been saved because copy could not be completed.
NOTE: Copying X.20210810 to WORK.20210810 (memtype=DATA).
NOTE:    Variable Name Change.  Variant Type -&amp;gt; Variant_Type
NOTE:    Variable Name Change.  Snomed Code -&amp;gt; Snomed_Code
NOTE:    Variable Name Change.  Date Requested -&amp;gt; Date_Requested
NOTE:    Variable Name Change.  Date Completed in HEDSS -&amp;gt; Date_Completed_in_HEDSS
NOTE:    Variable Name Change.  Variant Type_1 -&amp;gt; Variant_Type_1
NOTE:    Variable Name Change.  Common Name -&amp;gt; Common_Name
NOTE: BUFSIZE is not cloned when copying across different engines.
      System Option for BUFSIZE was used.
ERROR: The value 20210810 is not a valid SAS name.
ERROR: File WORK.'20210810'n.DATA has not been saved because copy could not be completed.
NOTE: Copying X.MOST RECENT to WORK.MOST RECENT (memtype=DATA).
NOTE:    Variable Name Change.  Variant Type -&amp;gt; Variant_Type
NOTE:    Variable Name Change.  Snomed Code -&amp;gt; Snomed_Code
NOTE:    Variable Name Change.  Date Requested -&amp;gt; Date_Requested
NOTE:    Variable Name Change.  Date Completed in HEDSS -&amp;gt; Date_Completed_in_HEDSS
NOTE:    Variable Name Change.  Variant Type_1 -&amp;gt; Variant_Type_1
NOTE:    Variable Name Change.  Common Name -&amp;gt; Common_Name
NOTE:    Variable Name Change.  Updated in SARS Code List -&amp;gt; Updated_in_SARS_Code_List
NOTE: BUFSIZE is not cloned when copying across different engines.
      System Option for BUFSIZE was used.
ERROR: The value MOST RECENT is not a valid SAS name.
ERROR: File WORK.'MOST RECENT'n.DATA has not been saved because copy could not be completed.
NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE COPY used (Total process time):
      real time           0.37 seconds
      cpu time            0.07 seconds

NOTE: The SAS System stopped processing this step because of errors.

&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797858#M313699</guid>
      <dc:creator>Brian16</dc:creator>
      <dc:date>2022-02-22T16:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797862#M313700</link>
      <description>&lt;P&gt;This points to a bitness issue between SAS and MS Office. Both must be either 32 or 64 bit.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:49:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797862#M313700</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-22T16:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797863#M313701</link>
      <description>&lt;P&gt;When you see this error:&lt;/P&gt;
&lt;PRE&gt;ERROR: The value 20210802 is not a valid SAS name.
&lt;/PRE&gt;
&lt;P&gt;You may need to set the system option VALIDMEMNAME=extend; before running the code to allow the use of non-standard SAS data set names. It seems to almost be a rule in the Excel community to name sheets and columns with things that don't work well in SAS as data set or variable names. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might suggest renaming the data sets after they are read&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797863#M313701</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-22T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797865#M313703</link>
      <description>&lt;P&gt;So your sheet is named "Most recent". See if this works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import
  datafile = "K:\Variant Taskforce\Variant Codes\Variant Types and Snomed_V20220126.xlsx"
  dbms= XLSX
  out = work.Variants
  replace
;
sheet = "Most Recent";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797865#M313703</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-22T16:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797874#M313705</link>
      <description>Thank you so much Kurt, it work perfectly.</description>
      <pubDate>Tue, 22 Feb 2022 19:09:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/797874#M313705</guid>
      <dc:creator>Brian16</dc:creator>
      <dc:date>2022-02-22T19:09:23Z</dc:date>
    </item>
  </channel>
</rss>

