<?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: common observations in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65345#M18641</link>
    <description>I mean&lt;BR /&gt;
i have 20 shows ( 1 table for each show). &lt;BR /&gt;
i would like to find out how many people attended how many shows with respect to their&lt;BR /&gt;
first name, last name, postcode and gender.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
suresh</description>
    <pubDate>Wed, 10 Dec 2008 09:02:52 GMT</pubDate>
    <dc:creator>ssas</dc:creator>
    <dc:date>2008-12-10T09:02:52Z</dc:date>
    <item>
      <title>common observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65342#M18638</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have 20 tables and each table got  around 650 observations with 12 variables.&lt;BR /&gt;
6 variable(column names are same) they are firstname lastname postcode email id.&lt;BR /&gt;
i would like to pick out the common observations which got same values in the all tables.&lt;BR /&gt;
&lt;BR /&gt;
I am tried to make all the observations to upppercase and merging them using (in) in merge,&lt;BR /&gt;
if a and b ............&lt;BR /&gt;
but i am unable to workout. &lt;BR /&gt;
its some thing like &lt;BR /&gt;
if a and/or b and/or c       ...&lt;BR /&gt;
could any one please suggest the correct logic or datastep or proc sql &lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
suresh</description>
      <pubDate>Tue, 09 Dec 2008 21:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65342#M18638</guid>
      <dc:creator>ssas</dc:creator>
      <dc:date>2008-12-09T21:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: common observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65343#M18639</link>
      <description>If you mean "common observations" as has common values in the BY/id columns, it would be something like in your example:&lt;BR /&gt;
&lt;BR /&gt;
data common;&lt;BR /&gt;
merge a(in=a) b(in=b) c(in=c) d(in=d) e(in=e) f(in=f);&lt;BR /&gt;
by firstname lastname postcode email id;&lt;BR /&gt;
if a and b and c and d and e and f;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
All tables need to be sorted on the BY columns.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Tue, 09 Dec 2008 22:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65343#M18639</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-12-09T22:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: common observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65344#M18640</link>
      <description>This is a SQL variant:&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  create table ObsAndVarsCommon as&lt;BR /&gt;
  select * from Table1&lt;BR /&gt;
  intersect corr all&lt;BR /&gt;
  select * from Table2&lt;BR /&gt;
  intersect corr all&lt;BR /&gt;
  select * from Table3&lt;BR /&gt;
  .....and so on and so on&lt;BR /&gt;
;&lt;BR /&gt;
quit;</description>
      <pubDate>Wed, 10 Dec 2008 07:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65344#M18640</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-12-10T07:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: common observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65345#M18641</link>
      <description>I mean&lt;BR /&gt;
i have 20 shows ( 1 table for each show). &lt;BR /&gt;
i would like to find out how many people attended how many shows with respect to their&lt;BR /&gt;
first name, last name, postcode and gender.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
suresh</description>
      <pubDate>Wed, 10 Dec 2008 09:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65345#M18641</guid>
      <dc:creator>ssas</dc:creator>
      <dc:date>2008-12-10T09:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: common observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65346#M18642</link>
      <description>data Vall / view=Vall;&lt;BR /&gt;
set  a(in=a) b(in=b) c(in=c) d(in=d) e(in=e) f(in=f);&lt;BR /&gt;
if a then show='a';&lt;BR /&gt;
else if b then show='b';&lt;BR /&gt;
else if....&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=Vall;&lt;BR /&gt;
.....and then work out what list you really want.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 11 Dec 2008 08:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/common-observations/m-p/65346#M18642</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-12-11T08:03:48Z</dc:date>
    </item>
  </channel>
</rss>

