<?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: Date come from Oracle to change format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397379#M96040</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/165260"&gt;@azertyuiop&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The code you've posted...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table table_exit as
select mytable.textfield , mytable.format = datetime. as new_date
from mydb.mytable ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;....doesn't look syntactically right to me. Could you run this without errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general: The SAS/Access engine will convert an Oracle DATE field to the approapriate SAS variable type and assign it an appropriate SAS DateTime format (for display). You shouldn't have to code for this explicitely unless you want to change the default behaviour.&lt;/P&gt;
&lt;P&gt;If your Oracle field isn't DATE then don't expect SAS to convert the value automatically into a SAS DateTime value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at your code: Is there really an Oracle column with name &lt;EM&gt;format&lt;/EM&gt; which is of type DATE? I dare to doubt this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please explain what Oracle fields you have, which Type the are of (DATE, VARCHAR2, ....) and what you'd like to get on the SAS side for these fields.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 10:33:38 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-09-20T10:33:38Z</dc:date>
    <item>
      <title>Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397352#M96032</link>
      <description>&lt;P&gt;Hello / Good Morning ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use data which come from&amp;nbsp; ORACLE data base . The problem&amp;nbsp;is the print format in the screen ...&amp;nbsp;I can see&amp;nbsp;" [I][B][COLOR="#FF0000"]*[/COLOR][/B][/I] " or " [I][B][COLOR="#FF0000"]*******[/COLOR][/B][/I] " or&amp;nbsp;again&amp;nbsp;" [I][B][COLOR="#FF0000"].[/COLOR][/B][/I] " by moment the date format is alway in digit even if there is this&amp;nbsp;function &amp;nbsp;" [I][B][COLOR="#FF0000"]format=[/COLOR][/B][/I] "&amp;nbsp;or " [I][B][COLOR="#FF0000"]informat=[/COLOR][/B][/I] " .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example in my table in ORACLE prints in SAS this digit " 1820361600 " &lt;SPAN&gt;instead of&lt;/SPAN&gt;&amp;nbsp;" september 7, 2017 " .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[CODE="SAS"]libname mydb meta library="database oracle johndoe";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create table table_exit as&lt;/P&gt;&lt;P&gt;select mytable.textfield , mytable.format = datetime. as new_date&lt;BR /&gt;from mydb.mytable ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;[/CODE]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This function &amp;nbsp;" [I][B][COLOR="#FF0000"]matable.format = datetime. as new_date&amp;nbsp; [/COLOR][/B][/I] " is the only case where&amp;nbsp;" [I][B][COLOR="#FF0000"] datetime. [/COLOR][/B][/I] " prints a date like this&amp;nbsp;" 07SEP1700:00:00 " . If I use those functions&amp;nbsp; YYMMDDw. , YYMMDD10. ,&amp;nbsp; date9. ,&amp;nbsp; datew. ... I can see a digit&amp;nbsp;" 1820361600 " or a dot or several stars. If I use&amp;nbsp;SQL&amp;nbsp;functions like month() ; day() , year() , datepart() the query is in error ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which instruction I must use to obtain the true date format ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397352#M96032</guid>
      <dc:creator>azertyuiop</dc:creator>
      <dc:date>2017-09-20T08:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397379#M96040</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/165260"&gt;@azertyuiop&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The code you've posted...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table table_exit as
