<?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 73-322 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-73-322/m-p/670717#M201379</link>
    <description>You're welcome.&lt;BR /&gt;One ';' for the %end (i.e. for the macro instruction %do; ... %end;) and another for the rename statement.</description>
    <pubDate>Mon, 20 Jul 2020 16:08:09 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2020-07-20T16:08:09Z</dc:date>
    <item>
      <title>ERROR 73-322</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-73-322/m-p/670708#M201376</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Dear Everyone,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;I wanted to add prefix "o" to all the variables in foo.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;&lt;FONT size="4"&gt;But I don't understand what is missing.&amp;nbsp;&lt;BR /&gt;Can anyone point me out please?&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;/FONT&gt;After the last iteration, this is what SAS log shows.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="andale mono,times"&gt;&lt;CODE class=" language-sas"&gt;SYMBOLGEN:  Macro variable VAR86 resolves to val86
MLOGIC(ADDPREFIX):  %DO loop index variable I is now 87; loop will not iterate again.
NOTE: Line generated by the invoked macro "ADDPREFIX".
10937    quit; run;
             -
             73
             76
&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;The error it gives are&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;ERROR 73-322: Expecting an =.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="andale mono,times"&gt;&lt;CODE class=" language-sas"&gt;%macro addprefix(add=);
proc datasets library=work;
modify foo;
rename %do i=1 %to &amp;amp;num_vars.; &amp;amp;&amp;amp;var&amp;amp;i=&amp;amp;add.&amp;amp;&amp;amp;var&amp;amp;i. %end;
quit;
run;
%mend addprefix;
%addprefix(add=o);&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 15:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-73-322/m-p/670708#M201376</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2020-07-20T15:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 73-322</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-73-322/m-p/670710#M201377</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I think you miss a semi-colon for the rename statement (after %end;).</description>
      <pubDate>Mon, 20 Jul 2020 15:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-73-322/m-p/670710#M201377</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2020-07-20T15:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 73-322</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-73-322/m-p/670716#M201378</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30622"&gt;@gamotte&lt;/a&gt;&amp;nbsp;for your quick response.&lt;/P&gt;
&lt;P&gt;Why is another ; needed?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 16:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-73-322/m-p/670716#M201378</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2020-07-20T16:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 73-322</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-73-322/m-p/670717#M201379</link>
      <description>You're welcome.&lt;BR /&gt;One ';' for the %end (i.e. for the macro instruction %do; ... %end;) and another for the rename statement.</description>
      <pubDate>Mon, 20 Jul 2020 16:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-73-322/m-p/670717#M201379</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2020-07-20T16:08:09Z</dc:date>
    </item>
  </channel>
</rss>

