<?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: I want to remove the 'Others' value from the dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853690#M37568</link>
    <description>&lt;P&gt;Please provide data as working SAS data step code, as you have done in the past.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 12:15:41 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-01-13T12:15:41Z</dc:date>
    <item>
      <title>I want to remove the 'Others' value from the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853686#M37566</link>
      <description>&lt;P&gt;I have a dataset which shows data from January 22 to December 22. Rest of the data I have classified as others. But when I try to group it month wise, it also shows the others. I want SAS to read only Jan to Dec 22 information and ignore others. Can you please help what I can do? Below is the sample data and the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc SQL;
create table Monthlytraces as 
select Month, count (Month) as No_of_monthly_traces
from custidsort
group by Month;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;TABLE width="808"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="92.7936px" height="30px"&gt;icustomerid&lt;/TD&gt;
&lt;TD width="91.0795px" height="30px"&gt;debt_code&lt;/TD&gt;
&lt;TD width="68.8068px" height="30px"&gt;Balance&lt;/TD&gt;
&lt;TD width="127.472px" height="30px"&gt;client_code&lt;/TD&gt;
&lt;TD width="72.3769px" height="30px"&gt;op_code&lt;/TD&gt;
&lt;TD width="82.1496px" height="30px"&gt;tran_code&lt;/TD&gt;
&lt;TD width="195.142px" height="30px"&gt;TPT_Date&lt;/TD&gt;
&lt;TD width="99.3182px" height="30px"&gt;Trace_result&lt;/TD&gt;
&lt;TD width="44.7822px" height="30px"&gt;POS&lt;/TD&gt;
&lt;TD width="55.4545px" height="30px"&gt;Month&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92.7936px" height="57px"&gt;.&lt;/TD&gt;
&lt;TD width="91.0795px" height="57px"&gt;100648997&lt;/TD&gt;
&lt;TD width="68.8068px" height="57px"&gt;0&lt;/TD&gt;
&lt;TD width="127.472px" height="57px"&gt;BARCCARD193&lt;/TD&gt;
&lt;TD width="72.3769px" height="57px"&gt;AW29&lt;/TD&gt;
&lt;TD width="82.1496px" height="57px"&gt;MO9745&lt;/TD&gt;
&lt;TD width="195.142px" height="57px"&gt;07SEP2022:11:22:14.000&lt;/TD&gt;
&lt;TD width="99.3182px" height="57px"&gt;LAS&lt;/TD&gt;
&lt;TD width="44.7822px" height="57px"&gt;1&lt;/TD&gt;
&lt;TD width="55.4545px" height="57px"&gt;Sep-22&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92.7936px" height="57px"&gt;.&lt;/TD&gt;
&lt;TD width="91.0795px" height="57px"&gt;102411204&lt;/TD&gt;
&lt;TD width="68.8068px" height="57px"&gt;0&lt;/TD&gt;
&lt;TD width="127.472px" height="57px"&gt;3G023&lt;/TD&gt;
&lt;TD width="72.3769px" height="57px"&gt;LJ1&lt;/TD&gt;
&lt;TD width="82.1496px" height="57px"&gt;MO9748&lt;/TD&gt;
&lt;TD width="195.142px" height="57px"&gt;01SEP2022:15:18:53.000&lt;/TD&gt;
&lt;TD width="99.3182px" height="57px"&gt;NEG&lt;/TD&gt;
&lt;TD width="44.7822px" height="57px"&gt;0&lt;/TD&gt;
&lt;TD width="55.4545px" height="57px"&gt;Sep-22&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92.7936px" height="57px"&gt;.&lt;/TD&gt;
&lt;TD width="91.0795px" height="57px"&gt;10416544&lt;/TD&gt;
&lt;TD width="68.8068px" height="57px"&gt;0&lt;/TD&gt;
&lt;TD width="127.472px" height="57px"&gt;CAPONE004&lt;/TD&gt;
&lt;TD width="72.3769px" height="57px"&gt;LJ1&lt;/TD&gt;
&lt;TD width="82.1496px" height="57px"&gt;MO9748&lt;/TD&gt;
&lt;TD width="195.142px" height="57px"&gt;26APR2022:14:45:25.000&lt;/TD&gt;
&lt;TD width="99.3182px" height="57px"&gt;NEG&lt;/TD&gt;
&lt;TD width="44.7822px" height="57px"&gt;0&lt;/TD&gt;
&lt;TD width="55.4545px" height="57px"&gt;Apr-22&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92.7936px" height="30px"&gt;.&lt;/TD&gt;
&lt;TD width="91.0795px" height="30px"&gt;104171756&lt;/TD&gt;
&lt;TD width="68.8068px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="127.472px" height="30px"&gt;HSBC024&lt;/TD&gt;
&lt;TD width="72.3769px" height="30px"&gt;DH3&lt;/TD&gt;
&lt;TD width="82.1496px" height="30px"&gt;MO9746&lt;/TD&gt;
&lt;TD width="195.142px" height="30px"&gt;13SEP2019:13:50:49.000&lt;/TD&gt;
&lt;TD width="99.3182px" height="30px"&gt;NEG&lt;/TD&gt;
&lt;TD width="44.7822px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="55.4545px" height="30px"&gt;Other&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92.7936px" height="57px"&gt;.&lt;/TD&gt;
&lt;TD width="91.0795px" height="57px"&gt;107306946&lt;/TD&gt;
&lt;TD width="68.8068px" height="57px"&gt;0&lt;/TD&gt;
&lt;TD width="127.472px" height="57px"&gt;ORANGE001&lt;/TD&gt;
&lt;TD width="72.3769px" height="57px"&gt;AW29&lt;/TD&gt;
&lt;TD width="82.1496px" height="57px"&gt;MO9745&lt;/TD&gt;
&lt;TD width="195.142px" height="57px"&gt;07SEP2022:09:36:37.000&lt;/TD&gt;
&lt;TD width="99.3182px" height="57px"&gt;LAS&lt;/TD&gt;
&lt;TD width="44.7822px" height="57px"&gt;1&lt;/TD&gt;
&lt;TD width="55.4545px" height="57px"&gt;Sep-22&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 13 Jan 2023 12:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853686#M37566</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2023-01-13T12:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: I want to remove the 'Others' value from the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853690#M37568</link>
      <description>&lt;P&gt;Please provide data as working SAS data step code, as you have done in the past.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 12:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853690#M37568</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-13T12:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: I want to remove the 'Others' value from the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853740#M37573</link>
      <description>&lt;P&gt;I don't see anything in the code that you show that resembles "Rest of the data I have classified as others. "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure that is applied to data set Custidsort? If so, you should show how.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;Proc SQL;
create table Monthlytraces as 
select Month, count (Month) as No_of_monthly_traces
from (select * from custidsort where Year(datepart(tpt_date))=2022 )
group by Month;
quit;&lt;/LI-CODE&gt;
&lt;P&gt;Note that from the "data" you show we really don't know if that "month" variable is a date or string or what.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853740#M37573</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-13T15:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: I want to remove the 'Others' value from the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853743#M37575</link>
      <description>&lt;P&gt;What type of variable if MONTH? Is it numeric or character?&amp;nbsp; If it is numeric are the range values it contains?&amp;nbsp; A what format is being used so that it is displaying the values you show?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want exclude some observations use a WHERE clause.&amp;nbsp; So if MONTH is a character variable use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create table Monthlytraces as 
select Month, count (Month) as No_of_monthly_traces
from custidsort
where month ne 'Other'
group by Month
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853743#M37575</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-01-13T15:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: I want to remove the 'Others' value from the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853746#M37576</link>
      <description>&lt;P&gt;Thank you. I got it. I was looking for 'where month ne other'. It worked.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-remove-the-Others-value-from-the-dataset/m-p/853746#M37576</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2023-01-13T15:41:56Z</dc:date>
    </item>
  </channel>
</rss>

