<?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 SAS QUERY in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-QUERY/m-p/200962#M50163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have dataset abc with 4 variables ID,VISITNAME,VISITNUM,VISITDATE with ID being the primary key....this dataset and will have information only relating to all possible&lt;/P&gt;&lt;P&gt;visits for that id.This dataset is dynamic and dataset will keep updating as and when new visits take place which is expected to continue for over a period of time(2 years)....visitnum could be 1,2,3,4,5,6,to n......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other datasets like x,y,z which will have other information and also VISITNAME,VISITNUM,VISITDATE as supporting variables to complement the data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like write a query in such a way that VISITNUM,VISITDATE in abc dataset should match the corresponding VISITNUM,VISITDATE in other datasets x,y,z....if they are not matching then it is a discrepancy and we should &lt;/P&gt;&lt;P&gt;output those discrepancies for those individual datasets....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2015 15:22:45 GMT</pubDate>
    <dc:creator>rakeshvvv</dc:creator>
    <dc:date>2015-03-13T15:22:45Z</dc:date>
    <item>
      <title>SAS QUERY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-QUERY/m-p/200962#M50163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have dataset abc with 4 variables ID,VISITNAME,VISITNUM,VISITDATE with ID being the primary key....this dataset and will have information only relating to all possible&lt;/P&gt;&lt;P&gt;visits for that id.This dataset is dynamic and dataset will keep updating as and when new visits take place which is expected to continue for over a period of time(2 years)....visitnum could be 1,2,3,4,5,6,to n......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other datasets like x,y,z which will have other information and also VISITNAME,VISITNUM,VISITDATE as supporting variables to complement the data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like write a query in such a way that VISITNUM,VISITDATE in abc dataset should match the corresponding VISITNUM,VISITDATE in other datasets x,y,z....if they are not matching then it is a discrepancy and we should &lt;/P&gt;&lt;P&gt;output those discrepancies for those individual datasets....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:22:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-QUERY/m-p/200962#M50163</guid>
      <dc:creator>rakeshvvv</dc:creator>
      <dc:date>2015-03-13T15:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS QUERY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-QUERY/m-p/200963#M50164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for vistnum the same with a different date something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select a.*, b.visitdate as differentvisitdate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from abc as a left joint x as b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a.visitname=b.visitname and a.visitnum= b.visitnum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where a.visitdate ne b.visitdate;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;might be start. I include the ID and name so you know where to look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:36:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-QUERY/m-p/200963#M50164</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-03-13T15:36:44Z</dc:date>
    </item>
  </channel>
</rss>

