<?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 Warning in log - why? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Warning-in-log-why/m-p/488532#M127345</link>
    <description>&lt;P&gt;Dear community&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In one of my programs, I do a conversion from numeric to text.&amp;nbsp; This is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test ;
format CD_YEAR $4.;
format CD_KD $3.;


set test0;

CD_YEAR = put(jr,$4.);
CD_KD = put(kd,$3.);


run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I don't understand is that my log gives the following warnings:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: Variable jr has already been defined as numeric.&lt;/P&gt;
&lt;P&gt;WARNING: Variable kd has already been defined as numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know jr and kd are numeric, that's why I want to convert them to text...&lt;/P&gt;
&lt;P&gt;What is happening here and how can I prevent such warnings?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 13:09:49 GMT</pubDate>
    <dc:creator>fre</dc:creator>
    <dc:date>2018-08-21T13:09:49Z</dc:date>
    <item>
      <title>Warning in log - why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-in-log-why/m-p/488532#M127345</link>
      <description>&lt;P&gt;Dear community&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In one of my programs, I do a conversion from numeric to text.&amp;nbsp; This is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test ;
format CD_YEAR $4.;
format CD_KD $3.;


set test0;

CD_YEAR = put(jr,$4.);
CD_KD = put(kd,$3.);


run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I don't understand is that my log gives the following warnings:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: Variable jr has already been defined as numeric.&lt;/P&gt;
&lt;P&gt;WARNING: Variable kd has already been defined as numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know jr and kd are numeric, that's why I want to convert them to text...&lt;/P&gt;
&lt;P&gt;What is happening here and how can I prevent such warnings?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-in-log-why/m-p/488532#M127345</guid>
      <dc:creator>fre</dc:creator>
      <dc:date>2018-08-21T13:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Warning in log - why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-in-log-why/m-p/488536#M127348</link>
      <description>CD_YEAR = put(jr,4.);&lt;BR /&gt;CD_KD = put(kd,3.);&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-in-log-why/m-p/488536#M127348</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2018-08-21T13:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Warning in log - why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-in-log-why/m-p/488548#M127354</link>
      <description>&lt;P&gt;What &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4877"&gt;@Haikuo&lt;/a&gt; said. You erroneously used a character format for a numeric variable.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-in-log-why/m-p/488548#M127354</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-21T13:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Warning in log - why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-in-log-why/m-p/488550#M127356</link>
      <description>&lt;P&gt;Thank you for your help.&amp;nbsp; It's clear now.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-in-log-why/m-p/488550#M127356</guid>
      <dc:creator>fre</dc:creator>
      <dc:date>2018-08-21T13:35:47Z</dc:date>
    </item>
  </channel>
</rss>

