<?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: Hi in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212816#M52550</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;You can use the HMS function with the appropriate arguments. See sample below.&lt;/P&gt;&lt;P&gt;How can you know that the 1 in 129 is hour 13?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; have;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; post_time : &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;8.&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; date_s = hms(int(post_time / &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;100&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;), mod(post_time, &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;100&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;), &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; date_s &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;time8.&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;129&lt;BR /&gt;203&lt;BR /&gt;252&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 13:42:05 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2015-05-11T13:42:05Z</dc:date>
    <item>
      <title>Hi</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212815#M52549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable called post_time which is in the numeric format with values like 129, 203,252 etc I want to convert this variable into a time variable with values in format like follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;129 to 13:29&lt;/P&gt;&lt;P&gt;203 to 14:03 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need help for the code on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 05:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212815#M52549</guid>
      <dc:creator>AmolGothe</dc:creator>
      <dc:date>2015-05-11T05:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212816#M52550</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;You can use the HMS function with the appropriate arguments. See sample below.&lt;/P&gt;&lt;P&gt;How can you know that the 1 in 129 is hour 13?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; have;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; post_time : &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;8.&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; date_s = hms(int(post_time / &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;100&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;), mod(post_time, &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;100&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;), &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; date_s &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;time8.&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;129&lt;BR /&gt;203&lt;BR /&gt;252&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 13:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212816#M52550</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-05-11T13:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212817#M52551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid it is too vague.&amp;nbsp; Why does 129 = 13:29 and not 01:29 which would seem more logical, how would 01:29 be represented?&amp;nbsp; Could it not also be 129 minutes past a certain time value?&amp;nbsp; Then its just time_point + 129.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 13:52:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212817#M52551</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-05-11T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212818#M52552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bruno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a reference dataset (a csv file) and in that reference dataset they have used the post_time variable to calculate the time_variable that i am trying to calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amol Gothe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 13:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212818#M52552</guid>
      <dc:creator>AmolGothe</dc:creator>
      <dc:date>2015-05-11T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212819#M52553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still the question is, how are AM times represented? Seems like the one who created the file did not really engage her/his brain before starting to type. Or you missed some necessary information (maybe AM/PM is stored in another column of the csv?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 07:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hi/m-p/212819#M52553</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-05-12T07:09:00Z</dc:date>
    </item>
  </channel>
</rss>

