<?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: File mapping to table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/File-mapping-to-table/m-p/386539#M92592</link>
    <description>&lt;P&gt;Your log message is:&lt;/P&gt;
&lt;PRE&gt;Invalid data for DT_ECH_LAST in line 287 151-158.&lt;/PRE&gt;
&lt;P&gt;it means that somewhere in your reading file program, you have a line like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;input ...  151-158 DT_ECH_LAST ...&lt;/PRE&gt;
&lt;P&gt;if you don't need this variable you can skip reading it, than you shall not get the warning message at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About your question (1) - you can manage how many warnings will be displayed in log by OPTIONS ERRORS=.&lt;/P&gt;
&lt;P&gt;When count exeeds the option given, there will be no more warnings except an ERROR message at the end of the data step&lt;/P&gt;
&lt;P&gt;log, but it is still treated as a warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I warmly suugest to use&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;advise and correct your program to deal with missing value or other failure of data.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 10:18:09 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2017-08-09T10:18:09Z</dc:date>
    <item>
      <title>File mapping to table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-mapping-to-table/m-p/386527#M92588</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I theorically map a file to a SAS table but usually some data are not matching as it should.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;NOTE: Invalid data for DT_ECH_LAST in line 287 151-158.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not so much important as I just need a part of the data in the following, and the part I need matches correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i still get a warning about it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;WARNING: Limit set by ERRORS= option reached. &amp;nbsp;Further errors of this type will not be printed.&lt;/PRE&gt;&lt;P&gt;I want to avoid two things:&lt;/P&gt;&lt;P&gt;1/ I read on Internet that if the number of non-matching data is superior to 50, the warning becomes an error. Is it true? How can I avoid it?&lt;/P&gt;&lt;P&gt;2/ I don't want the program to display the warning of this type, because in my program, it's kind of normal and it's not a warning. Can I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-mapping-to-table/m-p/386527#M92588</guid>
      <dc:creator>FP12</dc:creator>
      <dc:date>2017-08-09T09:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: File mapping to table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-mapping-to-table/m-p/386531#M92589</link>
      <description>&lt;P&gt;These warnings are NOT "normal". Tolerating such warnings is just a sign of sloppy/lazy programming. See my Maxims 22 &amp;amp; 25.&lt;/P&gt;
&lt;P&gt;Read those values into character variables, and then do a conversion to numeric in a controlled way, selectively recognizing "valid missing" values.&lt;/P&gt;
&lt;P&gt;That way you will be informed if you get unexpected data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more in-depth help, post your import code and some of the incriminating lines from the input file.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-mapping-to-table/m-p/386531#M92589</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-09T09:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: File mapping to table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-mapping-to-table/m-p/386533#M92590</link>
      <description>&lt;P&gt;Thanks Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case I prefer to extract only the useful part from my file. Like this, no more non-matching issue and no more warning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I know it's a bit lazy way of doing it, but why doing more? &amp;nbsp;^^&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-mapping-to-table/m-p/386533#M92590</guid>
      <dc:creator>FP12</dc:creator>
      <dc:date>2017-08-09T09:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: File mapping to table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-mapping-to-table/m-p/386539#M92592</link>
      <description>&lt;P&gt;Your log message is:&lt;/P&gt;
&lt;PRE&gt;Invalid data for DT_ECH_LAST in line 287 151-158.&lt;/PRE&gt;
&lt;P&gt;it means that somewhere in your reading file program, you have a line like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;input ...  151-158 DT_ECH_LAST ...&lt;/PRE&gt;
&lt;P&gt;if you don't need this variable you can skip reading it, than you shall not get the warning message at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About your question (1) - you can manage how many warnings will be displayed in log by OPTIONS ERRORS=.&lt;/P&gt;
&lt;P&gt;When count exeeds the option given, there will be no more warnings except an ERROR message at the end of the data step&lt;/P&gt;
&lt;P&gt;log, but it is still treated as a warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I warmly suugest to use&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;advise and correct your program to deal with missing value or other failure of data.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 10:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-mapping-to-table/m-p/386539#M92592</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-09T10:18:09Z</dc:date>
    </item>
  </channel>
</rss>

