<?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: Convert all character variables to numeric with macro CtoN in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499138#M92</link>
    <description>&lt;P&gt;Please do not post identical questions in different sections of this forum. If the topic needs to be in a different area we will often move it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiple threads mean that you may need to answer the same questions about your data, code and log multiple times. Plus other users searching for a similar topic may not find the thread with the final solution as easily.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 15:29:37 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-09-26T15:29:37Z</dc:date>
    <item>
      <title>Convert all character variables to numeric with macro CtoN</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499128#M87</link>
      <description>&lt;P&gt;I am trying to use the macro&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Convert all character variables to numeric with macro CtoN". from the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/60/678.html" target="_blank"&gt;http://support.sas.com/kb/60/678.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, It is throwing me some error, as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference NLEV not resolved.&lt;BR /&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand&lt;BR /&gt;is required. The condition was: &amp;amp;nlev&lt;BR /&gt;ERROR: The %TO value of the %DO I loop is invalid.&lt;BR /&gt;ERROR: The macro CTON will stop executing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea, how could I resolve this problem?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:07:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499128#M87</guid>
      <dc:creator>Ramy</dc:creator>
      <dc:date>2018-09-26T15:07:12Z</dc:date>
    </item>
    <item>
      <title>Convert all character variables to numeric with macro CtoN</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499130#M91</link>
      <description>&lt;P&gt;I am trying to use the macro&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Convert all character variables to numeric with macro CtoN". from the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/60/678.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/kb/60/678.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, It is throwing me some error, as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference NLEV not resolved.&lt;BR /&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand&lt;BR /&gt;is required. The condition was: &amp;amp;nlev&lt;BR /&gt;ERROR: The %TO value of the %DO I loop is invalid.&lt;BR /&gt;ERROR: The macro CTON will stop executing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea, how could I resolve this problem?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499130#M91</guid>
      <dc:creator>Ramy</dc:creator>
      <dc:date>2018-09-26T15:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert all character variables to numeric with macro CtoN</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499138#M92</link>
      <description>&lt;P&gt;Please do not post identical questions in different sections of this forum. If the topic needs to be in a different area we will often move it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiple threads mean that you may need to answer the same questions about your data, code and log multiple times. Plus other users searching for a similar topic may not find the thread with the final solution as easily.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499138#M92</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-26T15:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert all character variables to numeric with macro CtoN</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499143#M88</link>
      <description>&lt;P&gt;Provide example of the data attempted to convert.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When having issues with macros generally you should set the options to display more details in the log.&lt;/P&gt;
&lt;P&gt;Before running the macro add this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options mprint symbolgen;&lt;/P&gt;
&lt;P&gt;which will show the resolved code generated by the macro (which all that macros actually do, create code) and the building of the macro variables used.&lt;/P&gt;
&lt;P&gt;The error messages will appear in context better.&lt;/P&gt;
&lt;P&gt;Use: options nomprint nosymbolgen; to turn of the added macro resolution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The cause is almost certainly related to either your data or the options you provided when calling the macro.&lt;/P&gt;
&lt;P&gt;You should provide the actual macro call you used as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499143#M88</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-26T15:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert all character variables to numeric with macro CtoN</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499154#M93</link>
      <description>&lt;P&gt;I took care of the double-post. Some day &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;will create the badge "Master Gardener" for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-all-character-variables-to-numeric-with-macro-CtoN/m-p/499154#M93</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-26T15:56:22Z</dc:date>
    </item>
  </channel>
</rss>

