<?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: Proc import character values vs numeric values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633055#M187774</link>
    <description>Hello,&lt;BR /&gt;Thank you for your answer. Yes, I have a different types of values in the Excel column because different people fill the column.&lt;BR /&gt;I would like just to hold the character value and CORRECT value (that are numeric in Excel) that appear like 6.6666 after the proc import, therefor I did 6.666+0=0.066, after I'll convert it on 0.066 character value and replace 6.666&lt;BR /&gt;I can explain how sas transforme: 6.66666 (character) +0 =0.06666 (numeric)</description>
    <pubDate>Wed, 18 Mar 2020 19:19:08 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2020-03-18T19:19:08Z</dc:date>
    <item>
      <title>Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/632950#M187709</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Maybe someone could explain me the proc import comportement in encoding the values:&lt;/P&gt;&lt;P&gt;Exemple: I have the value 6.66% in my excel file,&lt;/P&gt;&lt;P&gt;proc import translate this value in character value 6.66666&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I'm forcing by adding the 0 to this values I have the correct values in table: 6.66+0 =0.066.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can explain the transformation:&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;6.66666 (character) +0 =0.06666 (numeric)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 13:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/632950#M187709</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-03-18T13:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/632953#M187710</link>
      <description>&lt;P&gt;Please post a small example that demonstrates the issue.&amp;nbsp; Do you have an XLSX file or the older XLS format?&lt;/P&gt;
