<?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 How to delete observation with invalid date (shown as asterisks)? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/476607#M122662</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large dataset with one or few observations that has date shown as asterisks (as in the attached image). I wonder how should I remove them? The date format is YYMMDD8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read this thread,&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Why-are-my-dates-showing-up-as-asterisks/td-p/327219" target="_blank"&gt;Why are my dates showing up as asterisks?&lt;/A&gt;, which recommend transforming date into Excel date format before importing. But my dataset is too large for Excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Based on suggestions of answerers, I print out the date with BEST32 and it shows following results. Apparently it is way too large for date, so I managed to remove them by setting a threshold.&amp;nbsp;It's not a good idea to "hard code" a range because I have no idea on future ranges, so I'm still open to any other solutions available.&amp;nbsp;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21723i1329B9D2AAC76359/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 17:34:32 GMT</pubDate>
    <dc:creator>mssun</dc:creator>
    <dc:date>2018-07-11T17:34:32Z</dc:date>
    <item>
      <title>How to delete observation with invalid date (shown as asterisks)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/476607#M122662</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large dataset with one or few observations that has date shown as asterisks (as in the attached image). I wonder how should I remove them? The date format is YYMMDD8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read this thread,&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Why-are-my-dates-showing-up-as-asterisks/td-p/327219" target="_blank"&gt;Why are my dates showing up as asterisks?&lt;/A&gt;, which recommend transforming date into Excel date format before importing. But my dataset is too large for Excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Based on suggestions of answerers, I print out the date with BEST32 and it shows following results. Apparently it is way too large for date, so I managed to remove them by setting a threshold.&amp;nbsp;It's not a good idea to "hard code" a range because I have no idea on future ranges, so I'm still open to any other solutions available.&amp;nbsp;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21723i1329B9D2AAC76359/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 17:34:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/476607#M122662</guid>
      <dc:creator>mssun</dc:creator>
      <dc:date>2018-07-11T17:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete observation with invalid date (shown as asterisks)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/476615#M122666</link>
      <description>&lt;P&gt;Almost certainly .....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The asterisks are showing up because the values for these variables are too large.&amp;nbsp; The values won't fit into the YYMMDD8. format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't tell from this vantage point what is actually in these variables or how it got there.&amp;nbsp; Can only tell that it's bad data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you switch the format to something wider, you might be able to get an idea of what is there.&amp;nbsp; You could try a format like date10. or yymmdd11.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you would only discover what the values actually look like and might not solve the riddle of how the bad data got there.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 21:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/476615#M122666</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-09T21:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete observation with invalid date (shown as asterisks)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/476621#M122672</link>
      <description>&lt;P&gt;Can you print those values with a best32. format and show us the result?&lt;/P&gt;
&lt;P&gt;Or change the format temporarily in the table and show use what a best32 reveals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 21:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/476621#M122672</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-09T21:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete observation with invalid date (shown as asterisks)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/477177#M122849</link>
      <description>Yes, it seems to be the problem. Probably need to specify wider format when importing the data. Thank you for answering!</description>
      <pubDate>Wed, 11 Jul 2018 17:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/477177#M122849</guid>
      <dc:creator>mssun</dc:creator>
      <dc:date>2018-07-11T17:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete observation with invalid date (shown as asterisks)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/477180#M122851</link>
      <description>Thank you! I did identify the problem by print BEST32. format. Removed them manually afterwards.</description>
      <pubDate>Wed, 11 Jul 2018 17:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observation-with-invalid-date-shown-as-asterisks/m-p/477180#M122851</guid>
      <dc:creator>mssun</dc:creator>
      <dc:date>2018-07-11T17:50:17Z</dc:date>
    </item>
  </channel>
</rss>

