<?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: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269580#M269385</link>
    <description>&lt;P&gt;I undertand this, but we are recreating&amp;nbsp;the table here, so this warning seems unjustified and out of place.&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 21:30:37 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2016-05-10T21:30:37Z</dc:date>
    <item>
      <title>PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/268389#M269377</link>
      <description>&lt;P&gt;I have read here and there (can't find a reference right now, sorry!)&amp;nbsp;that in PROC SQL, when overwriting a dataset that has a generation group, we could safely use the nowarnrecurs option. I don't see any such indication in&amp;nbsp;SAS documentation though, so I'm hesitant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a (bogus) example to illustrate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql nowarnrecurs;&lt;BR /&gt;  /* initiate a generation group */&lt;BR /&gt;  create table work.retail(genmax=5) as &lt;BR /&gt;    select * &lt;BR /&gt;      from sashelp.retail;&lt;BR /&gt;&lt;BR /&gt;  /* overwrite the table */&lt;BR /&gt;  create table work.retail as&lt;BR /&gt;    select *&lt;BR /&gt;      from work.retail&lt;BR /&gt;     where year &amp;gt; 1989;&lt;BR /&gt;quit;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;By doing that, the usual WARNING...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; WARNING: This CREATE TABLE statement recursively references the target table. A consequence of this is a possible data&amp;nbsp;integrity problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Becomes a simple NOTE...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;NOTE: This CREATE TABLE statement recursively references the target table. A consequence of this is a possible data integrity problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Now my question is&lt;/U&gt;: is it &lt;EM&gt;absolutely safe&lt;/EM&gt; to do that, or could there be a risk of data integrity problems &lt;EM&gt;even&lt;/EM&gt; when the dataset has a generation group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version: SAS Server 9.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 21:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/268389#M269377</guid>
      <dc:creator>dominic</dc:creator>
      <dc:date>2016-05-04T21:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/268430#M269378</link>
      <description>&lt;P&gt;I don't know the answer, but I do like the question!&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 02:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/268430#M269378</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-05T02:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/268465#M269379</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had not heard of that option in proc sql before. &amp;nbsp;Whenever I need to overwrite the same dataset i use:&lt;/P&gt;
&lt;PRE&gt;proc sql undopolicy=none;
...&lt;/PRE&gt;
&lt;P&gt;It should be fine within SAS proc SQL, not sure about the interactions when pass-through is used and how the DB handles it. &amp;nbsp;You could of course just do it in Base SAS and avoid the whole issue.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 08:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/268465#M269379</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-05T08:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/268551#M269380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84195"&gt;@dominic﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In section "Generation Data Sets" of &lt;A href="http://www.sas.com/store/books/categories/examples/proc-sql-by-example-using-sql-within-sas-/prodBK_60500_en.html" target="_blank"&gt;PROC SQL by Example: Using SQL within SAS&lt;/A&gt; by Howard Schreier (2008), it says: "Generation data sets ... do not work particularly well with SQL" (p.199) and on p. 203, after experiencing the warning about a recursive table reference: "... with generation data sets in effect, the two references ... actually pertain to two different tables, so the warning seems particularly unfounded. However, you might prefer to avoid such usage ..." (to avoid the log message). The book doesn't mention the (NO)WARNRECURS option because it's based on SAS 9.2 and the option was only introduced in SAS 9.3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, I hardly ever use generation datasets (for no particular reason), so I can't give you a definitive answer. In Windows Explorer it seems that the previous version of the dataset is just renamed, while its last modification date and in fact its binary content remain unchanged. Nevertheless, the update doesn't work with the read-only attribute set.&amp;nbsp;(These are just my observations based on a single ad-hoc example I created using your code!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/268551#M269380</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-05-05T14:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269285#M269381</link>
      <description>&lt;P&gt;The real question is : what on earth does "&amp;nbsp;A consequence of this is a possible data&amp;nbsp;integrity problem" mean&amp;nbsp;in a SAS data storage context? Saying it's better not to use this syntax without further explanations is meaningless.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a question for tech support, but many people here are keen to know the answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 02:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269285#M269381</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-05-10T02:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269309#M269383</link>
      <description>Good point. I will get in touch with tech support and update this thread when things get clearer.</description>
      <pubDate>Tue, 10 May 2016 02:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269309#M269383</guid>
      <dc:creator>dominic</dc:creator>
      <dc:date>2016-05-10T02:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269359#M269384</link>
      <description>&lt;P&gt;This has been around since the dawn of time. &amp;nbsp;Basically databases have to be ACID compliant, that means if there is any problem with an SQL table operation then it can roll back to the previous state, thus say a insert which corrupts the whole table can be avoided as it rolls back. &amp;nbsp;ANSI SQL has to support this, but SAS doesn't have the rollback function. &amp;nbsp;The warning is there to tell you, if you take data from a table whilst writing to the same table you could corrupt your data and you cannot roll the operation back. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be honest, there is a couple of options to remove this warning as given above, and there is no real reason in the first place why you would a) not be able to create a new dataset hence avoiding the problem, b) use Base SAS in the first place, again the problem goes away. &amp;nbsp;It is the choices by the OP which have lead to getting that warning.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 08:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269359#M269384</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-10T08:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269580#M269385</link>
      <description>&lt;P&gt;I undertand this, but we are recreating&amp;nbsp;the table here, so this warning seems unjustified and out of place.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 21:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269580#M269385</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-05-10T21:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269821#M269386</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Ok so here's the answer I got from SAS Technical Support. (My highlights)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;FONT face="verdana,geneva" size="3" color="#008000"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;Dominic,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;FONT face="verdana,geneva" size="3" color="#008000"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;The query at the bottom of the &lt;A title="Usage Note 12062" href="http://support.sas.com/kb/12/062.html" target="_blank"&gt;SAS Note you linked&lt;/A&gt; to is a query that was found by development&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;&amp;nbsp;to produce data integrity issues. &amp;nbsp;However, consistently reproducing this behavior is not possible.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp; &amp;nbsp;(&lt;SPAN&gt;here's the problematic code from Note 12062)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="2"&gt;proc sql undo_policy=none;
  delete from one
  where id in (select id from one);
quit;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;FONT face="verdana,geneva" size="3" color="#008000"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;A query such as the one below, will &lt;STRONG&gt;not&lt;/STRONG&gt;, to our knowledge, produce any data integrity issues:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="2"&gt;proc sql;
&amp;nbsp;create table x as
&amp;nbsp;select * from x;
quit;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="3" color="#008000"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;The PROC SQL developers continue to work to more closely align with the ANSI standards. &amp;nbsp;As mentioned in the Usage Note, the warning was added to notify users of possible data integrity issues as a result of using recursive table references which are only supported for SQL that is fully ANSI compliant. &amp;nbsp;Due to SAS not being fully compliant with the SQL ANSI standards, in queries which contain recursive table references, &lt;STRONG&gt;if the query were to fail due to a system error outside of PROC SQL&lt;/STRONG&gt;, we cannot guarantee the integrity of the input table. Therefore, we are required to produce the Warning based on the query itself.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;FONT face="verdana,geneva" size="2" color="#008000"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;Thanks,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;FONT face="verdana,geneva" size="2" color="#008000"&gt;&lt;SPAN style="font-size: 10.6667px; line-height: 12.8px;"&gt;(Tech name)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;FONT face="verdana,geneva" size="2" color="#008000"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;SAS Technical Support&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;FONT face="verdana,geneva" size="2" color="#008000"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;Cary, NC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN class="cs8a70f0c81"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;So basically, what I get out of this is (there's some amount of&amp;nbsp;deduction here so let me know if your interpretations differ):&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp; &amp;nbsp; 1. Having a &lt;STRONG&gt;generation dataset&lt;/STRONG&gt; does not have any impact&amp;nbsp;on the relevance of the warning&amp;nbsp;-&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PROC SQL will not use the backups and so corrupt output tables would need&amp;nbsp;to be rolled&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; back manually&amp;nbsp;=&amp;gt;&amp;nbsp;&lt;FONT face="lucida sans unicode,lucida sans" color="#0000FF"&gt;proc delete data=mydata(gennum=0);&lt;/FONT&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;2.&lt;STRONG&gt; Overwriting by recursion&lt;/STRONG&gt; does &lt;STRONG&gt;not&lt;/STRONG&gt; pose any&amp;nbsp;problems as long as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i. you stay in &lt;FONT color="#0000FF"&gt;PROC SQL&lt;/FONT&gt;&amp;nbsp;(which I assume means: not&amp;nbsp;connecting to a remote DBMS via&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;passthru and so on.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ii. nothing is otherwise preventing your query to execute (power outage or computer crash&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maybe?).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;3.&lt;STRONG&gt; Updating / Inserting or removing data&amp;nbsp;in a recursive manner &lt;/STRONG&gt;might however&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;fail,&lt;/STRONG&gt; &lt;EM&gt;some of the time&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this clarifies the issue at least to a certain extent.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 17:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269821#M269386</guid>
      <dc:creator>dominic</dc:creator>
      <dc:date>2016-05-11T17:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - is overwriting generation datasets totally safe (so that nowarnrecurs can be used)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269921#M269387</link>
      <description>&lt;P&gt;The warning makes sense in the case of the documented Note .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL code performing table changes (delete, update, etc&amp;nbsp;clauses) should trigger this warning when the table references itself for change conditions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This warning seems unwarranted for a &lt;STRONG&gt;create&lt;/STRONG&gt; clause however. The source table will not change until the output table is ready, and no confusion can occur.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" face="Verdana" size="2"&gt;&amp;nbsp;&lt;STRONG&gt;if the query were to fail due to a system error outside of PROC SQL&lt;/STRONG&gt;, we cannot guarantee the integrity of the input table. Therefore, we are required to produce the Warning based on the query itself.&amp;nbsp;&lt;/FONT&gt;Yes you can. The input table is not modified in any way when a create clause is used. The query can fail all it wants without any integrity issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are no &lt;FONT color="#008000" face="Verdana" size="2"&gt;recursive table references&lt;/FONT&gt; when a new table is created, even if the table will bear the same name after all is complete.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The warning is&amp;nbsp;erroneously&amp;nbsp;displayed in the case of create statements and there is no valid justification for it it seems.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 00:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-is-overwriting-generation-datasets-totally-safe-so-that/m-p/269921#M269387</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-05-12T00:12:28Z</dc:date>
    </item>
  </channel>
</rss>

