<?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: SAS Beginer- issues with Join statemet in proc sql in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577226#M13168</link>
    <description>&lt;P&gt;Remove the surplus "froms". Join syntax is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;from x
inner join y
on ......
left join z
on .....&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 28 Jul 2019 13:17:00 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-07-28T13:17:00Z</dc:date>
    <item>
      <title>SAS Beginer- issues with Join statemet in proc sql</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577225#M13167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even after using "on" function error pops up. Please clarify.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Marks;
input Roll_ID Math Physics English Chemistry;
cards;
001 85 48 75 96
002 98 76 58 39
003 74 56 35 82
004 78 85 79 63
005 48 97 36 85
;
run;
proc print data=marks;
run;

data Marks1;
input Roll_ID Biology Zoology;
cards;
001 25.36 36.21
002 96.25 87.25
003 82.15 63.24
007 98.69 96.78
006 87.25 54.36
;
run;
proc print data=Marks1;
run;

proc sql;
create table Student_marklist
as select *
from marks as A
inner join
from marks1 as B 
on A. roll_ID = B. roll_ID;
quit;

proc sql;
create table Student_marklist
as select *
from marks as A
full join
from marks1 as B 
on A. roll_ID = B. roll_ID;
quit;

proc sql;
create table Student_marklist
as select *
from marks as A
left join
from marks1 as B 
on A. roll_ID = B. roll_ID;
quit;

proc sql;
create table Student_marklist
as select *
from marks as A
right join
from marks1 as B 
on A. roll_ID = B. roll_ID;
quit;


LOG:
OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table Student_marklist
 75         as select *
 76         from marks as A
 77         inner join
 78         from marks1 as B
                        __
                        73
                        201
 ERROR 73-322: Expecting an ON.
 
 ERROR 201-322: The option is not recognized and will be ignored.
 
 79         on A. roll_ID = B. roll_ID;
 NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
 80         quit;
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 81         
 
 
 82         proc sql;
 83         create table Student_marklist
 84         as select *
 85         from marks as A
 86         full join
 87         from marks1 as B
                        __
                        73
                        201
 ERROR 73-322: Expecting an ON.
 
 ERROR 201-322: The option is not recognized and will be ignored.
 
 88         on A. roll_ID = B. roll_ID;
 NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
 89         quit;
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 90         
 
 
 91         proc sql;
 92         create table Student_marklist
 93         as select *
 94         from marks as A
 95         left join
 96         from marks1 as B
                        __
                        73
                        201
 ERROR 73-322: Expecting an ON.
 
 ERROR 201-322: The option is not recognized and will be ignored.
 
 97         on A. roll_ID = B. roll_ID;
 NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
 98         quit;
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 99         
 
 
 100        proc sql;
 101        create table Student_marklist
 102        as select *
 103        from marks as A
 104        right join
 105        from marks1 as B
                        __
                        73
                        201
 ERROR 73-322: Expecting an ON.
 
 ERROR 201-322: The option is not recognized and will be ignored.
 
 106        on A. roll_ID = B. roll_ID;
 NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
 107        quit;
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 108        
 109        
 110        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Jul 2019 13:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577225#M13167</guid>
      <dc:creator>Deepak13</dc:creator>
      <dc:date>2019-07-28T13:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Beginer- issues with Join statemet in proc sql</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577226#M13168</link>
      <description>&lt;P&gt;Remove the surplus "froms". Join syntax is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;from x
inner join y
on ......
left join z
on .....&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Jul 2019 13:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577226#M13168</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-28T13:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Beginer- issues with Join statemet in proc sql</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577227#M13169</link>
      <description>&lt;P&gt;PS&lt;/P&gt;
&lt;P&gt;EXTREMELY IMPORTANT literature found here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=titlepage.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;SQL Procedure User's Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a reason why Maxim 1 (Read the Documentation) is number 1.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 13:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577227#M13169</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-28T13:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Beginer- issues with Join statemet in proc sql</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577556#M13233</link>
      <description>like &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; said, there is duplicate "FROM" clause in the join.</description>
      <pubDate>Mon, 29 Jul 2019 22:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577556#M13233</guid>
      <dc:creator>cmurugesan</dc:creator>
      <dc:date>2019-07-29T22:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Beginer- issues with Join statemet in proc sql</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577940#M13272</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; for sharing valuable literature. I think this would help me in setting up my career path in SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 03:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Beginer-issues-with-Join-statemet-in-proc-sql/m-p/577940#M13272</guid>
      <dc:creator>Deepak13</dc:creator>
      <dc:date>2019-07-31T03:14:45Z</dc:date>
    </item>
  </channel>
</rss>

