<?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: Help Please in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Help-Please/m-p/745539#M29379</link>
    <description>Do you want to delete that column or that row?&lt;BR /&gt;You get multiple records because one of your data sets has multiple records for that observation based on the accountnumber, branchcode and subaccount number. So if you shouldn't have duplicates you may want to verify your input data set or you may need to update your join condition to account for something else. It's usually the latter in my experience.</description>
    <pubDate>Thu, 03 Jun 2021 16:38:48 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-06-03T16:38:48Z</dc:date>
    <item>
      <title>Help Please</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-Please/m-p/745504#M29370</link>
      <description>&lt;P&gt;&amp;nbsp;I need help in deleting a row, please. The output of the code is producing 2 lines. All the other variables are the same. How can I delete the column with the blank:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MagD_0-1622733784946.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59993i42B69798DAE3BDD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MagD_0-1622733784946.png" alt="MagD_0-1622733784946.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The output I want is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MagD_1-1622733985375.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59994iE57966E1324CC87F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MagD_1-1622733985375.png" alt="MagD_1-1622733985375.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am using the following code:&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table Month&lt;BR /&gt;as select a.*,&lt;BR /&gt;b.finmonth,&lt;BR /&gt;case when a.goodcnt+a.badcnt = 0 and b.finmonth = 202103 then '0' &lt;BR /&gt;when a.goodcnt+a.badcnt = 1 and b.finmonth = 202103 then '1' &lt;BR /&gt;when a.goodcnt+a.badcnt = 2 and b.finmonth = 202103 then '2' &lt;BR /&gt;when a.goodcnt+a.badcnt = 3 and b.finmonth = 202103 then '3' &lt;BR /&gt;when a.goodcnt+a.badcnt = 4 and b.finmonth = 202103 then '4' &lt;BR /&gt;when a.goodcnt+a.badcnt = 5 and b.finmonth = 202103 then '5' &lt;BR /&gt;when a.goodcnt+a.badcnt = 6 and b.finmonth = 202103 then '6' &lt;BR /&gt;when a.goodcnt+a.badcnt = 7 and b.finmonth = 202103 then '7' &lt;BR /&gt;when a.goodcnt+a.badcnt = 8 and b.finmonth = 202103 then '8' &lt;BR /&gt;when a.goodcnt+a.badcnt = 9 and b.finmonth = 202103 then '9' &lt;BR /&gt;when a.goodcnt+a.badcnt = 10 and b.finmonth = 202103 then '10' &lt;BR /&gt;when a.goodcnt+a.badcnt &amp;gt; 10 and b.finmonth = 202103 then '&amp;gt;10' &lt;BR /&gt;end as 'No of Bureau Accounts'n&lt;/P&gt;
&lt;P&gt;from Current_Month as a left join totaldata8 as b&lt;BR /&gt;on a.accountnumber =b.accountnumber&lt;BR /&gt;and a.branchcode =b.branchcode&lt;BR /&gt;and a.subaccountnumber=b.subaccountnumber;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 15:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-Please/m-p/745504#M29370</guid>
      <dc:creator>MagD</dc:creator>
      <dc:date>2021-06-03T15:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help Please</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-Please/m-p/745539#M29379</link>
      <description>Do you want to delete that column or that row?&lt;BR /&gt;You get multiple records because one of your data sets has multiple records for that observation based on the accountnumber, branchcode and subaccount number. So if you shouldn't have duplicates you may want to verify your input data set or you may need to update your join condition to account for something else. It's usually the latter in my experience.</description>
      <pubDate>Thu, 03 Jun 2021 16:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-Please/m-p/745539#M29379</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-03T16:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help Please</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-Please/m-p/745580#M29382</link>
      <description>Hey Reeza,&lt;BR /&gt;&lt;BR /&gt;I used your suggestion of updating my join condition. It worked!&lt;BR /&gt;Thank you for your input. I appreciate it.</description>
      <pubDate>Thu, 03 Jun 2021 18:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-Please/m-p/745580#M29382</guid>
      <dc:creator>MagD</dc:creator>
      <dc:date>2021-06-03T18:50:21Z</dc:date>
    </item>
  </channel>
</rss>

