<?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 Issue with Date format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42158#M10922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you haven't used it, you might want to look at: &lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;GUESSINGROWS&lt;/SPAN&gt;=&lt;SPAN class="userSuppliedSyntaxValue"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/63079/HTML/default/p13kvtl8ezj13in17i6m99jypcwi.htm#n1wksd7ruh3anxn1kc8x9yi20vzt" title="Description of syntax: n"&gt;n&lt;/A&gt;&lt;/SPAN&gt;; &lt;/P&gt;&lt;P&gt;statement. You might have some data quality issues in first rows of data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2012 19:39:15 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2012-01-31T19:39:15Z</dc:date>
    <item>
      <title>Issue with Date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42157#M10921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my data resides in an Oracle DB. I extract data from the DB in csv format. For the date field I use &lt;/P&gt;&lt;P&gt;to_char(BIRTH_DT,'DD-MON-YYYY') to get the date. I then import the csv file into SAS using Proc Import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I extract two sets of data from the ORACLE DB - both different due to other constraints. The BIRTH_DT field is common in both the sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I import one set of data, SAS reads it is a DATE. For the other other set it reads it as DATETIME. I do not understand why the same column is being interpreted by SAS in different ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be deeply appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 18:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42157#M10921</guid>
      <dc:creator>rajvaidya</dc:creator>
      <dc:date>2012-01-31T18:38:41Z</dc:date>
    </item>
    <item>
      <title>Issue with Date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42158#M10922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you haven't used it, you might want to look at: &lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;GUESSINGROWS&lt;/SPAN&gt;=&lt;SPAN class="userSuppliedSyntaxValue"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/63079/HTML/default/p13kvtl8ezj13in17i6m99jypcwi.htm#n1wksd7ruh3anxn1kc8x9yi20vzt" title="Description of syntax: n"&gt;n&lt;/A&gt;&lt;/SPAN&gt;; &lt;/P&gt;&lt;P&gt;statement. You might have some data quality issues in first rows of data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 19:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42158#M10922</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-01-31T19:39:15Z</dc:date>
    </item>
    <item>
      <title>Issue with Date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42159#M10923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If I know I'm going to be reading the same layout file multiple times I usually take the data step code generated by PROC IMPORT and modify it to reduce such suprises. That way I control any informats, lengths of string variables,&lt;/P&gt;&lt;P&gt;variable names, labels and such.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 23:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42159#M10923</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-01-31T23:55:35Z</dc:date>
    </item>
    <item>
      <title>Issue with Date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42160#M10924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured the issue. In one case all the rows had values for BIRTH_DT, in other data set 10th row was blank. I do not want to discard that row of data since there are other information in the table i would like to use. Do you know if guessingrows will work in such scenario? going to try it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 07:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42160#M10924</guid>
      <dc:creator>rajvaidya</dc:creator>
      <dc:date>2012-02-01T07:02:12Z</dc:date>
    </item>
    <item>
      <title>Issue with Date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42161#M10925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did use the same proc import code for reading both the data files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 07:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-with-Date-format/m-p/42161#M10925</guid>
      <dc:creator>rajvaidya</dc:creator>
      <dc:date>2012-02-01T07:02:47Z</dc:date>
    </item>
  </channel>
</rss>

