<?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 Taking too long to show the results in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Taking-too-long-to-show-the-results/m-p/822849#M35037</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I am running the below code where I am added tran_code details to a imported file (June_exception). The codes looks alright and simple but it is running since the last 3 hours. Is anything I am missing in the code which is taking long to show the results?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table initiative_release as&lt;BR /&gt;select a.*,&lt;BR /&gt;b.tran_code&lt;BR /&gt;from June_Exceptions as a&lt;BR /&gt;Inner join &lt;BR /&gt;p2scflow.debt_trans as b on a.debt_code=b.debt_code;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check and reply. Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 14:13:38 GMT</pubDate>
    <dc:creator>Sandeep77</dc:creator>
    <dc:date>2022-07-12T14:13:38Z</dc:date>
    <item>
      <title>Taking too long to show the results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Taking-too-long-to-show-the-results/m-p/822849#M35037</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I am running the below code where I am added tran_code details to a imported file (June_exception). The codes looks alright and simple but it is running since the last 3 hours. Is anything I am missing in the code which is taking long to show the results?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table initiative_release as&lt;BR /&gt;select a.*,&lt;BR /&gt;b.tran_code&lt;BR /&gt;from June_Exceptions as a&lt;BR /&gt;Inner join &lt;BR /&gt;p2scflow.debt_trans as b on a.debt_code=b.debt_code;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check and reply. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 14:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Taking-too-long-to-show-the-results/m-p/822849#M35037</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-07-12T14:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too long to show the results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Taking-too-long-to-show-the-results/m-p/822900#M35038</link>
      <description>How big are the files? Are they both SAS data sets or is one on a server?</description>
      <pubDate>Tue, 12 Jul 2022 16:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Taking-too-long-to-show-the-results/m-p/822900#M35038</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-12T16:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too long to show the results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Taking-too-long-to-show-the-results/m-p/823023#M35039</link>
      <description>&lt;P&gt;I have a strong suspicion that your are getting way more output records than you expect. Consider this small example doing an inner join on two data sets with 5 records each.&lt;/P&gt;
&lt;PRE&gt;data a;
   input code value1;
datalines;
1  1
1  2
1  3
2  11
2  22
;

data b;
   input code value2;
datalines;
1  15
1  25
1  35
2  111
2  222
;

proc sql;
   create table example as
   select a.*, b.value2
   from a 
        inner join
        b
        on a.code=b.code
   ;
quit;&lt;/PRE&gt;
&lt;P&gt;There are not 5 output records there are 13 because of multiple values of the code variable in each set. 3 values of 1 in each means there are 9 output records for code=1. So if you have any duplicates of debt_code in any set you get multiple output records for each match. With n duplicates of the the code value in one set and m duplicates in the second set you get n * m records for each code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to run proc freq on the debt_code variable in your two sets and consider just how many matches that will be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 22:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Taking-too-long-to-show-the-results/m-p/823023#M35039</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-12T22:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too long to show the results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Taking-too-long-to-show-the-results/m-p/823048#M35040</link>
      <description>&lt;P&gt;Get to know your data (Maxim 3).&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How many observations are in both datasets&lt;/LI&gt;
&lt;LI&gt;Are there multiples of the keys in both datasets (leading to a cartesian join)&lt;/LI&gt;
&lt;LI&gt;What are the variable attributes (should COMPRESS be used)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Since you use single level dataset names, all I/O concentrates on WORK, which can cause lots of latencies on spinning metal disks. So the physical structure of your available storage may allow spreading the load.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 05:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Taking-too-long-to-show-the-results/m-p/823048#M35040</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-13T05:29:52Z</dc:date>
    </item>
  </channel>
</rss>

