<?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: &amp;quot;ERROR 180-322: Statement is not valid or it is used out of proper order&amp;quot;? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836858#M330885</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404165"&gt;@2222&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then eventually you really should set at the very beginning of your program&lt;/P&gt;
&lt;PRE&gt;options mprint symbolgen spool;&lt;/PRE&gt;
&lt;P&gt;As for spool: That's what the SAS log recommends you to do.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1664943365804.png" style="width: 575px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75891i0E2CFFC0046DA6AE/image-dimensions/575x23?v=v2" width="575" height="23" role="button" title="Patrick_0-1664943365804.png" alt="Patrick_0-1664943365804.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also make sure that you run your code out of a fresh new SAS session (with EG for example disconnect from your session before re-running).&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 04:17:09 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2022-10-05T04:17:09Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836650#M330807</link>
      <description>&lt;P&gt;Hello, can anyone see in the code below why I might be getting the "ERROR 180-322: Statement is not valid or it is used out of proper order"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname x"\\...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro copy_two(qtrname, year, filename);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname A"\\...;&lt;BR /&gt;libname B"\\...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data B.&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year. (keep=ID cost);/*any other variables to keep go here*/&lt;BR /&gt;/*qtr=&amp;amp;qtrname.;&lt;BR /&gt;year=&amp;amp;year.;*/&lt;BR /&gt;set A.&amp;amp;filename.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;create&amp;nbsp;table B..x&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year. as select *&lt;BR /&gt;&amp;nbsp;&amp;nbsp; from B.&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year.;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%mend copy_two;&lt;/P&gt;&lt;P&gt;%macro loop(start,end);&lt;/P&gt;&lt;P&gt;%do i = &amp;amp;start. %to &amp;amp;end.;&lt;BR /&gt;%copy_two(Mar, &amp;amp;i., file);&lt;BR /&gt;%copy_two(Jun, &amp;amp;i., file);&lt;BR /&gt;%copy_two(Sep, &amp;amp;i., file);&lt;BR /&gt;%copy_two(Dec, &amp;amp;i., file);&lt;BR /&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%mend loop;&lt;/P&gt;&lt;P&gt;/*specify the years of interest*/&lt;BR /&gt;%loop(11,21)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 07:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836650#M330807</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2022-10-04T07:49:16Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836651#M330808</link>
      <description>&lt;P&gt;The first possible issue is right in the first statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname x"\\...;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The physical path misses the closing double quote.&lt;/P&gt;
&lt;P&gt;But for real diagnostics, we MUST see the whole log of your code, from the beginning to at least up to the first ERROR message.&lt;/P&gt;
&lt;P&gt;Use this button to post the log:&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>Tue, 04 Oct 2022 08:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836651#M330808</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-04T08:04:30Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836661#M330811</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;Thank you for looking at this; the code includes the "&amp;nbsp; at the end. this is the log error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;180: LINE and COLUMN cannot be determined.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the LINE and COLUMN where the error has occurred.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I'm not allowed to show the code exactly or the log, but I hope this helps a bit.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 08:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836661#M330811</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2022-10-04T08:55:55Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836667#M330814</link>
      <description>&lt;P&gt;Quote from myself:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;But for real diagnostics, we MUST see the &lt;STRONG&gt;whole log of your code, from the beginning to at least up to the first ERROR message&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Emphasis added&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836667#M330814</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-04T09:27: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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836669#M330815</link>
      <description>&lt;P&gt;...and as the log tells you add at the beginning of your code: options spool;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1664875783126.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75847iE6A985A43289CCD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1664875783126.png" alt="Patrick_0-1664875783126.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why are there two full stops?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1664875995529.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75848i1BDB1CC216022EFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1664875995529.png" alt="Patrick_0-1664875995529.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836669#M330815</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-04T09: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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836841#M330870</link>
      <description>sorry Kurt, I'm not allowed to</description>
      <pubDate>Wed, 05 Oct 2022 01:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836841#M330870</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2022-10-05T01:43:18Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836842#M330871</link>
      <description>it's not the dots that's causing the error, and we shouldn't need options spool</description>
      <pubDate>Wed, 05 Oct 2022 01:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836842#M330871</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2022-10-05T01:44:23Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836845#M330873</link>
      <description>&lt;P&gt;Make sure to turn on the MPRINT option so you can see the SAS code that the macro generates (and that the error message is talking about).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you definitely cannot have a member name that starts with a period.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create table B..x&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year. &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Unless you set option VALIDMEMNAME=EXTEND.&amp;nbsp; And even then you would need to have the macro generate a name literal.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create table B.".x&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year."n &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Oct 2022 02:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836845#M330873</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-05T02:24:57Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836850#M330878</link>
      <description>thank you Tom, but i have tried:&lt;BR /&gt;proc sql;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;create&amp;nbsp;table B.test&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year. as select *&lt;BR /&gt;&amp;nbsp;&amp;nbsp; from B.&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year.;&lt;BR /&gt;quit;&lt;BR /&gt;same error given, so i don't think the period made any difference</description>
      <pubDate>Wed, 05 Oct 2022 03:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836850#M330878</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2022-10-05T03:44:44Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836852#M330880</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404165"&gt;@2222&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;thank you Tom, but i have tried:&lt;BR /&gt;proc sql;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;create&amp;nbsp;table B.test&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year. as select *&lt;BR /&gt;&amp;nbsp;&amp;nbsp; from B.&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year.;&lt;BR /&gt;quit;&lt;BR /&gt;same error given, so i don't think the period made any difference&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you fixed one error, but you still have another error.&lt;/P&gt;
