<?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: How do I convert string HH:MM into time HH:MM format? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384811#M24786</link>
    <description>&lt;P&gt;I am not getting any error. But there is note: Invalid string for&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;234 t1.time_v2,&lt;BR /&gt;235 /* time_v3 */&lt;BR /&gt;236 (INPUT(t1.time_v2, HHMM.)) AS time_v3&lt;BR /&gt;237 FROM WORK.QUERY_FOR_UNDERSTANDI_0003 t1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And with and without "w" doesn't make a difference, just create a new column with all empty value.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 21:25:54 GMT</pubDate>
    <dc:creator>KubiK888</dc:creator>
    <dc:date>2017-08-01T21:25:54Z</dc:date>
    <item>
      <title>How do I convert string HH:MM into time HH:MM format?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384802#M24784</link>
      <description>&lt;P&gt;I have a column with HH:MM in a string format, I would like it to be converted into HHMw.d time format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In EG, I go to Query Builder and advanced expression with "INPUT(t1.time_v2, HHMMw.)",&amp;nbsp;it created a new variable but they are all missing (.).&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 20:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384802#M24784</guid>
      <dc:creator>KubiK888</dc:creator>
      <dc:date>2017-08-01T20:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert string HH:MM into time HH:MM format?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384808#M24785</link>
      <description>&lt;P&gt;Are you actually putting "w" as the length? That should actually be a number or potentially nothing. You're not getting any kind of note or error?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 21:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384808#M24785</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-08-01T21:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert string HH:MM into time HH:MM format?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384811#M24786</link>
      <description>&lt;P&gt;I am not getting any error. But there is note: Invalid string for&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;234 t1.time_v2,&lt;BR /&gt;235 /* time_v3 */&lt;BR /&gt;236 (INPUT(t1.time_v2, HHMM.)) AS time_v3&lt;BR /&gt;237 FROM WORK.QUERY_FOR_UNDERSTANDI_0003 t1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And with and without "w" doesn't make a difference, just create a new column with all empty value.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 21:25:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384811#M24786</guid>
      <dc:creator>KubiK888</dc:creator>
      <dc:date>2017-08-01T21:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert string HH:MM into time HH:MM format?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384812#M24787</link>
      <description>&lt;P&gt;Try TIME5. instead of HHMMw. if you only have hour and minutes.&lt;/P&gt;
&lt;P&gt;HHMMw. is a display format, not an informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would expect an error similar to this:&lt;/P&gt;
&lt;PRE&gt;355  data junk;
356     time_v2 = "12:34";
357     tt =INPUT(time_v2, HHMM.);
                           -----
                           485
NOTE 485-185: Informat HHMM was not found or could not be loaded.

358  run;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Aug 2017 21:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384812#M24787</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-01T21:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert string HH:MM into time HH:MM format?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384818#M24788</link>
      <description>&lt;P&gt;Are you sure it's a string format? Can you show a proc contents and a few values?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 21:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384818#M24788</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-01T21:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert string HH:MM into time HH:MM format?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384829#M24792</link>
      <description>Thanks, but it turns it into 5-digit number. For example "7:57" into 28620.</description>
      <pubDate>Tue, 01 Aug 2017 22:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384829#M24792</guid>
      <dc:creator>KubiK888</dc:creator>
      <dc:date>2017-08-01T22:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert string HH:MM into time HH:MM format?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384832#M24793</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/149300"&gt;@KubiK888&lt;/a&gt; wrote:&lt;BR /&gt;Thanks, but it turns it into 5-digit number. For example "7:57" into 28620.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's likely correct. Now you need to apply a format to it as well, TIME.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS stores times as the number of seconds and dates as the number of days.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 22:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-convert-string-HH-MM-into-time-HH-MM-format/m-p/384832#M24793</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-01T22:43:06Z</dc:date>
    </item>
  </channel>
</rss>

