<?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: Value not in original file appears in merged file. How? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171922#M44335</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;Not sure what is the main problem but see below what I found in your syntax does not look correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in x;&amp;nbsp; it should be&amp;nbsp; if x;&lt;/P&gt;&lt;P&gt;secondly file 2 is file2 right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 21:31:39 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2014-05-23T21:31:39Z</dc:date>
    <item>
      <title>Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171921#M44334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am perplexed to find a 'value' of a variable by ID (Lab_) in the merged file that does not exist in the original file.&lt;/P&gt;&lt;P&gt;In the merged file abc below, I see the value for a variable by a specific Lab_ that was not seen in the file4.&lt;/P&gt;&lt;P&gt;More precisely, the Lab_ 123213 did not show any value in file4 but now showing value in the merged file abc. I am wondering how to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggetions would be highy useful. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data abc;&lt;/P&gt;&lt;P&gt;merge file4 (in=x) file1 file 2;&lt;/P&gt;&lt;P&gt;by Lab_;&lt;/P&gt;&lt;P&gt;in x;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeeb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 21:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171921#M44334</guid>
      <dc:creator>Sapkota</dc:creator>
      <dc:date>2014-05-23T21:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171922#M44335</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;Not sure what is the main problem but see below what I found in your syntax does not look correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in x;&amp;nbsp; it should be&amp;nbsp; if x;&lt;/P&gt;&lt;P&gt;secondly file 2 is file2 right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 21:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171922#M44335</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-05-23T21:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171923#M44336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't ask to include it.&amp;nbsp; You stipulated "in x;", rather than what you wanted, namely:&lt;/P&gt;&lt;P&gt; if x;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 21:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171923#M44336</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-05-23T21:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171924#M44337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Yes those were typos. When I wrote the code in this post to illustrate the example I miswrote those --yes, I did if x; and yes, file2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the main problem is that the merged file is showing a value by 'Lab_' which is not found in the original file.&lt;/P&gt;&lt;P&gt;I was wondering what could be the possibility for a value to appear in a merged file when by a specific Lab_ when such is not present in the original file. Kindly suggest. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 21:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171924#M44337</guid>
      <dc:creator>Sapkota</dc:creator>
      <dc:date>2014-05-23T21:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171925#M44338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the exact code used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 21:57:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171925#M44338</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-23T21:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171926#M44339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;Please find the codes I used as attached. My issue is that the yellow highlighted Lab_ 1556686 (in the attached code) doe not have a value for Analyte = "Total VOCs as Toluene" in the original file exclu4, but is showing a value in "data Toltole" for Analyte ="Total VOCs as Toluene". I must have done some error but do not know what. Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Sanjeeb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 22:38:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171926#M44339</guid>
      <dc:creator>Sapkota</dc:creator>
      <dc:date>2014-05-23T22:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171927#M44340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is expected SAS behaviour, assuming that one of your other data sets also has the variable Analyte, it will overwrite the variable in the first file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;If you're merging files make sure the variables in each file, besides the merge variables, are unique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 03:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171927#M44340</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-25T03:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171928#M44341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that SAS should at least give a note when this happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 13:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171928#M44341</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-05-25T13:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171929#M44342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be nice. Honestly I use SQL for all my merges.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 18:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171929#M44342</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-25T18:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171930#M44343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alas, the performance of SAS's SQL when doing large table joins has proven so inferior to proc sort/data step sequences (epsecially when several are running concurrently) that we only use SQL where absolutely required (eg cartesian join).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171930#M44343</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-05-26T06:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171931#M44344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see 1556686 in the datasets exclutwo and in exclu4.&amp;nbsp; &lt;BR /&gt;There are differences with SQL and SAS to know (SQL is designed for a DBMS goal administration.) those are:&lt;/P&gt;&lt;P&gt;- The missing concept of statistics is missing in SQL. it is present in SAS. Notice you can many values in SAS being classified as missing.&lt;/P&gt;&lt;P&gt;- The join/merge is different:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; + SAS dataset join/merge will propagate values in the coalesce way updating missings automatically in the resulting datasets combining all information&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; + When an ID is having missing values SAS will not drop those handle them is being something to do with, but SQL is dropping them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; + SQL is possible generating a Cartesian-product with SAS join merge that is more difficult. &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you the message that Cartesian product has ben used... Get on your alarm bells when&amp;nbsp; you are having performance/big data relations&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Kurt mentioned already the big data&amp;nbsp; performance issue. With SQL data is thought not to be ordered. It is possible to get those results random. &lt;/P&gt;&lt;P&gt;You could parallelize some processing that is done with threading. Most people have problems to think like this. &lt;BR /&gt;With SAS you are thinking the data is ordered and you process them ordered (the automatic OBS). Most people are thinking like this.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your result is exactly what you have code as should being to happen.&lt;/P&gt;&lt;P&gt;The in selection is only a selection should come from this source, all other rules as described are applicable (the missings being replaces out of the other dataset)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 07:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171931#M44344</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-26T07:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171932#M44345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 13:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171932#M44345</guid>
      <dc:creator>Sapkota</dc:creator>
      <dc:date>2014-05-27T13:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171933#M44346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for taking a detail look. I will try this and see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 13:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171933#M44346</guid>
      <dc:creator>Sapkota</dc:creator>
      <dc:date>2014-05-27T13:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Value not in original file appears in merged file. How?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171934#M44347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I too was expecting a note or a suggestions from SAS and was wondering why it did not provide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 13:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Value-not-in-original-file-appears-in-merged-file-How/m-p/171934#M44347</guid>
      <dc:creator>Sapkota</dc:creator>
      <dc:date>2014-05-27T13:41:35Z</dc:date>
    </item>
  </channel>
</rss>

