<?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 Proc append in macro in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-append-in-macro/m-p/806804#M81731</link>
    <description>&lt;P&gt;I have a macro that has proc append, when running once the output is perfect, but when changing the macro variables and running again the output of proc append that would have the same name is not created. How to fix this problem without having to disconnect the server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%macro psi (&lt;FONT color="#ff0000"&gt;[...]&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#ff0000"&gt;[...]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;proc append data= dist_resul_&amp;amp;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#08726d"&gt;date.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; base=Result_DIST;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#ff0000"&gt;[...]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%mend psi;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%psi( &lt;FONT color="#ff0000"&gt;[variables1]&lt;/FONT&gt; ); Here is the output&amp;nbsp;"Result_DIST"!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%psi( &lt;FONT color="#ff0000"&gt;[variables2]&lt;/FONT&gt; ); Here the output&amp;nbsp;"Result_DIST" does not work!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 16:30:04 GMT</pubDate>
    <dc:creator>Thalitacosta</dc:creator>
    <dc:date>2022-04-08T16:30:04Z</dc:date>
    <item>
      <title>Proc append in macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-append-in-macro/m-p/806804#M81731</link>
      <description>&lt;P&gt;I have a macro that has proc append, when running once the output is perfect, but when changing the macro variables and running again the output of proc append that would have the same name is not created. How to fix this problem without having to disconnect the server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%macro psi (&lt;FONT color="#ff0000"&gt;[...]&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#ff0000"&gt;[...]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;proc append data= dist_resul_&amp;amp;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#08726d"&gt;date.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; base=Result_DIST;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#ff0000"&gt;[...]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%mend psi;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%psi( &lt;FONT color="#ff0000"&gt;[variables1]&lt;/FONT&gt; ); Here is the output&amp;nbsp;"Result_DIST"!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%psi( &lt;FONT color="#ff0000"&gt;[variables2]&lt;/FONT&gt; ); Here the output&amp;nbsp;"Result_DIST" does not work!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 16:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-append-in-macro/m-p/806804#M81731</guid>
      <dc:creator>Thalitacosta</dc:creator>
      <dc:date>2022-04-08T16:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc append in macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-append-in-macro/m-p/806805#M81732</link>
      <description>&lt;P&gt;It's hard to tell, since you provide only a fragment of the actual macro. There could be many causes. Furthermore, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/391297"&gt;@Thalitacosta&lt;/a&gt; when you say "does not work", you have not provided the slightest bit of evidence about what went wrong. We can't diagnose what went wrong when all you tell us is that it "does not work". Is there an error in the LOG? If so (now and in the future), show us the ENTIRE log for this macro. Please, from now on, be generous with information. Do not try to provide the absolute bare minimum information, as you have done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possible cause is that when you append to an existing data set, but the new data set has different variables, PROC APPEND fails. You can use the FORCE option to override this. There are many other possible causes...&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 16:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-append-in-macro/m-p/806805#M81732</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-08T16:40:27Z</dc:date>
    </item>
  </channel>
</rss>

