<?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: how to refer a table created in proc sql ? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543832#M7240</link>
    <description>&lt;P&gt;Listing all error related to the process would have help at the beginning of this request.&amp;nbsp; Since those important facts were excluded in the beginning time related to resolve the issue was delayed .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;496 on smb.product_id=test.product_id;&lt;/DIV&gt;
&lt;DIV class="sasError" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ERROR: Libref TEST is not assigned.&lt;/DIV&gt;
&lt;DIV class="sasNote" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/DIV&gt;
&lt;DIV class="sasSource" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;497&lt;/DIV&gt;
&lt;DIV class="sasSource" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;498 quit;&lt;/DIV&gt;</description>
    <pubDate>Sun, 17 Mar 2019 20:53:18 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2019-03-17T20:53:18Z</dc:date>
    <item>
      <title>how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543810#M7227</link>
      <description>&lt;P&gt;table 1 smb&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;table 2&amp;nbsp; test:-&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table test as&lt;BR /&gt;select year, product_ID, max(AON) as MAX_AON from class1.smb&lt;BR /&gt;group by 1;&lt;BR /&gt;quit;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to do left join of the smb and test table&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i do this -&lt;/P&gt;&lt;P&gt;proc sql ;&lt;BR /&gt;select distinct&lt;BR /&gt;(smb.PRODUCT_ID)&lt;BR /&gt;,smb.Year&lt;BR /&gt;,smb.AON&lt;BR /&gt;,smb.CELL_CALL_CNT_M1&lt;BR /&gt;,smb.CELL_CALL_CNT_M2&lt;BR /&gt;,smb.CELL_CALL_CNT_M3&lt;BR /&gt;,smb.CELL_CALL_CNT_M4&lt;BR /&gt;,smb.CELL_CALL_CNT_M5&lt;BR /&gt;,smb.CELL_CALL_CNT_M6&lt;BR /&gt;,smb.CELL_CALL_SEC_M1&lt;BR /&gt;,smb.CELL_CALL_SEC_M2&lt;BR /&gt;,smb.CELL_CALL_SEC_M3&lt;BR /&gt;,smb.CELL_CALL_SEC_M4&lt;BR /&gt;,smb.CELL_CALL_SEC_M5&lt;BR /&gt;,smb.CELL_CALL_SEC_M6&lt;BR /&gt;,smb.CELL_CALL_avg_dur_M1&lt;BR /&gt;,smb.CELL_CALL_avg_dur_M2&lt;BR /&gt;,smb.CELL_CALL_avg_dur_M3&lt;BR /&gt;,smb.CELL_CALL_avg_dur_M4&lt;BR /&gt;,smb.CELL_CALL_avg_dur_M5&lt;BR /&gt;,smb.CELL_CALL_avg_dur_M6&lt;BR /&gt;,smb.CELL_USAGE_CHARGE_AMT_M1&lt;BR /&gt;,smb.CELL_USAGE_CHARGE_AMT_M2&lt;BR /&gt;,smb.CELL_USAGE_CHARGE_AMT_M3&lt;BR /&gt;,smb.CELL_USAGE_CHARGE_AMT_M4&lt;BR /&gt;,smb.CELL_USAGE_CHARGE_AMT_M5&lt;BR /&gt;,smb.CELL_USAGE_CHARGE_AMT_M6&lt;/P&gt;&lt;P&gt;from class1.smb&lt;/P&gt;&lt;P&gt;left join test&lt;BR /&gt;on smb.product_id=test.product_id;&lt;BR /&gt;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this doesn't execute&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help ....&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 16:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543810#M7227</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-17T16:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543812#M7228</link>
      <description>&lt;P&gt;If this is a followup to your other message then you have included even less information than before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There does not appear to be an mistakes in your code (other than extract parentheses around the first variable selected in your longer SQL code).&amp;nbsp; What error are you getting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Make sure to use one of the two code insert buttons on the menu bar to insert your code and your log. They will pop-up a new window that you can paste in the text from your SAS log window. This way the formatting is preserved.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 16:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543812#M7228</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-17T16:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543815#M7229</link>
      <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;change this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;(smb.PRODUCT_ID)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;smb.PRODUCT_ID&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;that might help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 16:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543815#M7229</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-03-17T16:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543818#M7230</link>
      <description>&lt;P&gt;Still does not execute .executing from past 20 min .&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 16:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543818#M7230</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-17T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543819#M7231</link>
      <description>&lt;P&gt;not executing even . its been running from past 20 min .&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 16:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543819#M7231</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-17T16:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543821#M7232</link>
      <description>&lt;P&gt;Since you do a left join without using any columns from the "right" dataset, the join makes no sense.&lt;/P&gt;
