<?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 Appending unequal table in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Appending-unequal-table/m-p/32883#M7974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three unequal tables (unequal number of column and rows) and hope to create a fourth table from appending these three unequal table. The fourth table will also have an added column, having binary number (0 or 1) based on this relationship; 1 when there is a user_id common to the three tables, 1 for all user_id in the action table and 0 for all user_id in impression and/or click not in action table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a simple excel sheet containing all the three table and the expected output from the data manipulation process. I have been on this for over 72 hours and just couldn't figure out what i need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be most appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2011 14:03:54 GMT</pubDate>
    <dc:creator>Osebeyo</dc:creator>
    <dc:date>2011-07-18T14:03:54Z</dc:date>
    <item>
      <title>Appending unequal table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Appending-unequal-table/m-p/32883#M7974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three unequal tables (unequal number of column and rows) and hope to create a fourth table from appending these three unequal table. The fourth table will also have an added column, having binary number (0 or 1) based on this relationship; 1 when there is a user_id common to the three tables, 1 for all user_id in the action table and 0 for all user_id in impression and/or click not in action table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a simple excel sheet containing all the three table and the expected output from the data manipulation process. I have been on this for over 72 hours and just couldn't figure out what i need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be most appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Appending-unequal-table/m-p/32883#M7974</guid>
      <dc:creator>Osebeyo</dc:creator>
      <dc:date>2011-07-18T14:03:54Z</dc:date>
    </item>
    <item>
      <title>Appending unequal table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Appending-unequal-table/m-p/32884#M7975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't have multiple entries in more than one of the tables, and you sort your 3 files by user_ID and Advertiser_ID, then you might be able to achieve what you want with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge impression (in=a) click(in=b) action(in=c);&lt;/P&gt;&lt;P&gt;&amp;nbsp; by User_ID Advertiser_ID;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if c then common=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else common=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if missing(IP) then IP=0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Appending-unequal-table/m-p/32884#M7975</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-07-18T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Appending unequal table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Appending-unequal-table/m-p/32885#M7976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Art,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was brilliant, many thanks for your response. Just a quick question, what will you suggest if there are multiple entries in one of the tables.&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;the user id in this form&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 15:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Appending-unequal-table/m-p/32885#M7976</guid>
      <dc:creator>Osebeyo</dc:creator>
      <dc:date>2011-07-18T15:29:40Z</dc:date>
    </item>
    <item>
      <title>Appending unequal table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Appending-unequal-table/m-p/32886#M7977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One to many isn't a problem.&amp;nbsp; Many to many is most easily accomplished with proc sql.&amp;nbsp; Take a look at: &lt;A href="http://support.sas.com/techsup/technote/ts705.pdf"&gt;http://support.sas.com/techsup/technote/ts705.pdf&lt;/A&gt; and the other references that article provides.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 15:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Appending-unequal-table/m-p/32886#M7977</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-07-18T15:34:15Z</dc:date>
    </item>
  </channel>
</rss>

