<?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: Removing Duplicate Column Values without removing the Row in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicate-Column-Values-without-removing-the-Row/m-p/198435#M49602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;infile cards dsd dlm=',';&lt;/P&gt;&lt;P&gt;length location $10.;&lt;/P&gt;&lt;P&gt;input Location $ Departments $;&lt;/P&gt;&lt;P&gt;cards;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Location 1,5400&lt;/P&gt;&lt;P&gt;Location 1,5401&lt;/P&gt;&lt;P&gt;Location 2,5402&lt;/P&gt;&lt;P&gt;Location 2,5403&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=have;id location;by location;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 18:38:18 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2015-04-17T18:38:18Z</dc:date>
    <item>
      <title>Removing Duplicate Column Values without removing the Row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicate-Column-Values-without-removing-the-Row/m-p/198434#M49601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering If there is a way to remove duplicate column values without removing the entire row. This is purely for formatting, and i'd just like to take a step out of my manual workflow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Basically I'd like to turn this:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid #000000; width: 320px; height: 124px;" width="318"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Departments&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Location 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Location 1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5401&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Location 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5402&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Location 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5403&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Into this:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); width: 320px; height: 109px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Departments&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Location 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5401&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Location 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5402&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5403&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 13:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicate-Column-Values-without-removing-the-Row/m-p/198434#M49601</guid>
      <dc:creator>uselessprogress</dc:creator>
      <dc:date>2015-04-17T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicate Column Values without removing the Row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicate-Column-Values-without-removing-the-Row/m-p/198435#M49602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;infile cards dsd dlm=',';&lt;/P&gt;&lt;P&gt;length location $10.;&lt;/P&gt;&lt;P&gt;input Location $ Departments $;&lt;/P&gt;&lt;P&gt;cards;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Location 1,5400&lt;/P&gt;&lt;P&gt;Location 1,5401&lt;/P&gt;&lt;P&gt;Location 2,5402&lt;/P&gt;&lt;P&gt;Location 2,5403&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=have;id location;by location;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 18:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicate-Column-Values-without-removing-the-Row/m-p/198435#M49602</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-04-17T18:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicate Column Values without removing the Row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicate-Column-Values-without-removing-the-Row/m-p/198436#M49603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;And, PROC REPORT will do this for you too.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=have nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column location departments;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define location / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define departments /display;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 19:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicate-Column-Values-without-removing-the-Row/m-p/198436#M49603</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-04-17T19:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicate Column Values without removing the Row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicate-Column-Values-without-removing-the-Row/m-p/198437#M49604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively you could achieve the same in a datastep by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;by location;&lt;/P&gt;&lt;P&gt;if not first.location then location='';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2015 03:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicate-Column-Values-without-removing-the-Row/m-p/198437#M49604</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-04-18T03:11:59Z</dc:date>
    </item>
  </channel>
</rss>

