<?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 Attempt to append a view to itself in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139201#M37271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc append base = s1 (COMPRESS = YES) data = WORK.s2 () force ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MPRINT(ETLS_LOADER):&amp;nbsp;&amp;nbsp; run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;P&gt;NOTE: Appending WORK.s2 to s1.&lt;/P&gt;&lt;P&gt;ERROR: Attempt to append a view to itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how am I appending view to iself...I did not write proc append base = s1 data = s1...so what is the problem.&lt;/P&gt;&lt;P&gt;It is true that s2 is a dataset that is 'derived' from s1 throguh a series of transformations....but is that a problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 18:01:55 GMT</pubDate>
    <dc:creator>eagles_dare13</dc:creator>
    <dc:date>2014-07-28T18:01:55Z</dc:date>
    <item>
      <title>Attempt to append a view to itself</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139201#M37271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc append base = s1 (COMPRESS = YES) data = WORK.s2 () force ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MPRINT(ETLS_LOADER):&amp;nbsp;&amp;nbsp; run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;P&gt;NOTE: Appending WORK.s2 to s1.&lt;/P&gt;&lt;P&gt;ERROR: Attempt to append a view to itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how am I appending view to iself...I did not write proc append base = s1 data = s1...so what is the problem.&lt;/P&gt;&lt;P&gt;It is true that s2 is a dataset that is 'derived' from s1 throguh a series of transformations....but is that a problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 18:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139201#M37271</guid>
      <dc:creator>eagles_dare13</dc:creator>
      <dc:date>2014-07-28T18:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Attempt to append a view to itself</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139202#M37272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using DI?&amp;nbsp;&amp;nbsp; (ETLS_Loader) the generated is often based on using views.&amp;nbsp; &lt;BR /&gt;I can imagine proc append does not like that as it optimized to extend a physicial dataset. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 18:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139202#M37272</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-28T18:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Attempt to append a view to itself</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139203#M37273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&amp;nbsp; Iam using DI. Is there a way to get around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 18:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139203#M37273</guid>
      <dc:creator>eagles_dare13</dc:creator>
      <dc:date>2014-07-28T18:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Attempt to append a view to itself</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139204#M37274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/039-2010.pdf" title="http://support.sas.com/resources/papers/proceedings10/039-2010.pdf"&gt;http://support.sas.com/resources/papers/proceedings10/039-2010.pdf&lt;/A&gt; middle of page 6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 19:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139204#M37274</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-28T19:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Attempt to append a view to itself</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139205#M37275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;View is just a bunch of code . It can't be true to append a view into another view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data class;
 set sashelp.class;
run;


proc sql;
create view cl as
 select * from class;


create view append as
 select * from cl
 union all corr
 select * from cl
 ;
quit;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: xia keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 14:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Attempt-to-append-a-view-to-itself/m-p/139205#M37275</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-29T14:17:18Z</dc:date>
    </item>
  </channel>
</rss>

