<?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: How to convert 01/01/00 to reg date ? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196339#M49097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;It appears that Table B has a datetime variable, try using dtdate9. format and see how it appears.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;proc sql;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;create Table audit as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;select&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A.id,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;a.owner,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;b.active2,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;b.date format=dtdate9.,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;c.active1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from table a, table b, table c&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where a.id = b.id&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and a.id=c.id&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 18:45:40 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-03-06T18:45:40Z</dc:date>
    <item>
      <title>How to convert 01/01/00 to reg date ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196334#M49092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi I have a date time field&amp;nbsp; which I do a date part to convert it to date it works but when I try to join it to another table an bring in the converted date it changes to&amp;nbsp; 01/01/00 on all the dates .... How can I keep date being date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 16:42:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196334#M49092</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-03-06T16:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 01/01/00 to reg date ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196335#M49093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your code, at a guess the variables format is still date/time even though you only put a date in it.&amp;nbsp; &lt;/P&gt;&lt;P&gt;data example_date;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format new_date date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_date=datepart(old_date);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 16:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196335#M49093</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-03-06T16:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 01/01/00 to reg date ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196336#M49094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TThanks for responding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code&lt;/P&gt;&lt;P&gt;data table;&lt;/P&gt;&lt;P&gt;set table(keep =active acctnumber flm slm datetime state city zip);&lt;/P&gt;&lt;P&gt;format date date9.;&lt;/P&gt;&lt;P&gt;date= datepart (date time);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;it works I get my date only but when i try to join to another table it converts to 01/01/00 the table is coming from a sql table don't know if that makes. Difference one more thing I sort my original table after I did the datepart an it change it to 01/01/00 one the on the original table thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 17:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196336#M49094</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-03-06T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 01/01/00 to reg date ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196337#M49095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually SQL stores dates as date time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to show your code - the merge that's causing the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 17:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196337#M49095</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-06T17:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 01/01/00 to reg date ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196338#M49096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THe table looks like this &lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create Table audit as&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;A.id,&lt;/P&gt;&lt;P&gt;a.owner,&lt;/P&gt;&lt;P&gt;b.active2,&lt;/P&gt;&lt;P&gt;b.date,&lt;/P&gt;&lt;P&gt;c.active1&lt;/P&gt;&lt;P&gt;from table a, table b, table c&lt;/P&gt;&lt;P&gt;where a.id = b.id&lt;/P&gt;&lt;P&gt;and a.id=c.id&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 18:40:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196338#M49096</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-03-06T18:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 01/01/00 to reg date ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196339#M49097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;It appears that Table B has a datetime variable, try using dtdate9. format and see how it appears.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;proc sql;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;create Table audit as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;select&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A.id,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;a.owner,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;b.active2,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;b.date format=dtdate9.,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;c.active1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from table a, table b, table c&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where a.id = b.id&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and a.id=c.id&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 18:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196339#M49097</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-06T18:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 01/01/00 to reg date ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196340#M49098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It change date to 31dec1959 to all of them &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 19:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196340#M49098</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-03-06T19:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 01/01/00 to reg date ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196341#M49099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Thought I could be slick an convert date to character an than join table dive I just need to match another character date an even after I change it to date character it still change format to 01/01/00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 20:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196341#M49099</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-03-06T20:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 01/01/00 to reg date ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196342#M49100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Think I found the error&amp;nbsp; in mytable&amp;nbsp; I have a date time field but when I enter no value in it this date 01/01/00 stored automatically into it &lt;/P&gt;&lt;P&gt;i want to keep the field null where there is no value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i notice that my issue is the same. The col has more blanks than entries since it's the date of deinstalled&amp;nbsp; an where there is no date it defaults to 0/01/00 I would like to have it empty or null &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 20:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-convert-01-01-00-to-reg-date/m-p/196342#M49100</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-03-06T20:49:09Z</dc:date>
    </item>
  </channel>
</rss>

