<?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: Numeric values have been converted to character values at the places given in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50030#M13587</link>
    <description>Input() takes a string as its first parameter.</description>
    <pubDate>Tue, 30 Jun 2009 01:32:04 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2009-06-30T01:32:04Z</dc:date>
    <item>
      <title>Numeric values have been converted to character values at the places given</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50026#M13583</link>
      <description>When I run the statement below I get &lt;BR /&gt;
&lt;BR /&gt;
Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;
&lt;BR /&gt;
data step2(keep=AddType) ;&lt;BR /&gt;
	length AddType 8. ;&lt;BR /&gt;
	set step1 ;&lt;BR /&gt;
	&lt;BR /&gt;
	AddType=input(MType, best.) ;&lt;BR /&gt;
run ;&lt;BR /&gt;
&lt;BR /&gt;
Within table step1 MType is defined as number 8. I can't see where there would be a conversion taking place.  That entire column in this specific table is all 1's so I know it's numeric I don't see why SAS wants to convert it.&lt;BR /&gt;
&lt;BR /&gt;
Any help would be appreciated.  &lt;BR /&gt;
&lt;BR /&gt;
Thank You</description>
      <pubDate>Mon, 29 Jun 2009 18:28:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50026#M13583</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2009-06-29T18:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric values have been converted to character values at the places given</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50027#M13584</link>
      <description>It would be best to share your expanded SAS log output (from the DATA step in question, with SAS line numbers for reference) as well as reviewing a CONTENTS listing to confirm what variable(s) are CHARACTER and/or NUMERIC.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 29 Jun 2009 19:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50027#M13584</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-29T19:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric values have been converted to character values at the places given</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50028#M13585</link>
      <description>Scott,&lt;BR /&gt;
Here is the info you mentioned&lt;BR /&gt;
&lt;BR /&gt;
986  data step2(keep=AddType) ;&lt;BR /&gt;
987  length AddType 8. ;&lt;BR /&gt;
988  set step1 ;&lt;BR /&gt;
989&lt;BR /&gt;
990  AddType=input(MType, best.) ;&lt;BR /&gt;
991  run ;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;
      990:15&lt;BR /&gt;
NOTE: There were 31 observations read from the data set WORK.STEP1.&lt;BR /&gt;
NOTE: The data set WORK.STEP2 has 31 observations and 1 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
 Data Set Page Size         4096&lt;BR /&gt;
Number of Data Set Pages    1&lt;BR /&gt;
First Data Page             1&lt;BR /&gt;
Max Obs per Page            501&lt;BR /&gt;
Obs in First Data Page      31&lt;BR /&gt;
Number of Data Set Repairs  0&lt;BR /&gt;
File Name                   C:\SAS\step1.sas7bdat&lt;BR /&gt;
Release Created             9.0101M3&lt;BR /&gt;
Host Created                XP_PRO&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Alphabetic List of Variables and Attributes&lt;BR /&gt;
&lt;BR /&gt;
#    Variable    Type    Len&lt;BR /&gt;
&lt;BR /&gt;
1    MType       Num       8</description>
      <pubDate>Mon, 29 Jun 2009 20:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50028#M13585</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2009-06-29T20:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric values have been converted to character values at the places given</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50029#M13586</link>
      <description>You are asking SAS to convert the variable MType using a numeric INFORMAT, so to do so it must first convert the input variable to a suitable type which is explained in the diagnostic message.  You need not do any conversion, just an assignment statement since both variables are numeric.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS conference (SUGI/SGF) paper on this topic - found on SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  &lt;BR /&gt;
Debugging 101&lt;BR /&gt;
Peter Knapp, U.S. Department of Commerce&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi29/257-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/257-29.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 29 Jun 2009 20:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50029#M13586</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-29T20:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric values have been converted to character values at the places given</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50030#M13587</link>
      <description>Input() takes a string as its first parameter.</description>
      <pubDate>Tue, 30 Jun 2009 01:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50030#M13587</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-06-30T01:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric values have been converted to character values at the places given</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50031#M13588</link>
      <description>Thanks guys,&lt;BR /&gt;
I'm still learning and this code was done by someone else so I was trying to clean it up and figure out how to make it better.  &lt;BR /&gt;
&lt;BR /&gt;
Thank you both for the help&lt;BR /&gt;
&lt;BR /&gt;
Jerry</description>
      <pubDate>Tue, 30 Jun 2009 12:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-values-have-been-converted-to-character-values-at-the/m-p/50031#M13588</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2009-06-30T12:55:09Z</dc:date>
    </item>
  </channel>
</rss>

