<?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: Time informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Time-informat/m-p/330908#M74315</link>
    <description>&lt;P&gt;The SAS informats expect hours, minutes, seconds and parts of seconds, so set a proper time format (including hours) in Excel before importing into SAS.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 16:50:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-02-08T16:50:03Z</dc:date>
    <item>
      <title>Time informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-informat/m-p/330869#M74299</link>
      <description>&lt;P&gt;I have 1 time in excel file it's value is 27:27.36&amp;nbsp; i.e. 27 min 27 sec 36 subsec&lt;/P&gt;&lt;P&gt;What informat need to be used to read this value. I need informat so that i can read this value.&lt;/P&gt;&lt;P&gt;I used time10.2 and few other informat but it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 15:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-informat/m-p/330869#M74299</guid>
      <dc:creator>Ps8813</dc:creator>
      <dc:date>2017-02-08T15:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Time informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-informat/m-p/330908#M74315</link>
      <description>&lt;P&gt;The SAS informats expect hours, minutes, seconds and parts of seconds, so set a proper time format (including hours) in Excel before importing into SAS.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 16:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-informat/m-p/330908#M74315</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-08T16:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Time informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-informat/m-p/330910#M74317</link>
      <description>&lt;P&gt;HOW are you reading from Excel? Did you convert to CSV and read that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also describe how "it is not working". Do you get an error? so the error message. &amp;nbsp;no result or &amp;nbsp;Unexpected result? Show actual input and results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: The SAS TIME informat is going to expect a time of day with an HOUR component.&lt;/P&gt;
&lt;P&gt;If you do not havee an hour then you will need to bring the value in as text and then extract the minute and seconds component then use the HMS function to create a time value.&lt;/P&gt;
&lt;PRE&gt;data junk;
   x='27:27.6';
   y = hms(0,scan(x,1,':'),scan(x,2,':'));
   format y time10.2;
run;&lt;/PRE&gt;
&lt;P&gt;This will create a message about character to numeric conversions as the scan function returns character values and we are using them in a numeric role.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 16:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-informat/m-p/330910#M74317</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-08T16:56:36Z</dc:date>
    </item>
  </channel>
</rss>