&lt;P&gt;Your code does not look that complicated so it is highly likely the error is actually being generated by something you ran BEFORE the code you posted.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 03:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836852#M330880</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-05T03:50:46Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836853#M330881</link>
      <description>but the code i posted (to begin thread) is the whole program</description>
      <pubDate>Wed, 05 Oct 2022 03:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836853#M330881</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2022-10-05T03:53:24Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836858#M330885</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404165"&gt;@2222&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then eventually you really should set at the very beginning of your program&lt;/P&gt;
&lt;PRE&gt;options mprint symbolgen spool;&lt;/PRE&gt;
&lt;P&gt;As for spool: That's what the SAS log recommends you to do.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1664943365804.png" style="width: 575px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75891i0E2CFFC0046DA6AE/image-dimensions/575x23?v=v2" width="575" height="23" role="button" title="Patrick_0-1664943365804.png" alt="Patrick_0-1664943365804.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also make sure that you run your code out of a fresh new SAS session (with EG for example disconnect from your session before re-running).&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 04:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836858#M330885</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-05T04:17:09Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836861#M330888</link>
      <description>&lt;P&gt;Then you will need SAS technical support to help you.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 04:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836861#M330888</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-05T04:23:23Z</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/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836867#M330891</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404165"&gt;@2222&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below code works.&lt;/P&gt;
&lt;P&gt;Not sure where in your code you're using libref X or where you define and populate &amp;amp;filename. You certainly haven't shared all the code with us.&lt;/P&gt;
&lt;P&gt;Also note that because you pass in string "file" to macro %loop() the only value &amp;amp;filename may have for things to work is &lt;STRONG&gt;file&lt;/STRONG&gt;. Not sure if this is what you intended to do.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1664944994410.png" style="width: 687px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75893i9A60C9D854A78B95/image-dimensions/687x599?v=v2" width="687" height="599" role="button" title="Patrick_1-1664944994410.png" alt="Patrick_1-1664944994410.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options dlcreatedir spool mprint symbolgen;
%let filename=FILE;
libname x "c:\temp\a";

data x.&amp;amp;filename;
  do id=1 to 5;
    cost=id*10;
    output;
  end;
run;

%macro copy_two(qtrname, year, filename);
  libname A "c:\temp\a";
  libname B "c:\temp\b";

  data B.&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year. (keep=ID cost);/*any other variables to keep go here*/
    /*qtr=&amp;amp;qtrname.;
    year=&amp;amp;year.;*/
    set A.&amp;amp;filename.;
  run;

  proc sql;
    create table B.x&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year. as select *
      from B.&amp;amp;filename.&amp;amp;qtrname.&amp;amp;year.;
  quit;

%mend copy_two;

%macro loop(start,end);
  %do i = &amp;amp;start. %to &amp;amp;end.;
    %copy_two(Mar, &amp;amp;i., file);
    %copy_two(Jun, &amp;amp;i., file);
    %copy_two(Sep, &amp;amp;i., file);
    %copy_two(Dec, &amp;amp;i., file);
  %end;
%mend loop;

/*specify the years of interest*/
%loop(11,21)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 04:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of/m-p/836867#M330891</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-05T04:44:52Z</dc:date>
    </item>
  </channel>
</rss>

