<?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 SQL Query keeps running in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-Query-keeps-running/m-p/274548#M54817</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am running one SQl query. The data is containing only ~90k observations. However, the code keeps on running without going to the next step. Can anybody suggest way to speed up the code. Below attached is the query which I am running:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql;
    create table nr&amp;amp;otfile as
    select a.*,b.bucket as bucket_tmp,b.cur_bal as cur_bal_tmp,
        b.tot_prin as tot_prin_tmp,b.ac_no as ac_tmp
    from ajmb2.nr&amp;amp;otfile a left join ncir&amp;amp;otfile b 
    on a.ac_no = b.ac_no;
  quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2016 07:28:20 GMT</pubDate>
    <dc:creator>sauravjha90</dc:creator>
    <dc:date>2016-06-02T07:28:20Z</dc:date>
    <item>
      <title>SQL Query keeps running</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Query-keeps-running/m-p/274548#M54817</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am running one SQl query. The data is containing only ~90k observations. However, the code keeps on running without going to the next step. Can anybody suggest way to speed up the code. Below attached is the query which I am running:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql;
    create table nr&amp;amp;otfile as
    select a.*,b.bucket as bucket_tmp,b.cur_bal as cur_bal_tmp,
        b.tot_prin as tot_prin_tmp,b.ac_no as ac_tmp
    from ajmb2.nr&amp;amp;otfile a left join ncir&amp;amp;otfile b 
    on a.ac_no = b.ac_no;
  quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 07:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Query-keeps-running/m-p/274548#M54817</guid>
      <dc:creator>sauravjha90</dc:creator>
      <dc:date>2016-06-02T07:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query keeps running</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Query-keeps-running/m-p/274556#M54818</link>
      <description>&lt;P&gt;How many records in each table? Are both stored in the same location, I notice ones in a work library and one is in a ajmb2 library, is the second a server of some kind?&lt;/P&gt;
&lt;P&gt;Also are you sure your macro variables are assigned?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 07:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Query-keeps-running/m-p/274556#M54818</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-02T07:30:22Z</dc:date>
    </item>
  </channel>
</rss>

