<?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 Trapping bad data from EXCEL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trapping-bad-data-from-EXCEL/m-p/66244#M14389</link>
    <description>We have a batch process that imports a large number of EXCEL workbooks.&lt;BR /&gt;
Sometimes a field which ought to be numeric contains character data.&lt;BR /&gt;
This error stops the entire process.&lt;BR /&gt;
We would like to be able to note/trap the error and continue importing the rest of the workbooks.&lt;BR /&gt;
&lt;BR /&gt;
How can we achieve this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance</description>
    <pubDate>Tue, 09 Mar 2010 17:29:32 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-03-09T17:29:32Z</dc:date>
    <item>
      <title>Trapping bad data from EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trapping-bad-data-from-EXCEL/m-p/66244#M14389</link>
      <description>We have a batch process that imports a large number of EXCEL workbooks.&lt;BR /&gt;
Sometimes a field which ought to be numeric contains character data.&lt;BR /&gt;
This error stops the entire process.&lt;BR /&gt;
We would like to be able to note/trap the error and continue importing the rest of the workbooks.&lt;BR /&gt;
&lt;BR /&gt;
How can we achieve this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance</description>
      <pubDate>Tue, 09 Mar 2010 17:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trapping-bad-data-from-EXCEL/m-p/66244#M14389</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-09T17:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trapping bad data from EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trapping-bad-data-from-EXCEL/m-p/66245#M14390</link>
      <description>Are you using SAS PROC IMPORT or are you using some DATA step or another technique to "import" your data to SAS?  You can always use INFILE/INPUT processing, input the field as CHARACTER, test it using an ANYxxxxx type function and execute accordingly as you prescribe in your program.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 09 Mar 2010 18:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trapping-bad-data-from-EXCEL/m-p/66245#M14390</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-09T18:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trapping bad data from EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trapping-bad-data-from-EXCEL/m-p/66246#M14391</link>
      <description>As Scott says, the usual way to do this is to &lt;BR /&gt;
- read values into temp character variables, &lt;BR /&gt;
- test the validity of the values, &lt;BR /&gt;
- convert to numeric and drop temp character variables,&lt;BR /&gt;
- save.</description>
      <pubDate>Tue, 09 Mar 2010 21:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trapping-bad-data-from-EXCEL/m-p/66246#M14391</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2010-03-09T21:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trapping bad data from EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trapping-bad-data-from-EXCEL/m-p/66247#M14392</link>
      <description>You need to code error handling routines to trap and reset error codes to let your process continue.  I found several papers that my help you  for instance &lt;BR /&gt;
&lt;A href="http://www.nesug.org/proceedings/nesug05/ap/ap9.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug05/ap/ap9.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Google "error handling sas"</description>
      <pubDate>Wed, 10 Mar 2010 13:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trapping-bad-data-from-EXCEL/m-p/66247#M14392</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-03-10T13:05:58Z</dc:date>
    </item>
  </channel>
</rss>