&lt;P&gt;Keep in mind that the distinct forces a sort over&amp;nbsp;&lt;EM&gt;all&lt;/EM&gt; variables, so that could cause heavy processing load.&lt;/P&gt;
&lt;P&gt;If it does not do anything, you might have something "unclosed" from previous code that prevents execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, post the log.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 17:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543821#M7232</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-17T17:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543822#M7233</link>
      <description>&lt;P&gt;the error given is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;92&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;493 from class1.smb&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;494&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;495 left join test.product_id&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;496 on smb.product_id=test.product_id;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Libref TEST is not assigned.&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;497&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;498 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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;code after correction -&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;P&gt;from class1.smb&lt;/P&gt;&lt;P&gt;left join test.product_id&lt;BR /&gt;on smb.product_id=test.product_id;&lt;BR /&gt;&lt;BR /&gt;quit;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Mar 2019 17:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543822#M7233</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-17T17:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543823#M7234</link>
      <description>&lt;P&gt;The ERROR message is clear.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 18:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543823#M7234</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-17T18:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543824#M7235</link>
      <description>&lt;P&gt;i want to know how do i refer this table ,as we refer through libname when we give a path but this is created in proc statement i wrote . How to refer the test table in proc sql to be joined with smb table ?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 18:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543824#M7235</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-17T18:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543826#M7236</link>
      <description>&lt;P&gt;You refer to dataset test.product_id in your join clause, which means dataset product_id in library test.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 18:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543826#M7236</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-17T18:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543827#M7237</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;P&gt;i want to know how do i refer this table ,as we refer through libname when we give a path but this is created in proc statement i wrote . How to refer the test table in proc sql to be joined with smb table ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you created a table named TEST then you refer to it the same way, as TEST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to tables using a one-level (member) or two-level&amp;nbsp;(libref.member) name.&lt;/P&gt;
