<?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: Prevent scientific notation being converted to numeric in proc import CSV in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prevent-scientific-notation-being-converted-to-numeric-in-proc/m-p/593602#M170382</link>
    <description>&lt;P&gt;Whenever importing data gets complicated (read: ALWAYS), do not use proc import, but write your own data step. In that, you can read this column into a temporary character variable, check for the notation, and then either convert to the final numeric variable (if no scientific notation) or set a flag.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2019 05:56:54 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-10-03T05:56:54Z</dc:date>
    <item>
      <title>Prevent scientific notation being converted to numeric in proc import CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prevent-scientific-notation-being-converted-to-numeric-in-proc/m-p/593600#M170380</link>
      <description>&lt;P&gt;I used proc import to import data from csv file.&amp;nbsp; For some long numeric columns ( for ex, 456789123), csv shows scientific notation(for ex, 4.20E+8).&amp;nbsp; So when SAS reads in CSV, it is converted to 400000000 (instead of the original, correct number = 456789123).&amp;nbsp; I want to add a data quality checking step to alert myself that CSV actually is a scientific notation.&amp;nbsp; How can I have SAS show that column as&amp;nbsp;4.20E+8 (that way, I will be able to pop up an error message for myself)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile = "inputfile.csv"&lt;BR /&gt;out = outds&lt;BR /&gt;dbms = csv replace;&lt;BR /&gt;getnames = YES;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 05:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prevent-scientific-notation-being-converted-to-numeric-in-proc/m-p/593600#M170380</guid>
      <dc:creator>pjy1006</dc:creator>
      <dc:date>2019-10-03T05:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent scientific notation being converted to numeric in proc import CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prevent-scientific-notation-being-converted-to-numeric-in-proc/m-p/593602#M170382</link>
      <description>&lt;P&gt;Whenever importing data gets complicated (read: ALWAYS), do not use proc import, but write your own data step. In that, you can read this column into a temporary character variable, check for the notation, and then either convert to the final numeric variable (if no scientific notation) or set a flag.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 05:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prevent-scientific-notation-being-converted-to-numeric-in-proc/m-p/593602#M170382</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-03T05:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent scientific notation being converted to numeric in proc import CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prevent-scientific-notation-being-converted-to-numeric-in-proc/m-p/593611#M170389</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;do not use proc import, but write your own data step"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You've said a mouthful!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 06:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prevent-scientific-notation-being-converted-to-numeric-in-proc/m-p/593611#M170389</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-03T06:38:08Z</dc:date>
    </item>
  </channel>
</rss>

