<?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: Ignore Errors In Enterprise Guide in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/773838#M39722</link>
    <description>&lt;P&gt;You &lt;STRONG&gt;NEVER&lt;/STRONG&gt; ignore ERRORs or WARNINGs, you correct them.&lt;/P&gt;
&lt;P&gt;With CSV files, write the data step yourself instead of relying on the guesses of PROC IMPORT.&lt;/P&gt;
&lt;P&gt;As a starter, copy the code created by IMPORT from the log and modify it.&lt;/P&gt;
&lt;P&gt;Look what is in the file that causes the issues, and provide for it in the code. It might also be that you detect genuine faulty data that needs to be reported to the source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For detailed help, provide an example of the csv file, including the header, "clean" data and a line that causes the ERROR.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 06:55:34 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-10-13T06:55:34Z</dc:date>
    <item>
      <title>Ignore Errors In Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/773833#M39721</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I'm using &lt;STRONG&gt;PROC IMPORT CSV&lt;/STRONG&gt; with &lt;STRONG&gt;Guessing Rows = MAX&lt;/STRONG&gt; to read a CSV File in &lt;STRONG&gt;Enterprise Guide.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. I have 2 DateTime columns which has some issues. After execution is done, the &lt;STRONG&gt;dataset is being created&lt;/STRONG&gt;, but I get &lt;STRONG&gt;error message.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. Ideally, I would like to make the system &lt;STRONG&gt;to ignore the error message. I'm accepting the fact that some of the rows will be with missing data.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4. Details Below:&lt;/P&gt;&lt;P&gt;4.1. Code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielDor_0-1634104327397.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64638i9D7151CFA7EF6DE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielDor_0-1634104327397.png" alt="DanielDor_0-1634104327397.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4.2. Error Message (rows created BUT error message with import unsuccessful):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielDor_1-1634104393424.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64639iC24E4E9232B2889C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielDor_1-1634104393424.png" alt="DanielDor_1-1634104393424.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4.3 Results in Guide:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielDor_2-1634104472425.png" style="width: 211px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64640iC042EE196C30C5C9/image-dimensions/211x106?v=v2" width="211" height="106" role="button" title="DanielDor_2-1634104472425.png" alt="DanielDor_2-1634104472425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Could you please assist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 05:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/773833#M39721</guid>
      <dc:creator>DanielDor</dc:creator>
      <dc:date>2021-10-13T05:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore Errors In Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/773838#M39722</link>
      <description>&lt;P&gt;You &lt;STRONG&gt;NEVER&lt;/STRONG&gt; ignore ERRORs or WARNINGs, you correct them.&lt;/P&gt;
&lt;P&gt;With CSV files, write the data step yourself instead of relying on the guesses of PROC IMPORT.&lt;/P&gt;
&lt;P&gt;As a starter, copy the code created by IMPORT from the log and modify it.&lt;/P&gt;
&lt;P&gt;Look what is in the file that causes the issues, and provide for it in the code. It might also be that you detect genuine faulty data that needs to be reported to the source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For detailed help, provide an example of the csv file, including the header, "clean" data and a line that causes the ERROR.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 06:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/773838#M39722</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-13T06:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore Errors In Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/773939#M39728</link>
      <description>&lt;P&gt;Show the entire LOG of anything generating errors. From the log copy the text of the code along with any notes, messages, warnings or errors. On the forum open a text box using the &amp;lt;/&amp;gt; above the message window. PASTE the text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is much easier to make suggestions to code if we can copy and edit text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You show nothing related to any specific variables, datetime or otherwise. So why are you referencing them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have invalid data in the column for them I would expect to see different output in the log, such as INVALID data notes. Generally that means your data has values that are not valid datetime (or date or time) values but would not result in the type of error you show.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 14:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/773939#M39728</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-13T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore Errors In Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/773943#M39729</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Thanks to your advise, this was solved! This is the process i've done:&lt;BR /&gt;1. I've ran proc IMPORT CSV --&amp;gt; Got Error&lt;BR /&gt;2. I've copied the Data Step from the log&lt;BR /&gt;3. I've changed all the problematic fields to be characters&lt;BR /&gt;4. I've ran the data step to successfuly create a SAS Dataset&lt;BR /&gt;5. I've then did some modification to the problematic columns with compress function&lt;/P&gt;&lt;P&gt;Your help is much appreciated!&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 14:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/773943#M39729</guid>
      <dc:creator>DanielDor</dc:creator>
      <dc:date>2021-10-13T14:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore Errors In Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/774013#M39731</link>
      <description>&lt;P&gt;If you have columns in there that contain dates, times, datetimes or any other kind of numeric data, then do not read them as character, or only read them as character if the conversion to numeric takes more action than a custom informat can do.&lt;/P&gt;
&lt;P&gt;You can't use character variables in calculations.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 18:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ignore-Errors-In-Enterprise-Guide/m-p/774013#M39731</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-13T18:39:09Z</dc:date>
    </item>
  </channel>
</rss>