select mytable.textfield , mytable.format = datetime. as new_date
from mydb.mytable ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;....doesn't look syntactically right to me. Could you run this without errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general: The SAS/Access engine will convert an Oracle DATE field to the approapriate SAS variable type and assign it an appropriate SAS DateTime format (for display). You shouldn't have to code for this explicitely unless you want to change the default behaviour.&lt;/P&gt;
&lt;P&gt;If your Oracle field isn't DATE then don't expect SAS to convert the value automatically into a SAS DateTime value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at your code: Is there really an Oracle column with name &lt;EM&gt;format&lt;/EM&gt; which is of type DATE? I dare to doubt this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please explain what Oracle fields you have, which Type the are of (DATE, VARCHAR2, ....) and what you'd like to get on the SAS side for these fields.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397379#M96040</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-20T10:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397380#M96041</link>
      <description>&lt;P&gt;I'm not an oracle user, but having your example:&lt;BR /&gt;&lt;STRONG&gt;For example in my table in ORACLE prints in SAS this digit " 1820361600 "&amp;nbsp;instead of&amp;nbsp;" september 7, 2017 " .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try next code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;data_in =&amp;nbsp;&lt;STRONG&gt;1820361600&lt;SPAN&gt;&amp;nbsp;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;date_is = &lt;STRONG&gt;datepart&lt;/STRONG&gt;(data_in);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format date_is mmddyy10. ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't remember which format will display like&amp;nbsp;&lt;STRONG&gt;september 7, 2017.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397380#M96041</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-09-20T10:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397399#M96042</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a control in ORACLE database , the column is effectively a date. In ORACLE we can see the date in this format " YYYY-MM-DD HH-MM-SS" . When we see the date by SAS the data which come from ORACLE , the format is an other . It's a date which appears like a digit ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Oracle view it's "2017-09-07 00:00:00" in SAS view it's " 1820361600&amp;nbsp;" .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm that this SAS program is in function :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table table_exit as
select mytable.textfield , mytable.mytade format = datetime. as new_date
from mydb.mytable ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Shmuel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" 1820361600 " it isn't a fixe value. This date can be change. For example we can found the date of 6 september or of 8 september or of an other month and year ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To change the format, I have used your function datepart like this in a first query :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" mytable.mydate format = datetime. as new_date_format "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a second query I have used this function to burst the date in several with this system : " year(datepart(new_date_format)) " .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This problem arrives when we don't use the part "datepart" in the bloc of functions " year(datepart([name_of_your_column])) " . You can too change " datepart " by " datetime " .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 13:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397399#M96042</guid>
      <dc:creator>azertyuiop</dc:creator>
      <dc:date>2017-09-20T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397412#M96046</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; that your query does not seem syntactically correct.&lt;/P&gt;
&lt;P&gt;Didn't you mean something as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;mytable&lt;SPAN class="token punctuation"&gt;.date&lt;/SPAN&gt; as new_date format=datetime.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 12:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397412#M96046</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2017-09-20T12:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397443#M96055</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry i want say&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;mytable.mydate date as new_date format=datetime.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token punctuation"&gt;mytable.mydate not mytable.format ...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 13:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397443#M96055</guid>
      <dc:creator>azertyuiop</dc:creator>
      <dc:date>2017-09-20T13:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397464#M96061</link>
      <description>&lt;P&gt;&lt;STRONG&gt;1820361600&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; - is just your example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It was obvious to me that you got a timestamp (date and time in same variable).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The function DATEPART computes the date part out of the timestamp vraiable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SAS date 01JAN1960 is represented as 0. Any sas date is counting days from this startting point.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The FORMAT is used to tell SAS how to display the value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Some examples of date formats: &amp;nbsp;date9. , ddmmyy8. , ddmmyy10. , mmddyy10. etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can google for SAS DATE FORMATS and choose whatever you like.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 14:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397464#M96061</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-09-20T14:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397481#M96068</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I'm not an oracle user, but having your example:&lt;BR /&gt;&lt;STRONG&gt;For example in my table in ORACLE prints in SAS this digit " 1820361600 "&amp;nbsp;instead of&amp;nbsp;" september 7, 2017 " .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try next code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;data_in =&amp;nbsp;&lt;STRONG&gt;1820361600&lt;SPAN&gt;&amp;nbsp;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;date_is = &lt;STRONG&gt;datepart&lt;/STRONG&gt;(data_in);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format date_is mmddyy10. ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't remember which format will display like&amp;nbsp;&lt;STRONG&gt;september 7, 2017.&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The format is Worddate.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 15:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397481#M96068</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-20T15:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397637#M96116</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/165260"&gt;@azertyuiop&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The good new is: The number (the digits) you've posted have the right value for a SAS DateTime which corresponds to the date you've posted. That means conversion from an Oracle DATE value to a SAS DateTime value happens as it should and the problem is only about display (apply an appropriate SAS DateTime format the the SAS variable of type Numeric).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Per default and without any exlicit format definition SAS will convert an Oracle date to a SAS DateTime value and store this value in a numeric SAS variable. Also per default SAS will assign a permanent format of DATETIME20. to this numeric variable so the internal number (that's what you've posted) will display as a datetime for printing.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#p06jk0u30uhuj5n18fqw9sxr25lk.htm&amp;nbsp;" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#p06jk0u30uhuj5n18fqw9sxr25lk.htm&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I totally understand that we often need to simplify the code we post BUT you still should try to post a working and tested example as far as possible.&lt;/P&gt;
