<?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: data step with SET somehow deletes observation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-step-with-SET-somehow-deletes-observation/m-p/628338#M185645</link>
    <description>Show your log with the issue. I'm guessing it terminated due to an error in your code and you're looking at partial output. &lt;BR /&gt;&lt;BR /&gt;Otherwise, please provide some code that replicates the issue.</description>
    <pubDate>Fri, 28 Feb 2020 20:49:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-02-28T20:49:33Z</dc:date>
    <item>
      <title>data step with SET somehow deletes observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-with-SET-somehow-deletes-observation/m-p/628333#M185642</link>
      <description>&lt;P&gt;data data3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set data1 data2;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding, if data1 and data2 have 10 observations respectively, data3 should return 20 observations. However, after running the statement, I get only 15 observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say those two datasets are actually datasets about students. One student with student id=1 has 4 observations in data1 and 1 observation in data2. After running the data step, I get the records that belong to student id=1 all deleted in data3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help figuring out why this might be?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 20:43:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-with-SET-somehow-deletes-observation/m-p/628333#M185642</guid>
      <dc:creator>gsk</dc:creator>
      <dc:date>2020-02-28T20:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: data step with SET somehow deletes observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-with-SET-somehow-deletes-observation/m-p/628337#M185644</link>
      <description>&lt;P&gt;Please provide us with the data sets used (or a reasonable fraction of them that illustrates the problem). Use these instructions:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;How to create a data step version of your data AKA generate sample data for forums&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please show us the EXACT code that is being used.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 20:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-with-SET-somehow-deletes-observation/m-p/628337#M185644</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-28T20:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: data step with SET somehow deletes observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-with-SET-somehow-deletes-observation/m-p/628338#M185645</link>
      <description>Show your log with the issue. I'm guessing it terminated due to an error in your code and you're looking at partial output. &lt;BR /&gt;&lt;BR /&gt;Otherwise, please provide some code that replicates the issue.</description>
      <pubDate>Fri, 28 Feb 2020 20:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-with-SET-somehow-deletes-observation/m-p/628338#M185645</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-28T20:49:33Z</dc:date>
    </item>
  </channel>
</rss>

