<?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 proc import csv files with NaN in data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-csv-files-with-NaN-in-data/m-p/45133#M11879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If NaN are simply characters that are in some fields that are otherwise numeric, I think your easiest solution would be to grab the code that proc import creates and simply modify it so that you are reading the field(s) as characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I nice artice on that topic can be found at: &lt;A href="http://www2.sas.com/proceedings/sugi30/038-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/038-30.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The article contains step-by-step instructions for accomplishing such a task.&amp;nbsp; That will also get rid of the notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 05:34:42 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-08-09T05:34:42Z</dc:date>
    <item>
      <title>proc import csv files with NaN in data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-csv-files-with-NaN-in-data/m-p/45132#M11878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to import a csv data set using proc import. My csv file contains numbers and some NaNs. &lt;/P&gt;&lt;P&gt;However whenever there is a NaN in the first column of a row, SAS will issue a NOTE and write it as a missing value ' . '.&lt;/P&gt;&lt;P&gt;In this case, only the NaN in the first column are read as ' . ' and the rest NaN are NaN in the SAS output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if there is way to have all NaN from the original file displayed uniformly as NaN or ' . '? Perhaps also have proc import stopping issue NOTE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate your help and comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Mona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 05:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-csv-files-with-NaN-in-data/m-p/45132#M11878</guid>
      <dc:creator>mona</dc:creator>
      <dc:date>2011-08-09T05:12:52Z</dc:date>
    </item>
    <item>
      <title>proc import csv files with NaN in data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-csv-files-with-NaN-in-data/m-p/45133#M11879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If NaN are simply characters that are in some fields that are otherwise numeric, I think your easiest solution would be to grab the code that proc import creates and simply modify it so that you are reading the field(s) as characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I nice artice on that topic can be found at: &lt;A href="http://www2.sas.com/proceedings/sugi30/038-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/038-30.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The article contains step-by-step instructions for accomplishing such a task.&amp;nbsp; That will also get rid of the notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 05:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-csv-files-with-NaN-in-data/m-p/45133#M11879</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-09T05:34:42Z</dc:date>
    </item>
  </channel>
</rss>

