<?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 Error 73-322 expecting an on in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583322#M166054</link>
    <description>&lt;P&gt;Any help on why this error 73-322 is generating?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
                                        _
proc sql noprint;
121        create table MBR as
122        select a.*, b.description as PROV_SPECIALTY_DESCRIP
123        from MBR a left join sasave.prov_type_master_map to_prov_spe b
                                                                        _
                                                                        73
                                                                        76
ERROR 73-322: Expecting an ON.

ERROR 76-322: Syntax error, statement will be ignored.

124        on a.prov_specialty_type = b.type_or_spec_code;
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
125        quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      
126        run;
127        


128        data MBR(drop=PROV_SPECIALTY_DESCRIP);
129         set MBR;
130        
131         description=PROV_SPECIALTY_DESCRIP;
132         run;                                                                        
                                                                        76


&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Aug 2019 19:49:08 GMT</pubDate>
    <dc:creator>req41273</dc:creator>
    <dc:date>2019-08-22T19:49:08Z</dc:date>
    <item>
      <title>Error 73-322 expecting an on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583322#M166054</link>
      <description>&lt;P&gt;Any help on why this error 73-322 is generating?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
                                        _
proc sql noprint;
121        create table MBR as
122        select a.*, b.description as PROV_SPECIALTY_DESCRIP
123        from MBR a left join sasave.prov_type_master_map to_prov_spe b
                                                                        _
                                                                        73
                                                                        76
ERROR 73-322: Expecting an ON.

ERROR 76-322: Syntax error, statement will be ignored.

124        on a.prov_specialty_type = b.type_or_spec_code;
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
125        quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      
126        run;
127        


128        data MBR(drop=PROV_SPECIALTY_DESCRIP);
129         set MBR;
130        
131         description=PROV_SPECIALTY_DESCRIP;
132         run;                                                                        
                                                                        76


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 19:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583322#M166054</guid>
      <dc:creator>req41273</dc:creator>
      <dc:date>2019-08-22T19:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error 73-322 expecting an on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583326#M166055</link>
      <description>&lt;P&gt;Perhaps you need something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;from MBR a left join sasave.prov_type_master_map b
on a.variablename=b.variablename&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After the second data set name of a left join (in this case sasave.prov_type_master_map), you must use the ON clause at that point (or you can have an alias followed by the ON clause). Your text there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;to_prov_spe&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;isn't allowed, this isn't an alias and it isn't an ON clause.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583326#M166055</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-22T20:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error 73-322 expecting an on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583328#M166056</link>
      <description>&lt;P&gt;Review the line below, it seems to have an unexpected space between "_map to"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;left join sasave.prov_type_master_map to_prov_spe b&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583328#M166056</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-08-22T20:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error 73-322 expecting an on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583522#M166115</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; I made the change accordingly using a.variablename=b.variablename. It works.&amp;nbsp; Is there a way I can modified the line of SAS code to drop set (&amp;nbsp;include)&amp;nbsp;a second variable on table b?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 15:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583522#M166115</guid>
      <dc:creator>req41273</dc:creator>
      <dc:date>2019-08-23T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error 73-322 expecting an on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583542#M166121</link>
      <description>&lt;P&gt;The list of variables being created/output is located between the SELECT and the FROM keywords.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select 
  a.*
, b.var1
, b.var2
from&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Aug 2019 16:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583542#M166121</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-23T16:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error 73-322 expecting an on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583543#M166122</link>
      <description>Thanks, this worked.</description>
      <pubDate>Fri, 23 Aug 2019 16:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583543#M166122</guid>
      <dc:creator>req41273</dc:creator>
      <dc:date>2019-08-23T16:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error 73-322 expecting an on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583544#M166123</link>
      <description>Thanks.</description>
      <pubDate>Fri, 23 Aug 2019 16:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-73-322-expecting-an-on/m-p/583544#M166123</guid>
      <dc:creator>req41273</dc:creator>
      <dc:date>2019-08-23T16:32:33Z</dc:date>
    </item>
  </channel>
</rss>

