<?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: UPDATE views are not supported error? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727623#M226348</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;previous_place&lt;/STRONG&gt; dataset on the merge line is a dataset. And I try to create a view&amp;nbsp;&lt;STRONG&gt;previous_place &lt;/STRONG&gt;&amp;nbsp;by merging two datasets&amp;nbsp;&lt;STRONG&gt;previous_place&lt;/STRONG&gt; on merge statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 01:14:01 GMT</pubDate>
    <dc:creator>Phil_NZ</dc:creator>
    <dc:date>2021-03-19T01:14:01Z</dc:date>
    <item>
      <title>UPDATE views are not supported error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727615#M226339</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today, when running the code on SAS Base 9.4, I got this error, could you please help me to identify what it is and how to overcome it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;443  /* Add one-day-ahead eta */
444  options mergenoby=nowarn;
445  data previous_replace/view=previous_replace;
446      merge previous_replace previous_replace
447      (firstobs=2 keep=eta rename=(eta=eta_lead1));
448  run;

ERROR: UPDATE views are not supported.
NOTE: View not saved due to errors.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 00:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727615#M226339</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-19T00:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE views are not supported error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727620#M226344</link>
      <description>&lt;P&gt;What data type is&amp;nbsp;&lt;STRONG&gt;previous_replace&lt;/STRONG&gt; ? is it DATA or VIEW ?&lt;/P&gt;
&lt;P&gt;If it is VIEW then the message clarifies itself:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;ERROR: UPDATE views are not supported.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A view holds the code, not the data, so it may be used as input only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;&lt;STRONG&gt;previous_replace&amp;nbsp;&lt;/STRONG&gt;was DATA type then your code would work without error.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 01:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727620#M226344</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-03-19T01:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE views are not supported error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727621#M226345</link>
      <description>&lt;P&gt;A quick search would have lead you to this very good paper:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/wuss/2011/coders/Papers_Billings_T_73653.pdf" target="_blank"&gt;https://www.lexjansen.com/wuss/2011/coders/Papers_Billings_T_73653.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 01:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727621#M226345</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-19T01:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE views are not supported error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727623#M226348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;previous_place&lt;/STRONG&gt; dataset on the merge line is a dataset. And I try to create a view&amp;nbsp;&lt;STRONG&gt;previous_place &lt;/STRONG&gt;&amp;nbsp;by merging two datasets&amp;nbsp;&lt;STRONG&gt;previous_place&lt;/STRONG&gt; on merge statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 01:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727623#M226348</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-19T01:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE views are not supported error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727640#M226361</link>
      <description>&lt;P&gt;suppose mylib.table is a view and a data at same time.&lt;/P&gt;
&lt;P&gt;doing SET mylib.table - which one would sas read?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can't save a view in same the name as existing data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 05:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727640#M226361</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-03-19T05:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE views are not supported error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727725#M226402</link>
      <description>&lt;P&gt;You can't have view and dataset the SAME name .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data previous_replace;
 set sashelp.class;
run;



options mergenoby=nowarn;
  data &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;previous_replace_view /view=previous_replace_view&lt;/STRONG&gt;&lt;/FONT&gt; ;
      merge previous_replace previous_replace
      (firstobs=2 keep=age rename=(age=eta_lead1));
  run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Mar 2021 11:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-views-are-not-supported-error/m-p/727725#M226402</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-19T11:02:12Z</dc:date>
    </item>
  </channel>
</rss>

