<?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: Timestamp conversion in SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Timestamp-conversion-in-SAS/m-p/70564#M20297</link>
    <description>From the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;, using SEARCH facility:&lt;BR /&gt;
&lt;BR /&gt;
Usage Note 8510: PROC FORMAT with PICTURE statement gives flexibility for DATE, TIME and DATETIME FORMATS&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/8/510.html" target="_blank"&gt;http://support.sas.com/kb/8/510.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Thu, 10 Sep 2009 20:50:29 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-09-10T20:50:29Z</dc:date>
    <item>
      <title>Timestamp conversion in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Timestamp-conversion-in-SAS/m-p/70563#M20296</link>
      <description>Hello everyone,&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know how to convert a DB2 timestamp value from this:&lt;BR /&gt;
&lt;BR /&gt;
15JUL1992:14:15:44.00208&lt;BR /&gt;
&lt;BR /&gt;
to something like this?&lt;BR /&gt;
1992-07-15:14:15:44.00208&lt;BR /&gt;
&lt;BR /&gt;
I really appreciate your help!</description>
      <pubDate>Thu, 10 Sep 2009 19:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Timestamp-conversion-in-SAS/m-p/70563#M20296</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2009-09-10T19:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp conversion in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Timestamp-conversion-in-SAS/m-p/70564#M20297</link>
      <description>From the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;, using SEARCH facility:&lt;BR /&gt;
&lt;BR /&gt;
Usage Note 8510: PROC FORMAT with PICTURE statement gives flexibility for DATE, TIME and DATETIME FORMATS&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/8/510.html" target="_blank"&gt;http://support.sas.com/kb/8/510.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 10 Sep 2009 20:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Timestamp-conversion-in-SAS/m-p/70564#M20297</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-10T20:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp conversion in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Timestamp-conversion-in-SAS/m-p/70565#M20298</link>
      <description>Hi Scott,&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much for the input!  I got this instruction from the link you provided: &lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
       picture dttime other='%0m/%0d/%0y %0H:%0M:%0S'&lt;BR /&gt;
       (datatype=datetime);&lt;BR /&gt;
     run;&lt;BR /&gt;
 &lt;BR /&gt;
It has worked for the most part.  But the problem now is the milisecond (in bold print) at the end has been truncated:&lt;BR /&gt;
This is the data before:&lt;BR /&gt;
15JUL1992:14:15:44.&lt;I&gt;&lt;B&gt;002087&lt;/B&gt;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
This is the data after:&lt;BR /&gt;
1992-07-15-14.15.44&lt;BR /&gt;
&lt;BR /&gt;
Is there a milisecond symbol I can use in this case?&lt;BR /&gt;
&lt;BR /&gt;
Thank you !!</description>
      <pubDate>Thu, 10 Sep 2009 21:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Timestamp-conversion-in-SAS/m-p/70565#M20298</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2009-09-10T21:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp conversion in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Timestamp-conversion-in-SAS/m-p/70566#M20299</link>
      <description>I don't believe there is support beyond the second.  If you are printing this information, it is possible to use the format in a DATA step PUT function assignment (to generate the date portion) and then concatenate the date with a SAS time-portion variable using the TIME format.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 10 Sep 2009 22:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Timestamp-conversion-in-SAS/m-p/70566#M20299</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-10T22:10:29Z</dc:date>
    </item>
  </channel>
</rss>

