<?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: Match and list values in different columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192546#M266202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a 2 stage exercise:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Taking advantage of the ordered input, DOW loops nested for each by-group level would simplfy the extract of the boss-underling pairs (just the relevant columns, controlled by keep lists as dataset options)&amp;nbsp; into separate streams of data which could be written to a separate table for each&lt;/LI&gt;&lt;LI&gt;A merge with no BY statement will place the separate streams (datasets) side-by-side.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If there might be situations where an individual had more than one boss, the streams should be sorted (NODUPKEY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 09:10:56 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2014-03-05T09:10:56Z</dc:date>
    <item>
      <title>Match and list values in different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192544#M266200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist in getting the desired output mentioned in the attached excel sheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two tables.&amp;nbsp; The output should be like the right table (Yellow in colour).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 07:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192544#M266200</guid>
      <dc:creator>boin</dc:creator>
      <dc:date>2014-03-05T07:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Match and list values in different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192545#M266201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shiva &lt;/P&gt;&lt;P&gt;You need to explain the business logic behind the transformation you want.&lt;/P&gt;&lt;P&gt;Why are certain columns repeated in the yellow data?&lt;/P&gt;&lt;P&gt;Why are some cells set to null?&lt;/P&gt;&lt;P&gt;Is there any row level relationship between the apparent director-director, GM-GM and manager-manager entries, and if so, what is the logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 08:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192545#M266201</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2014-03-05T08:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Match and list values in different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192546#M266202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a 2 stage exercise:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Taking advantage of the ordered input, DOW loops nested for each by-group level would simplfy the extract of the boss-underling pairs (just the relevant columns, controlled by keep lists as dataset options)&amp;nbsp; into separate streams of data which could be written to a separate table for each&lt;/LI&gt;&lt;LI&gt;A merge with no BY statement will place the separate streams (datasets) side-by-side.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If there might be situations where an individual had more than one boss, the streams should be sorted (NODUPKEY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 09:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192546#M266202</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-03-05T09:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Match and list values in different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192547#M266203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On closer inspection I agree with Peter's analysis that the yellow consists of 4 separate streams, each of which is the unique relationship between adjacent levels of this (surely bogus!) hierarchy.&amp;nbsp; However, to preserve the original order the data needs to be analysed using the notsorted option.&amp;nbsp; Here is the code for the first 2 cols&lt;/P&gt;&lt;P&gt;data cols_IJ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; by notsorted Director ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep ExDirector Director ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if first.director ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 09:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192547#M266203</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2014-03-05T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Match and list values in different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192548#M266204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing , thanks Richard&amp;nbsp; it works....&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 11:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192548#M266204</guid>
      <dc:creator>boin</dc:creator>
      <dc:date>2014-03-05T11:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Match and list values in different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192549#M266205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter for the steps ...&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 11:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-and-list-values-in-different-columns/m-p/192549#M266205</guid>
      <dc:creator>boin</dc:creator>
      <dc:date>2014-03-05T11:47:51Z</dc:date>
    </item>
  </channel>
</rss>