&lt;P&gt;Note that Excel is a spreadsheet where every cell can have a different type of value, but SAS datasets require that each variable has only one type for all observations.&amp;nbsp; Make sure that there are no character strings in other cells in the column that has the 6.6% value.&amp;nbsp; When the column has mixed data then SAS must create a character variable.&amp;nbsp; It is possible to represent numbers using character strings, but trying to represent strings as numbers is not really possible.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 13:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/632953#M187710</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-18T13:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/632954#M187711</link>
      <description>&lt;P&gt;Please attach an example of such an Excel file, and post your import code, so we can recreate your problem.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 13:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/632954#M187711</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-18T13:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/632975#M187731</link>
      <description>&lt;P&gt;Go back to your Excel file. Examine VERY closely each value in the first 20 rows&amp;nbsp;for the column that is giving you problems. By default SAS uses the values of the first 20 rows to set the properties of variables. Values like NA, NULL or anything not numeric in those rows means SAS usually assign a character property and then use the values to set how long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just because it looks numeric does not mean the cell has an actual numeric value, especially if the data was manually entered. The underlying issue is that Excel, and most spreadsheets, to not have an actual concept of datatype for a column. The same column can contain text, numeric values, dates, times. I won't even go into people that use cell colors to indicate actual values. So processes have to make some choice what to do with the column. With only 20 rows examined then the guessing algorithm&amp;nbsp;may be working with a very incomplete set of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The better way to convert character to numeric is to use the Input function:&amp;nbsp; newvar = input(charvar,informat.); That will prevent getting messages in the Log like "character values have been converted to numeric at" . Which is sometimes an indication of not quite right code, especially if you did not expect a variable to be character.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 14:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/632975#M187731</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-18T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633055#M187774</link>
      <description>Hello,&lt;BR /&gt;Thank you for your answer. Yes, I have a different types of values in the Excel column because different people fill the column.&lt;BR /&gt;I would like just to hold the character value and CORRECT value (that are numeric in Excel) that appear like 6.6666 after the proc import, therefor I did 6.666+0=0.066, after I'll convert it on 0.066 character value and replace 6.666&lt;BR /&gt;I can explain how sas transforme: 6.66666 (character) +0 =0.06666 (numeric)</description>
      <pubDate>Wed, 18 Mar 2020 19:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633055#M187774</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-03-18T19:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633061#M187777</link>
      <description>&lt;P&gt;proc import&lt;BR /&gt;datafile= "xxx\Exemple.xlsx"&lt;BR /&gt;out=Retours&lt;BR /&gt;replace dbms=xlsx;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data Retours1;&lt;BR /&gt;set Retours;&lt;BR /&gt;Exemple2=(Exemple+0);&lt;BR /&gt;Exemple3=compress(put(round(Exemple2*100,0.01),10.2)||'%');&lt;BR /&gt;if Exemple2^=. then Exemple=Exemple3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 19:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633061#M187777</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-03-18T19:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633062#M187778</link>
      <description>Thank you!</description>
      <pubDate>Wed, 18 Mar 2020 19:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633062#M187778</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-03-18T19:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633063#M187779</link>
      <description>&lt;P class="yiv2385244441MsoNormal"&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: navy;"&gt;Thank you!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: navy;"&gt;proc&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: navy;"&gt;import&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: blue;"&gt;datafile&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: purple;"&gt;"xxxx\Exemple.xlsx"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: blue;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;=Retours&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: blue;"&gt;replace&lt;/SPAN&gt; &lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: blue;"&gt;dbms&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;=xlsx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: blue;"&gt;getnames&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;=yes;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: navy;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: navy;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt; Retours1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: blue;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt; Retours;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exemple2=(Exemple+&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: teal;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exemple3=compress(put(round(Exemple2*&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: teal;"&gt;100&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: teal;"&gt;0.01&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;),&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: teal;"&gt;10.2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;)||&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: purple;"&gt;'%'&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt; Exemple2^=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: teal;"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt; Exemple=Exemple3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="yiv2385244441MsoNormal"&gt;&lt;STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: navy;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: white; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 19:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633063#M187779</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-03-18T19:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633129#M187800</link>
      <description>To convert a string to a number use the INPUT() function with a numeric INFORMAT.&lt;BR /&gt;num = input(string,32.);&lt;BR /&gt;To convert from 6 to 0.06 divide by 100.</description>
      <pubDate>Thu, 19 Mar 2020 01:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633129#M187800</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-19T01:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633131#M187802</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;&lt;EM&gt;By default SAS uses the values of the first 20 rows to set the properties of variables.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I believe with xlsX all rows get analyzed. I've just run a test using an Excel sheet where in column A the first 10000 rows had a value of 1 (numeric) and row 10001 a value of 'a'. The resulting SAS variable became character with a length of 1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 01:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633131#M187802</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-19T01:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633186#M187817</link>
      <description>&lt;P&gt;I used the usual "get rid of Excel woes" method:&lt;/P&gt;
&lt;P&gt;I saved the file from Excel to a csv and copied it unto our server, then ran this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
infile '$HOME/sascommunity/Exemple.csv' truncover firstobs=2;
input stringval $20.;
stringval = translate(stringval,'.',',');
if stringval not in ('','NC*') then numval = input(stringval,percent20.);
format numval nlpct7.2;
run;

proc print data=test noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Partial result:&lt;/P&gt;
&lt;PRE&gt;stringval     numval

 6.66%         6,66%
 0.67%         0,67%
 -6.00%       -6,00%
 7.2311%       7,23%
 8.80%         8,80%
               .    
 2.60%         2,60%
 1.20%         1,20%
 NC*           .    
 0.80%         0,80%
 NC*           .    
 NC*           .    
 0.34%         0,34%
 0.97%         0,97%
 0.80%         0,80%
 0.80%         0,80%
 NC*           .    
 0.65%         0,65%
 NC*           .    
 NC*           .    
 0.64%         0,64%
 NC*           .    
 NC*           .    
 NC*           .    
 NC*           .    
 1.00%         1,00%
 NC*           .    
 0.72%         0,72%
 1.00%         1,00%
 0.52%         0,52%
 0.83%         0,83%
 0.52%         0,52%
 0.98%         0,98%
 NC*           .    
 NC*           .    
 NC*           .    
 NC*           .    
 0.65%         0,65%
 0.04%         0,04%
 NC*           .    
 NC*           .    
 0.50%         0,50%
 NC*           .    
 0.56%         0,56%
 NC*           .    
 0.69%         0,69%
 0.60%         0,60%
 0.60%         0,60%
 0.60%         0,60%
 0.75%         0,75%
 0.75%         0,75%
 NC*           .    
 1.15%         1,15%
 NC*           .    
 NC*           .    
&lt;/PRE&gt;
&lt;P&gt;Bottom line: Excel files are useless for data transfer, textuality rules, as it allows you to easily make corrections.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 09:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633186#M187817</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-19T09:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import character values vs numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633248#M187840</link>
      <description>&lt;P&gt;Using Proc Import with SAS9.4M5 under Rhel I can replicate what you describe. Here what I'm getting as a result (in a character column)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 199px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37035iF9D198D615FFD161/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This looks like SAS reads at least for some of the cells the "raw" values from the sheet1.xml which doesn't appear to be the correct behaviour (even though your Excel data is especially ugly).&lt;/P&gt;
&lt;PRE&gt;    &amp;lt;row r="2" spans="1:1" x14ac:dyDescent="0.25"&amp;gt;
      &amp;lt;c r="A2" s="3"&amp;gt;
        &amp;lt;v&amp;gt;6.6600000000000006E-2&amp;lt;/v&amp;gt;
      &amp;lt;/c&amp;gt;
    &amp;lt;/row&amp;gt;
    &amp;lt;row r="3" spans="1:1" x14ac:dyDescent="0.25"&amp;gt;
      &amp;lt;c r="A3" s="3"&amp;gt;
        &amp;lt;v&amp;gt;6.6600000000000001E-3&amp;lt;/v&amp;gt;
      &amp;lt;/c&amp;gt;
    &amp;lt;/row&amp;gt;
    &amp;lt;row r="4" spans="1:1" x14ac:dyDescent="0.25"&amp;gt;
      &amp;lt;c r="A4" s="3"&amp;gt;
        &amp;lt;v&amp;gt;-0.06&amp;lt;/v&amp;gt;
      &amp;lt;/c&amp;gt;
    &amp;lt;/row&amp;gt;
    &amp;lt;row r="5" spans="1:1" x14ac:dyDescent="0.25"&amp;gt;
      &amp;lt;c r="A5" s="4"&amp;gt;
        &amp;lt;v&amp;gt;7.2311110999999997E-2&amp;lt;/v&amp;gt;
      &amp;lt;/c&amp;gt;
    &amp;lt;/row&amp;gt;
    &amp;lt;row r="6" spans="1:1" x14ac:dyDescent="0.25"&amp;gt;
      &amp;lt;c r="A6" s="3" t="s"&amp;gt;
        &amp;lt;v&amp;gt;27&amp;lt;/v&amp;gt;
      &amp;lt;/c&amp;gt;
    &amp;lt;/row&amp;gt;&lt;/PRE&gt;
&lt;P&gt;If I use the SAS EG8.2 import wizard then the result looks better. Still strings of course but at least wysiwig and something you can post-process without having to know how Excel stores values internally.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 69px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37037iC5FFE8A922BB51C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What Proc Import does to your Excel data is may-be something you should raise with SAS Technical Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 12:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-character-values-vs-numeric-values/m-p/633248#M187840</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-19T12:44:03Z</dc:date>
    </item>
  </channel>
</rss>

