<?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: Adding New Variables to Permanent Dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62896#M13673</link>
    <description>The closest you can get is Proc sql; alter table xxx add var var-spec;&lt;BR /&gt;
&lt;BR /&gt;
It probably recreates the dataset anyway, but it seems faster than recreating in my experience.</description>
    <pubDate>Mon, 01 Mar 2010 15:03:59 GMT</pubDate>
    <dc:creator>Flip</dc:creator>
    <dc:date>2010-03-01T15:03:59Z</dc:date>
    <item>
      <title>Adding New Variables to Permanent Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62893#M13670</link>
      <description>Is there anyway to add new to variable to a existing permanent dataset, without re-&lt;BR /&gt;
creating new dataset.&lt;BR /&gt;
&lt;BR /&gt;
The permanent dataset, which i want to modify is very huge(contains millions of obs)... so, I don't want to create a new dataset....</description>
      <pubDate>Mon, 01 Mar 2010 03:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62893#M13670</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-01T03:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding New Variables to Permanent Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62894#M13671</link>
      <description>no&lt;BR /&gt;
you can change values in existing columns&lt;BR /&gt;
you can add new rows of values&lt;BR /&gt;
&lt;BR /&gt;
but you cannot add additional columns without recreating the whole table

(less blunt than just "no")    &lt;BR /&gt;
Message was edited by: Peter.C</description>
      <pubDate>Mon, 01 Mar 2010 12:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62894#M13671</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-03-01T12:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding New Variables to Permanent Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62895#M13672</link>
      <description>You may find the SAS data VIEW concept to be useful here, depending on your specific needs.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 01 Mar 2010 13:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62895#M13672</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-01T13:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding New Variables to Permanent Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62896#M13673</link>
      <description>The closest you can get is Proc sql; alter table xxx add var var-spec;&lt;BR /&gt;
&lt;BR /&gt;
It probably recreates the dataset anyway, but it seems faster than recreating in my experience.</description>
      <pubDate>Mon, 01 Mar 2010 15:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62896#M13673</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-03-01T15:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding New Variables to Permanent Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62897#M13674</link>
      <description>Alter table being the simplest solution to add a variable, will also recreate the dataset.&lt;BR /&gt;
&lt;BR /&gt;
SAS datasets are stored into physical pages (just a unit)  on a tabular form.&lt;BR /&gt;
From there it easy to understand that there is no way yo add a new variable without rewriting the whole file.&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Tue, 02 Mar 2010 14:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-New-Variables-to-Permanent-Dataset/m-p/62897#M13674</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2010-03-02T14:05:15Z</dc:date>
    </item>
  </channel>
</rss>