&lt;P&gt;When you use a one level name SAS will normally prefix the libref of WORK.&amp;nbsp; (Note that you can create a&amp;nbsp;USER libref or use&amp;nbsp;the associated options to override this behavior).&amp;nbsp; So you could also refer to it as WORK.TEST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you created a work dataset and then start a new SAS session then that dataset is gone and you will need to re-create it. (Again there are options to override the default behavior of deleting work datasets when the SAS session ends)&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 18:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543827#M7237</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-17T18:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543828#M7238</link>
      <description>&lt;P&gt;now i get new errors i referred the same&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;78 ,smb.Year&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;200&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, (, AS, ON.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 ,smb.AON&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 ,smb.CELL_CALL_CNT_M1&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 ,smb.CELL_CALL_CNT_M2&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 ,smb.CELL_CALL_CNT_M3&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 ,smb.CELL_CALL_CNT_M4&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 ,smb.CELL_CALL_CNT_M5&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 ,smb.CELL_CALL_CNT_M6&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 ,smb.CELL_CALL_SEC_M1&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 ,smb.CELL_CALL_SEC_M2&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88 ,smb.CELL_CALL_SEC_M3&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89 ,smb.CELL_CALL_SEC_M4&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90 ,smb.CELL_CALL_SEC_M5&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91 ,smb.CELL_CALL_SEC_M6&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;92 ,smb.CELL_CALL_avg_dur_M1&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;93 ,smb.CELL_CALL_avg_dur_M2&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;94 ,smb.CELL_CALL_avg_dur_M3&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;95 ,smb.CELL_CALL_avg_dur_M4&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;96 ,smb.CELL_CALL_avg_dur_M5&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;97 ,smb.CELL_CALL_avg_dur_M6&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;98 ,smb.CELL_USAGE_CHARGE_AMT_M1&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;99 ,smb.CELL_USAGE_CHARGE_AMT_M2&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;100 ,smb.CELL_USAGE_CHARGE_AMT_M3&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;101 ,smb.CELL_USAGE_CHARGE_AMT_M4&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;102 ,smb.CELL_USAGE_CHARGE_AMT_M5&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;103 ,smb.CELL_USAGE_CHARGE_AMT_M6&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="dijitBorderContainer dijitContainer row-fluid dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitAlignCenter dijitContentPaneSingleChild dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane"&gt;&lt;DIV class="tabs dijitBorderContainer dijitContainer dojoDndTarget sasStudioTabsParentContainer dijitLayoutContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasStudioTabsTabContainer sasStudioTabsTabContainerVertical sasStudioTabsTop dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer sasStudioTabsTabContainerChild dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dojoDndTarget dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasSuiteTabs dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;492 ,smb.Avg_DEC_3M_USAGE_CHARGE_AMT as t2&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;493&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;494&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;495 on t1.product_id=t2.product_id;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;__&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ',', ANSIMISS, CROSS, EXCEPT, FULL, GROUP, HAVING, INNER, INTERSECT,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;JOIN, LEFT, NATURAL, NOMISS, ORDER, OUTER, RIGHT, UNION, WHERE.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&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;496&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;497 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.20 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.19 seconds&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;498&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;499&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;500&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;501&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;502&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;503&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;504&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;505&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;506&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;507&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;508&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;509 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;521&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="dijitContentPane statusBar dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignBottom"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Mar 2019 19:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543828#M7238</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-17T19:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543831#M7239</link>
      <description>&lt;P&gt;Your problems start further up in the code.&lt;/P&gt;
&lt;P&gt;I suggest that you spend some time studying the SAS SQL documentation, so you get at least a basic grasp of how the sql procedure works.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 20:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543831#M7239</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-17T20:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543832#M7240</link>
      <description>&lt;P&gt;Listing all error related to the process would have help at the beginning of this request.&amp;nbsp; Since those important facts were excluded in the beginning time related to resolve the issue was delayed .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;496 on smb.product_id=test.product_id;&lt;/DIV&gt;
&lt;DIV class="sasError" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ERROR: Libref TEST is not assigned.&lt;/DIV&gt;
&lt;DIV class="sasNote" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/DIV&gt;
&lt;DIV class="sasSource" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;497&lt;/DIV&gt;
&lt;DIV class="sasSource" style="box-sizing: inherit; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;498 quit;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Mar 2019 20:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543832#M7240</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-03-17T20:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543871#M7241</link>
      <description>&lt;P&gt;yes sure &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but the error now says this :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;76 from work.test&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 left join smb.PRODUCT_ID&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 ,smb.Year&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;200&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, (, AS, ON.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 ,smb.AON&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 ,smb.CELL_CALL_CNT_M1&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 ,smb.CELL_CALL_CNT_M2&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 ,smb.CELL_CALL_CNT_M3&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;DIV class="sasSource"&gt;494 on class1.product_id=test.product_id;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;__&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, ',', ANSIMISS, AS, CROSS, EXCEPT, FULL, GROUP, HAVING,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;INNER, INTERSECT, JOIN, LEFT, NATURAL, NOMISS, ORDER, OUTER, RIGHT, UNION, WHERE.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Mar 2019 05:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543871#M7241</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-18T05:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to refer a table created in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543877#M7242</link>
      <description>&lt;P&gt;Once again: you have to seem absolutely no clue about proc sql, so the complicated things you want to do here are WAY over your head and just a useless waste of time.&lt;/P&gt;
&lt;P&gt;Start out with the simple examples from the documentation, and come back once you have that worked out. We're not here to teach you thinngs you can easily learn by yourself by working through Programming 1.&lt;/P&gt;
&lt;P&gt;Just this:&lt;/P&gt;
&lt;PRE&gt;77 left join smb.PRODUCT_ID
78 ,smb.Year&lt;/PRE&gt;
&lt;P&gt;The list of variables in a select has to come BEFORE the "from". This is absolutely basic SQL, and you need to grasp that before you advance to any complicated join.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 06:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-refer-a-table-created-in-proc-sql/m-p/543877#M7242</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-18T06:51:07Z</dc:date>
    </item>
  </channel>
</rss>

