<?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: Variable N has already been defined as numeric. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/WARNING-Variable-N-has-already-been-defined-as-numeric/m-p/36499#M9168</link>
    <description>I know that this was okay in 9.13 of SAS base previously (CC=0), and now gets a warning message with a CC=4 now, and I'm okay with that, but I would like to have the warning removed and go back to a CC=0 to have things cleaned up.&lt;BR /&gt;
&lt;BR /&gt;
What do I have to do to make this happen?&lt;BR /&gt;
&lt;BR /&gt;
code is as follows:&lt;BR /&gt;
199       +  IF _N_ = 1 THEN DO N=1 TO &amp;amp;NUMGRPS;        &lt;BR /&gt;
200       +                   GRPN{N}=PUT(N,$GNAME.);   &lt;BR /&gt;
WARNING: Variable N has already been defined as numeric.&lt;BR /&gt;
201       +                  END;                      &lt;BR /&gt;
&lt;BR /&gt;
Help appreciated.</description>
    <pubDate>Mon, 04 Jan 2010 15:26:18 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-01-04T15:26:18Z</dc:date>
    <item>
      <title>WARNING: Variable N has already been defined as numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/WARNING-Variable-N-has-already-been-defined-as-numeric/m-p/36499#M9168</link>
      <description>I know that this was okay in 9.13 of SAS base previously (CC=0), and now gets a warning message with a CC=4 now, and I'm okay with that, but I would like to have the warning removed and go back to a CC=0 to have things cleaned up.&lt;BR /&gt;
&lt;BR /&gt;
What do I have to do to make this happen?&lt;BR /&gt;
&lt;BR /&gt;
code is as follows:&lt;BR /&gt;
199       +  IF _N_ = 1 THEN DO N=1 TO &amp;amp;NUMGRPS;        &lt;BR /&gt;
200       +                   GRPN{N}=PUT(N,$GNAME.);   &lt;BR /&gt;
WARNING: Variable N has already been defined as numeric.&lt;BR /&gt;
201       +                  END;                      &lt;BR /&gt;
&lt;BR /&gt;
Help appreciated.</description>
      <pubDate>Mon, 04 Jan 2010 15:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/WARNING-Variable-N-has-already-been-defined-as-numeric/m-p/36499#M9168</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-04T15:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Variable N has already been defined as numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/WARNING-Variable-N-has-already-been-defined-as-numeric/m-p/36500#M9169</link>
      <description>A related PROBLEM NOTE on SAS.COM support website (I used SEARCH to find it).  You are using a numeric SAS variable "N" against a character SAS format, which is causing the WARNING message condition.&lt;BR /&gt;
&lt;BR /&gt;
Suggest you make a code tightening correction (my words) and use a PUT function against the "N" NUMERIC type variable with consideration for the length of &amp;amp;NUMGRPS, as shown below:&lt;BR /&gt;
&lt;BR /&gt;
PUT(N,5. -L )&lt;BR /&gt;
&lt;BR /&gt;
Problem Note 35428: Warning messages that incorrectly produce a RC=0 now correctly produce a RC=4 in SAS 9.2&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/35/428.html" target="_blank"&gt;http://support.sas.com/kb/35/428.html&lt;/A&gt;</description>
      <pubDate>Mon, 04 Jan 2010 16:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/WARNING-Variable-N-has-already-been-defined-as-numeric/m-p/36500#M9169</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-04T16:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Variable N has already been defined as numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/WARNING-Variable-N-has-already-been-defined-as-numeric/m-p/36501#M9170</link>
      <description>Thanks SBB.&lt;BR /&gt;
&lt;BR /&gt;
I had found the error list that you pointed out.&lt;BR /&gt;
&lt;BR /&gt;
The resolution was as easy as you stated. I used the format without the dollar sign in front of the format error.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again</description>
      <pubDate>Mon, 04 Jan 2010 16:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/WARNING-Variable-N-has-already-been-defined-as-numeric/m-p/36501#M9170</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-04T16:35:40Z</dc:date>
    </item>
  </channel>
</rss>

