<?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: Dataset Not Replacing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563616#M158032</link>
    <description>&lt;P&gt;have you tried to delete the data set then run your code to create the new data table with the extra columns?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 22:31:06 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2019-06-04T22:31:06Z</dc:date>
    <item>
      <title>Dataset Not Replacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563613#M158029</link>
      <description>&lt;P&gt;I'm not exactly sure what is happening, but I need to replace one data set with another in a library.&amp;nbsp; The current data set has 710 columns, the new data set has 715 columns.&amp;nbsp; Every time I replace the current with the new, whether it is through code or direct Windows copy, the added columns disappear.&amp;nbsp; The columns are the last 5 in the data set.&amp;nbsp; Why is this happening and what can I do to fix it?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 22:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563613#M158029</guid>
      <dc:creator>arjessup</dc:creator>
      <dc:date>2019-06-04T22:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset Not Replacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563614#M158030</link>
      <description>&lt;P&gt;Show us your SAS log from running the code that is trying to "replace" the dataset.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 22:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563614#M158030</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-04T22:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset Not Replacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563616#M158032</link>
      <description>&lt;P&gt;have you tried to delete the data set then run your code to create the new data table with the extra columns?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 22:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563616#M158032</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-06-04T22:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset Not Replacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563646#M158040</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202876"&gt;@arjessup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to give us some more details about your SAS products and process. Are&amp;nbsp;&lt;SPAN&gt;the added columns missing when you browse the data set, or when you run a proc contents?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using a SAS product that works with SAS metadata, like DI Studio, SAS only sees the columns defined in metadata. You get an error if a column does not exist in the physical table, and a column in the physical table is ignored, if it is not present in the table metadata..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a common problem in DI Studio when working with user defined transformations or user-written code, where the physical output table is created by the code independent of metadata. I often forget to update table metadata &lt;U&gt;after&lt;/U&gt;&amp;nbsp;the transformation is run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 08:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563646#M158040</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-06-05T08:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset Not Replacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563728#M158062</link>
      <description>&lt;P&gt;They are not in the view.&amp;nbsp; When I run PROC CONTENTS, they are in the data set.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 15:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563728#M158062</guid>
      <dc:creator>arjessup</dc:creator>
      <dc:date>2019-06-05T15:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset Not Replacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563741#M158069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202876"&gt;@arjessup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which means that your code is working, because the data set is replaced.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say "they are not in the view". Do you mean you access the data set through a separately stored view with the filetype &lt;SPAN&gt;sas7bvew&lt;/SPAN&gt;? - if so, you must manually update the view to include the new variables.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 16:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-Not-Replacing/m-p/563741#M158069</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-06-05T16:01:40Z</dc:date>
    </item>
  </channel>
</rss>

