<?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 Bringing back distinct column from a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Bringing-back-distinct-column-from-a-dataset/m-p/525384#M142966</link>
    <description>&lt;P&gt;Hi I am trying to group on a table and I am trying to bring back just 1 column, I can do using SQL but I was wandering if someone knows how to do it in data step. The table has many columns but I only want to bring back 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;  
select distinct t1.month_received
from have t1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried using Proc Sort but I was not sure how to bring back just the one column, is there anyway I can bring back just the 1 column or do I have to create another data step&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have nodupkey out=have1;
by month_received;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Jan 2019 12:27:58 GMT</pubDate>
    <dc:creator>zdassu</dc:creator>
    <dc:date>2019-01-08T12:27:58Z</dc:date>
    <item>
      <title>Bringing back distinct column from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-back-distinct-column-from-a-dataset/m-p/525384#M142966</link>
      <description>&lt;P&gt;Hi I am trying to group on a table and I am trying to bring back just 1 column, I can do using SQL but I was wandering if someone knows how to do it in data step. The table has many columns but I only want to bring back 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;  
select distinct t1.month_received
from have t1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried using Proc Sort but I was not sure how to bring back just the one column, is there anyway I can bring back just the 1 column or do I have to create another data step&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have nodupkey out=have1;
by month_received;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jan 2019 12:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-back-distinct-column-from-a-dataset/m-p/525384#M142966</guid>
      <dc:creator>zdassu</dc:creator>
      <dc:date>2019-01-08T12:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bringing back distinct column from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-back-distinct-column-from-a-dataset/m-p/525386#M142967</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have(keep=month_received) nodupkey out=have1;
by month_received;
run&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jan 2019 12:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-back-distinct-column-from-a-dataset/m-p/525386#M142967</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2019-01-08T12:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bringing back distinct column from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-back-distinct-column-from-a-dataset/m-p/525394#M142969</link>
      <description>Thanks for your help kiranv_</description>
      <pubDate>Tue, 08 Jan 2019 13:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-back-distinct-column-from-a-dataset/m-p/525394#M142969</guid>
      <dc:creator>zdassu</dc:creator>
      <dc:date>2019-01-08T13:43:27Z</dc:date>
    </item>
  </channel>
</rss>