&lt;P&gt;Please execut below (untested) code against your actual oracle table and oracle column and tell us if you also see the reported issue with this code. If yes then please tell us exactly how you're looking at the data as this is not about getting a wrong value into SAS but only about not displaying/printing this value in a human readable form.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql inobs=1;
  create table work.MySASTable as
    select a.MyOraDateVar as MySASDttmVar
    from oralib.oratbl as a
  ;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...Oh... and reading the end of your initial post again - which is not in a very readable format so I've missed this so far:&lt;/P&gt;
&lt;P&gt;SAS has a concept of DATE and DATETIME values. If you read an Oracle DATE column into SAS then SAS will store this as a SAS DATETIME value.&lt;/P&gt;
&lt;P&gt;You need to use SAS functions and formats for SAS DATETIME values. The ones for DATE values won't work - or you need to convert the SAS DATETIME value to a SAS DATE value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A SAS DATE value is noting else than the count of DAYS since 1/1/1960&lt;/P&gt;
&lt;P&gt;A SAS DATETIME value is the count of SECONDS since 1/1/1960&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is quite a bit in the SAS documentation explaining the concepts of SAS Dates and DateTimes and how to use them. I suggest you're doing a bit of reading to fully understand this. Once you do working with SAS Dates and DateTimes becomes quite simple.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 22:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/397637#M96116</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-20T22:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398027#M96231</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice your specifition about oracle en SAS linked to the date format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't test this code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql inobs=1;&lt;BR /&gt;&amp;nbsp; create table work.MySASTable as&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select a.MyOraDateVar as MySASDttmVar&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from oralib.oratbl as a;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'haven' t the permission to read or see this type of table by SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 09:37:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398027#M96231</guid>
      <dc:creator>azertyuiop</dc:creator>
      <dc:date>2017-09-22T09:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398029#M96232</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/165260"&gt;@azertyuiop&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;That has been sample code. You need to replace the libref, table name and column name with what you have in your actual table.&lt;/P&gt;
&lt;P&gt;Based on the code you've posted this should be something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql inobs=1;
  create table table_exit as
    select mytable.&amp;lt;name of your date field&amp;gt; as new_date
      from mydb.mytable;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Sep 2017 09:54:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398029#M96232</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-22T09:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398058#M96243</link>
      <description>&lt;P&gt;After a new test , this test is ok .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can validate your function to see the date &lt;img id="manwink" class="emoticon emoticon-manwink" src="https://communities.sas.com/i/smilies/16x16_man-wink.png" alt="Man Wink" title="Man Wink" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 11:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398058#M96243</guid>
      <dc:creator>azertyuiop</dc:creator>
      <dc:date>2017-09-22T11:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398074#M96247</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/165260"&gt;@azertyuiop&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;So that means your problem is solved?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 12:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398074#M96247</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-22T12:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398099#M96249</link>
      <description>&lt;P&gt;Excatly ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is solved . We can close this topic &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 13:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398099#M96249</guid>
      <dc:creator>azertyuiop</dc:creator>
      <dc:date>2017-09-22T13:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date come from Oracle to change format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398229#M96299</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/165260"&gt;@azertyuiop&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;It is &lt;FONT color="#800000"&gt;&lt;STRONG&gt;YOU&lt;/STRONG&gt; &lt;/FONT&gt;who needs to close it by marking the answer which helped you the most as solution.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 21:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-come-from-Oracle-to-change-format/m-p/398229#M96299</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-22T21:51:21Z</dc:date>
    </item>
  </channel>
</rss>

