<?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: Problem in loading the SAS date to Oracle table column in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13254#M1898</link>
    <description>For the benefit of others, specifically, what was it that "worked" to solve your condition?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Fri, 06 Nov 2009 13:11:21 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-11-06T13:11:21Z</dc:date>
    <item>
      <title>Problem in loading the SAS date to Oracle table column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13250#M1894</link>
      <description>Hi,&lt;BR /&gt;
I have a requirement where i need to insert todays date from a dataset variable into the oracle table column(Date type). For inserting todays date into the sas dataset column, i am using today() function.&lt;BR /&gt;
Consider a example:&lt;BR /&gt;
&lt;BR /&gt;
data SAS.DATA_DATE;&lt;BR /&gt;
load_date=today();&lt;BR /&gt;
format load_date mmddyy10.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
consider a table is already present in the oracle having a column load_date (DATE type).&lt;BR /&gt;
&lt;BR /&gt;
Now i am inserting todays date using the following:&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
insert into Oracle.DATE (load_date) select (load_date) from SAS.DATA_DATE;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
This is running fine but the load_date in oracle table is showing 1/1/1960 instead to todays date. Please help.</description>
      <pubDate>Fri, 06 Nov 2009 07:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13250#M1894</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-11-06T07:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading the SAS date to Oracle table column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13251#M1895</link>
      <description>Search the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website - here is a Google advanced search argument to use:&lt;BR /&gt;
&lt;BR /&gt;
date oracle table site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
You want to check the validity of your SAS variable containing the date - a value of 1/1/1960 indicates a SAS numeric internal value of zero rather than the current date which is the number of days since 1/1/1960.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Working with Dates in the SAS System&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm&lt;/A&gt;</description>
      <pubDate>Fri, 06 Nov 2009 09:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13251#M1895</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-11-06T09:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading the SAS date to Oracle table column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13252#M1896</link>
      <description>This may apply to your problem:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/61890/HTML/default/a001371624.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/61890/HTML/default/a001371624.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 06 Nov 2009 09:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13252#M1896</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-11-06T09:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading the SAS date to Oracle table column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13253#M1897</link>
      <description>Thanks Scott and Linus. It worked.&lt;BR /&gt;
&lt;BR /&gt;
You are great!!</description>
      <pubDate>Fri, 06 Nov 2009 10:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13253#M1897</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-11-06T10:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading the SAS date to Oracle table column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13254#M1898</link>
      <description>For the benefit of others, specifically, what was it that "worked" to solve your condition?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 06 Nov 2009 13:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13254#M1898</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-11-06T13:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading the SAS date to Oracle table column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13255#M1899</link>
      <description>SASDATEFMT=(DBMS-date-col-1='SAS-date-format' &lt;BR /&gt;
&amp;lt;... DBMS-date-col-n='SAS-date-format'&amp;gt;)&lt;BR /&gt;
&lt;BR /&gt;
It is used if the SAS column date format does not match the date format of the corresponding DBMS column, convert the SAS date values to the appropriate DBMS date values&lt;BR /&gt;
&lt;BR /&gt;
This option helped me getting the data in correct format in oracle table.&lt;BR /&gt;
&lt;BR /&gt;
More examples of its usage are mentioned at &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/61890/HTML/default/a001371624.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/61890/HTML/default/a001371624.htm&lt;/A&gt;.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Please let me know in need more clarification.</description>
      <pubDate>Fri, 06 Nov 2009 13:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-in-loading-the-SAS-date-to-Oracle-table-column/m-p/13255#M1899</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-11-06T13:28:42Z</dc:date>
    </item>
  </channel>
</rss>

