<?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: SAS Log Warning in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Log-Warning/m-p/798999#M314122</link>
    <description>&lt;P&gt;The question is do you want the variable in your output data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This warning says the variable already exists in the data set. I assume the data set is on a SET (merge, update or modify) statement and you have used a dataset option creating a temporary variable of the same name such as with the IN= option. Temporary variables are not written to the output and since you have reused a variable name that also means the existing values of the variable have been overwritten by the option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, what do you expect? If you expect the variable to be in the output data set then use a different temporary variable for the option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Large economy sized hint: Include entire procedure or data step code along with all the messages, notes, warnings. Copy from the log all of the related text then on the forum open a text box using the &amp;lt;/&amp;gt; and paste all of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case I would then be able to point to exactly which usage is causing the warning.&lt;/P&gt;</description>
    <pubDate>Sun, 27 Feb 2022 19:40:45 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-02-27T19:40:45Z</dc:date>
    <item>
      <title>SAS Log Warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Log-Warning/m-p/798957#M314097</link>
      <description>&lt;P&gt;Kindly assist in resolving the warning issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;WARNING: The variable CTR1N exists on an input data set and is also set by an I/O statement option.  
The variable will not be included on any output data set and unexpected results can occur.&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Feb 2022 11:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Log-Warning/m-p/798957#M314097</guid>
      <dc:creator>Tejaswini3</dc:creator>
      <dc:date>2022-02-27T11:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Log Warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Log-Warning/m-p/798958#M314098</link>
      <description>&lt;P&gt;Show us the &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;ENTIRE&lt;/FONT&gt;&lt;/STRONG&gt; log for this DATA step or PROC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Advice: never show error messages detached from the code that created them. That's why we want to see the entire log for the DATA step or PROC.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 12:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Log-Warning/m-p/798958#M314098</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-27T12:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Log Warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Log-Warning/m-p/798963#M314100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416543"&gt;@Tejaswini3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Performing a web search for the first sentence of the message looks like it gives the scenario under which this occurs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/33/112.html" target="_blank"&gt;http://support.sas.com/kb/33/112.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not cover your scenario then please provide details as advised by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 13:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Log-Warning/m-p/798963#M314100</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2022-02-27T13:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Log Warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Log-Warning/m-p/798999#M314122</link>
      <description>&lt;P&gt;The question is do you want the variable in your output data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This warning says the variable already exists in the data set. I assume the data set is on a SET (merge, update or modify) statement and you have used a dataset option creating a temporary variable of the same name such as with the IN= option. Temporary variables are not written to the output and since you have reused a variable name that also means the existing values of the variable have been overwritten by the option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, what do you expect? If you expect the variable to be in the output data set then use a different temporary variable for the option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Large economy sized hint: Include entire procedure or data step code along with all the messages, notes, warnings. Copy from the log all of the related text then on the forum open a text box using the &amp;lt;/&amp;gt; and paste all of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case I would then be able to point to exactly which usage is causing the warning.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 19:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Log-Warning/m-p/798999#M314122</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-27T19:40:45Z</dc:date>
    </item>
  </channel>
</rss>

