<?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 Proc SQL to Data Step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-to-Data-Step/m-p/555005#M154441</link>
    <description>&lt;P&gt;Hi , I am using the below query to join multiple tables using proc sql. Is it possible to perform the same in a data step ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me translate this in data step?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table work.cte as&lt;BR /&gt;select distinct el.flag,&lt;BR /&gt;el.balance,&lt;BR /&gt;el.daysdelinq,&lt;BR /&gt;c.country,&lt;BR /&gt;c.postcode,&lt;BR /&gt;a.balance,&lt;BR /&gt;a.cl,&lt;BR /&gt;a.daysdelinq as daysdelinq_2,&lt;BR /&gt;a.schufaindicator,&lt;BR /&gt;a.finaccno as acct,&lt;BR /&gt;c.customerno,&lt;BR /&gt;el.row_no&lt;BR /&gt;from work.pes_row el,&lt;BR /&gt;pxm.accounts a,&lt;BR /&gt;pxm.accxref aref,&lt;BR /&gt;pxm.contacts c&lt;BR /&gt;where el.finaccno = a.finaccno&lt;BR /&gt;and a.acc = aref.acc&lt;BR /&gt;and aref.customerno = c.customerno&lt;BR /&gt;and a.finaccno in (select finaccno from work.acc_list_cards);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 13:02:03 GMT</pubDate>
    <dc:creator>Jagadeesh2907</dc:creator>
    <dc:date>2019-04-30T13:02:03Z</dc:date>
    <item>
      <title>Proc SQL to Data Step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-to-Data-Step/m-p/555005#M154441</link>
      <description>&lt;P&gt;Hi , I am using the below query to join multiple tables using proc sql. Is it possible to perform the same in a data step ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me translate this in data step?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table work.cte as&lt;BR /&gt;select distinct el.flag,&lt;BR /&gt;el.balance,&lt;BR /&gt;el.daysdelinq,&lt;BR /&gt;c.country,&lt;BR /&gt;c.postcode,&lt;BR /&gt;a.balance,&lt;BR /&gt;a.cl,&lt;BR /&gt;a.daysdelinq as daysdelinq_2,&lt;BR /&gt;a.schufaindicator,&lt;BR /&gt;a.finaccno as acct,&lt;BR /&gt;c.customerno,&lt;BR /&gt;el.row_no&lt;BR /&gt;from work.pes_row el,&lt;BR /&gt;pxm.accounts a,&lt;BR /&gt;pxm.accxref aref,&lt;BR /&gt;pxm.contacts c&lt;BR /&gt;where el.finaccno = a.finaccno&lt;BR /&gt;and a.acc = aref.acc&lt;BR /&gt;and aref.customerno = c.customerno&lt;BR /&gt;and a.finaccno in (select finaccno from work.acc_list_cards);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 13:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-to-Data-Step/m-p/555005#M154441</guid>
      <dc:creator>Jagadeesh2907</dc:creator>
      <dc:date>2019-04-30T13:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL to Data Step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-to-Data-Step/m-p/555012#M154443</link>
      <description>&lt;P&gt;Are you obliged to do that with data set ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because you are merging 4 tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do the same in SAS using merge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is very long because you have to sort each table by the id and merge 4 times (i think)&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 13:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-to-Data-Step/m-p/555012#M154443</guid>
      <dc:creator>Onizuka</dc:creator>
      <dc:date>2019-04-30T13:20:13Z</dc:date>
    </item>
  </channel>
</rss>

