<?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: importing data from a csv, null field in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/importing-data-from-a-csv-null-field/m-p/303774#M64584</link>
    <description>&lt;P&gt;Didn't think of that, thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2016 13:25:52 GMT</pubDate>
    <dc:creator>Crysis85</dc:creator>
    <dc:date>2016-10-11T13:25:52Z</dc:date>
    <item>
      <title>importing data from a csv, null field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data-from-a-csv-null-field/m-p/303770#M64582</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So, I have to import data from a csv file in pretty good shape to a new SAS table.&lt;/P&gt;&lt;P&gt;In a data step I set up INFORMATs FORMATs and the INPUT statement. The file is imported correctly the only problem is that instead of just missing values (as in ,,) some field have ,null, as a value between separators. That particular variable will be numeric so when on that value I give a numeric INFORMAT (like BEST2. since there are 2 digits numbers where there isn't null) the log shout at me "invalid data".&lt;/P&gt;&lt;P&gt;Take notice that the resulting table is correct, in that particular field I have, as I should, the period.&lt;/P&gt;&lt;P&gt;How can I resolve the warnings?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 13:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data-from-a-csv-null-field/m-p/303770#M64582</guid>
      <dc:creator>Crysis85</dc:creator>
      <dc:date>2016-10-11T13:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from a csv, null field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data-from-a-csv-null-field/m-p/303772#M64583</link>
      <description>&lt;P&gt;You could create a custom format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format library=work;
invalue testfmt
 'null' = .
  other=best.
;
run;

data test;
input x1 testfmt.;
cards;
null
1
2
0
.
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Oct 2016 13:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data-from-a-csv-null-field/m-p/303772#M64583</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-11T13:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from a csv, null field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data-from-a-csv-null-field/m-p/303774#M64584</link>
      <description>&lt;P&gt;Didn't think of that, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 13:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data-from-a-csv-null-field/m-p/303774#M64584</guid>
      <dc:creator>Crysis85</dc:creator>
      <dc:date>2016-10-11T13:25:52Z</dc:date>
    </item>
  </channel>
</rss>

