<?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: Proc SQL in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576503#M7772</link>
    <description>&lt;P&gt;PS you have so many &lt;EM&gt;catastrophic&lt;/EM&gt; errors in your code that it is next to impossible to deduct what you are trying to do.&lt;/P&gt;
&lt;P&gt;Please supply&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the correct names of your datasets (library.dataset)&lt;/LI&gt;
&lt;LI&gt;the names of the columns within the datasets (no dots allowed there)&lt;/LI&gt;
&lt;LI&gt;the columns you want to use for the join condition&lt;/LI&gt;
&lt;LI&gt;the columns you want to have in the output, and from which dataset&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Thu, 25 Jul 2019 08:56:36 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-07-25T08:56:36Z</dc:date>
    <item>
      <title>Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576494#M7768</link>
      <description>&lt;DIV&gt;&lt;DIV class="sasSource"&gt;Could you please direct me where the error originated or how to resolve the error!&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Thanks&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Shakhane&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;73&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sql;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table work.weston_milling_sas&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select intake.name, intake.xlsx.sap code, warehouse.xlsx.sap code&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND, AS, BETWEEN, CONTAINS, EQ, EQT, FORMAT, FROM, GE, GET, GT, GTT, IN, INFORMAT, INTO, IS, LABEL, LE, LEN, LENGTH,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, TRANSCODE, ^, ^=, |, ||, ~, ~=.&amp;nbsp;&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="sasSource"&gt;77&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from weston_milling_sas.intake.xlsx intake.xlsx&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner join westin_milling_sas.warehouse.xlsx warehouse.xlsx&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from unknown table string null unknown table string&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on;&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;81&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576494#M7768</guid>
      <dc:creator>Shakhane</dc:creator>
      <dc:date>2019-07-25T08:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576496#M7769</link>
      <description>&lt;P&gt;I think the log is pretty clear?&lt;/P&gt;
&lt;P&gt;However, I don't think you want a three level name in your select Clause. Also, you use the alias 'code' for two variables.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576496#M7769</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-07-25T08:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576499#M7770</link>
      <description>&lt;P&gt;Could you please highlight the alias 'code' for me, may I am not sure what are you talking about!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576499#M7770</guid>
      <dc:creator>Shakhane</dc:creator>
      <dc:date>2019-07-25T08:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576502#M7771</link>
      <description>&lt;P&gt;&lt;STRONG&gt;ALWAYS&lt;/STRONG&gt; use the {i} button to post logs. ALWAYS.&lt;/P&gt;
&lt;P&gt;Your log, correctly posted:&lt;/P&gt;
&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72        
73         proc sql;
74         create table work.weston_milling_sas
75         as
76         select intake.name, intake.xlsx.sap code, warehouse.xlsx.sap code
                                           _
                                           22
                                           76&lt;/PRE&gt;
&lt;P&gt;You can see that the pointer points to the&amp;nbsp;&lt;EM&gt;second&lt;/EM&gt; dot in your column name, and that is not valid SQL syntax.&lt;/P&gt;
&lt;P&gt;You also have invalid dataset references and aliases containing more than one dot:&lt;/P&gt;
&lt;PRE&gt;from weston_milling_sas.intake.xlsx intake.xlsx&lt;/PRE&gt;
&lt;P&gt;This is also invalid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I strongly recommend you study the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=titlepage.htm&amp;amp;locale=de" target="_blank" rel="noopener"&gt;SQL Procedure User's Guide&lt;/A&gt; to get a grasp of SQL basics.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576502#M7771</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-25T08:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576503#M7772</link>
      <description>&lt;P&gt;PS you have so many &lt;EM&gt;catastrophic&lt;/EM&gt; errors in your code that it is next to impossible to deduct what you are trying to do.&lt;/P&gt;
&lt;P&gt;Please supply&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the correct names of your datasets (library.dataset)&lt;/LI&gt;
&lt;LI&gt;the names of the columns within the datasets (no dots allowed there)&lt;/LI&gt;
&lt;LI&gt;the columns you want to use for the join condition&lt;/LI&gt;
&lt;LI&gt;the columns you want to have in the output, and from which dataset&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-SQL/m-p/576503#M7772</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-25T08:56:36Z</dc:date>
    </item>
  </channel>
</rss>

