<?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 Achieve the MIDNIGHT_SECONDS clause of DB2 in SAS proc sql in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Achieve-the-MIDNIGHT-SECONDS-clause-of-DB2-in-SAS-proc-sql/m-p/78490#M684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I redeveloping some ETL job from DB2 to SAS and having a problem. The previous work used MIDNIGHT_SECONDS (&lt;SPAN style="color: #000000; font-family: Arial, sans-serif; text-align: -webkit-auto; background-color: #ffffff;"&gt;Returns an integer value in the range 0 to 86 400, representing the number of seconds between midnight and the time value specified in the argument.&lt;/SPAN&gt;) clause which only could be used in DB2 and I am wondering if there is any way the achieve the same function in SAS using proc sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INT(MIDNIGHT_SECONDS(process_time)/900) AS timeslice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 19:10:31 GMT</pubDate>
    <dc:creator>Nehcour0420</dc:creator>
    <dc:date>2012-07-30T19:10:31Z</dc:date>
    <item>
      <title>Achieve the MIDNIGHT_SECONDS clause of DB2 in SAS proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Achieve-the-MIDNIGHT-SECONDS-clause-of-DB2-in-SAS-proc-sql/m-p/78490#M684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I redeveloping some ETL job from DB2 to SAS and having a problem. The previous work used MIDNIGHT_SECONDS (&lt;SPAN style="color: #000000; font-family: Arial, sans-serif; text-align: -webkit-auto; background-color: #ffffff;"&gt;Returns an integer value in the range 0 to 86 400, representing the number of seconds between midnight and the time value specified in the argument.&lt;/SPAN&gt;) clause which only could be used in DB2 and I am wondering if there is any way the achieve the same function in SAS using proc sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INT(MIDNIGHT_SECONDS(process_time)/900) AS timeslice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 19:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Achieve-the-MIDNIGHT-SECONDS-clause-of-DB2-in-SAS-proc-sql/m-p/78490#M684</guid>
      <dc:creator>Nehcour0420</dc:creator>
      <dc:date>2012-07-30T19:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Achieve the MIDNIGHT_SECONDS clause of DB2 in SAS proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Achieve-the-MIDNIGHT-SECONDS-clause-of-DB2-in-SAS-proc-sql/m-p/78491#M685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS time values are "MIDNIGHT SECONDS".&amp;nbsp; You can read 'hh:mm:ss' fields with a TIME informat as SAS will store the value as SAS/TIME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 19:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Achieve-the-MIDNIGHT-SECONDS-clause-of-DB2-in-SAS-proc-sql/m-p/78491#M685</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-07-30T19:35:30Z</dc:date>
    </item>
  </channel>
</rss>

