<?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 getting error  ERROR 22-322: Syntax error, expecting one of the following: !!, *, **, +, -, .., /, &amp;lt; in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/getting-error-ERROR-22-322-Syntax-error-expecting-one-of-the/m-p/723527#M9834</link>
    <description>&lt;P&gt;proc optmodel;&lt;BR /&gt;var XA1,XA2,XA3,XB1,XB2,XB3,XC1,XC2,XC3,XD1,XD2,XD3;&lt;BR /&gt;max Z = 500XA1 + 650XA2 + 400XA3 + 750XB1 + 800XB2 + 700XB3 + 300XC1 + 400XC2 + 500XC3 + 450XD1 + 600XD2 + 550XD3;&lt;BR /&gt;con&lt;BR /&gt;XA1+XB1+XC1+XD1=12,&lt;BR /&gt;XA2+XB2+XC2+XD2=17,&lt;BR /&gt;XA3+XB3+XC3+XD3=11,&lt;BR /&gt;XA1+XA2+XA3=10,&lt;BR /&gt;XB1+XB2+XB3=10,&lt;BR /&gt;XC1+XC2+XC3=10,&lt;BR /&gt;XA1&amp;gt;=0,XA2&amp;gt;=0,XA3&amp;gt;=0,XB1&amp;gt;=0,XB2&amp;gt;=0,XB3&amp;gt;=0,XC1&amp;gt;=0,XC2&amp;gt;=0,XC3&amp;gt;=0,XD1&amp;gt;=0,XD2&amp;gt;=0,XD3&amp;gt;=0;&lt;BR /&gt;solve;&lt;BR /&gt;print XA1 XA2 XA3 XB1 XB2 XB3 XC1 XC2 XC3 XD1 XD2 XD3;run;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 17:28:34 GMT</pubDate>
    <dc:creator>jinssbox</dc:creator>
    <dc:date>2021-03-04T17:28:34Z</dc:date>
    <item>
      <title>getting error  ERROR 22-322: Syntax error, expecting one of the following: !!, *, **, +, -, .., /, &lt;</title>
      <link>https://communities.sas.com/t5/SAS-Studio/getting-error-ERROR-22-322-Syntax-error-expecting-one-of-the/m-p/723527#M9834</link>
      <description>&lt;P&gt;proc optmodel;&lt;BR /&gt;var XA1,XA2,XA3,XB1,XB2,XB3,XC1,XC2,XC3,XD1,XD2,XD3;&lt;BR /&gt;max Z = 500XA1 + 650XA2 + 400XA3 + 750XB1 + 800XB2 + 700XB3 + 300XC1 + 400XC2 + 500XC3 + 450XD1 + 600XD2 + 550XD3;&lt;BR /&gt;con&lt;BR /&gt;XA1+XB1+XC1+XD1=12,&lt;BR /&gt;XA2+XB2+XC2+XD2=17,&lt;BR /&gt;XA3+XB3+XC3+XD3=11,&lt;BR /&gt;XA1+XA2+XA3=10,&lt;BR /&gt;XB1+XB2+XB3=10,&lt;BR /&gt;XC1+XC2+XC3=10,&lt;BR /&gt;XA1&amp;gt;=0,XA2&amp;gt;=0,XA3&amp;gt;=0,XB1&amp;gt;=0,XB2&amp;gt;=0,XB3&amp;gt;=0,XC1&amp;gt;=0,XC2&amp;gt;=0,XC3&amp;gt;=0,XD1&amp;gt;=0,XD2&amp;gt;=0,XD3&amp;gt;=0;&lt;BR /&gt;solve;&lt;BR /&gt;print XA1 XA2 XA3 XB1 XB2 XB3 XC1 XC2 XC3 XD1 XD2 XD3;run;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 17:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/getting-error-ERROR-22-322-Syntax-error-expecting-one-of-the/m-p/723527#M9834</guid>
      <dc:creator>jinssbox</dc:creator>
      <dc:date>2021-03-04T17:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: getting error  ERROR 22-322: Syntax error, expecting one of the following: !!, *, **, +, -, ..,</title>
      <link>https://communities.sas.com/t5/SAS-Studio/getting-error-ERROR-22-322-Syntax-error-expecting-one-of-the/m-p/723545#M9835</link>
      <description>&lt;P&gt;Best practice is to copy from the log the entire procedure or data step that throws an error along with all the errors, notes and warnings. Then paste the copied text into a text box opened on the forum with the &amp;lt;/&amp;gt; icon. That preserves text formatting and shows the diagnostic characters properly in relation to the code.&lt;/P&gt;
&lt;P&gt;ERROR 22-322 typically shows an ____ at the offending position. There error may be caused by a prior line improperly terminated (missing semicolon or semicolon in unexpected location).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the message windows on this forum will reformat text and may have removed a character causing issues if it was a white space character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suspect this line is a likely cause:&lt;/P&gt;
&lt;PRE&gt;max Z = 500XA1 + 650XA2 + 400XA3 + 750XB1 + 800XB2 + 700XB3 + 300XC1 + 400XC2 + 500XC3 + 450XD1 + 600XD2 + 550XD3;
&lt;/PRE&gt;
&lt;P&gt;500xa1 doesn't look like a valid variable and there is no operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you intend to multiply Xa1 by 500 you need to explicitly put a multiply operator * between the variable and the value.&lt;/P&gt;
&lt;P&gt;500*xa1 + 650*xa2 ...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 18:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/getting-error-ERROR-22-322-Syntax-error-expecting-one-of-the/m-p/723545#M9835</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-04T18:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: getting error  ERROR 22-322: Syntax error, expecting one of the following: !!, *, **, +, -, ..,</title>
      <link>https://communities.sas.com/t5/SAS-Studio/getting-error-ERROR-22-322-Syntax-error-expecting-one-of-the/m-p/723999#M9849</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;explicitly keeping&amp;nbsp; multiply operator * between the variable and the value worked.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 19:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/getting-error-ERROR-22-322-Syntax-error-expecting-one-of-the/m-p/723999#M9849</guid>
      <dc:creator>jinssbox</dc:creator>
      <dc:date>2021-03-05T19:59:18Z</dc:date>
    </item>
  </channel>
</rss>

