<?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: Unresolved reference to table/correlation name class1. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547962#M7324</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have tried with both of them ,yes i have used class1 ref in libname before.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 17:18:24 GMT</pubDate>
    <dc:creator>Shrutibhatnagar</dc:creator>
    <dc:date>2019-04-02T17:18:24Z</dc:date>
    <item>
      <title>ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547956#M7322</link>
      <description>&lt;DIV&gt;&lt;DIV class="sasSource"&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;73 proc sql;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 select product_id ,count(product_id)&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 from class1.mismatches1&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 group by class1.product_id&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 having count(product_id) &amp;gt;1 ;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Unresolved reference to table/correlation name class1.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 quit;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547956#M7322</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-04-02T17:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547959#M7323</link>
      <description>&lt;P&gt;If you have previously defined CLASS1 in a LIBNAME statement, then you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;group by mismatches1.product_id
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or, since there is only one data set mentioned in the FROM clause, you could also use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;group by product_id&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547959#M7323</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-02T17:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547962#M7324</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have tried with both of them ,yes i have used class1 ref in libname before.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547962#M7324</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-04-02T17:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547964#M7325</link>
      <description>says no source no syntax check</description>
      <pubDate>Tue, 02 Apr 2019 17:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547964#M7325</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-04-02T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547968#M7326</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I have tried with both of them ,yes i have used class1 ref in libname before.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Show us the&amp;nbsp;&lt;STRONG&gt;entire&lt;/STRONG&gt; SAS log of what you have tried. Click on the {i} icon and paste the log into the window that appears (do not show us the log any other way).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547968#M7326</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-02T17:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547972#M7327</link>
      <description>&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 proc sql;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 select product_id ,count(product_id)&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 from class1.mismatches1&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 group by class1.product_id&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 having count(product_id) &amp;gt;1 ;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Unresolved reference to table/correlation name class1.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 quit;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.06 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.03 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;92&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547972#M7327</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-04-02T17:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547976#M7328</link>
      <description>&lt;P&gt;So you have not defined CLASS1 in a LIBNAME statement? There is no LIBNAME in your log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you show us the log, you need to click on the {i} and paste the log into that window. Do not show us logs any other way.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547976#M7328</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-02T17:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547985#M7330</link>
      <description>&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 libname class1 '/folders/myfolders/mysas';&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Libref CLASS1 refers to the same physical library as CLASS3.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Libref CLASS1 was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Engine: V9&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Physical Name: /folders/myfolders/mysas&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 proc import datafile='/folders/myfolders/mysas/smb.csv'&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 dbms=csv out=class1.smb replace;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;WORK.PARMS.PARMS.SLIST.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;99999 rows created in CLASS1.SMB from /folders/myfolders/mysas/smb.csv.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;1353&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547985#M7330</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-04-02T17:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547990#M7331</link>
      <description>&lt;P&gt;Hi, we are trying to help you, but you have to help us. Logs must be pasted into the window that appears when you click on the {i} icon.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 18:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/547990#M7331</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-02T18:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unresolved reference to table/correlation name class1.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/548016#M7333</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/258210"&gt;@Shrutibhatnagar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;73 proc sql;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;74 select product_id ,count(product_id)&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;75 from class1.mismatches1&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76 group by class1.product_id&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 having count(product_id) &amp;gt;1 ;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR: Unresolved reference to table/correlation name class1.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 quit;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Except in the FROM clause a reference like ABC.PDQ means that ABC is a data set reference or alias and PDQ is the variable named PDQ in the data set ABC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your statement&lt;/P&gt;
&lt;PRE&gt;76 group by class1.product_id&lt;/PRE&gt;
&lt;P&gt;is attempting to reference a &lt;STRONG&gt;dataset&lt;/STRONG&gt; named class1 that has not been defined. If you want to use the variable Product_id that comes from the data set class1.mismatches1 then only use&lt;/P&gt;
&lt;PRE&gt;group by product_id&lt;/PRE&gt;
&lt;P&gt;You can create an alias to data set by&lt;/P&gt;
&lt;PRE&gt;from library.dataset &amp;lt;as&amp;gt; abc&lt;/PRE&gt;
&lt;P&gt;the as is optional but I normally use it to keep the intent clearer.&lt;/P&gt;
&lt;P&gt;Then to reference a variable in the dataset library.dataset you use abc.varname.&lt;/P&gt;
&lt;P&gt;This is mostly import when two or more data sets are used in a single proc sql statement and especially when two or more sets have a same named variable to reference which data set you want to contribute the value.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 19:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Unresolved-reference-to-table-correlation-name-class1/m-p/548016#M7333</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-02T19:28:50Z</dc:date>
    </item>
  </channel>
</rss>

