<?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: SAS Date and time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/484300#M125736</link>
    <description>&lt;P&gt;You need to fix such issues at the point where data enters your SAS environment.&lt;/P&gt;
&lt;P&gt;Show how you imported the data into SAS. Just using the correct format there will remove the problem.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Aug 2018 10:03:31 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-08-06T10:03:31Z</dc:date>
    <item>
      <title>SAS Date and time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/484293#M125731</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am facing a problem to convert the numeric function to the date part&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my data&amp;nbsp; is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;515&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;529&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;540&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;545&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;In the above 515 means 5:15&lt;/P&gt;&lt;P&gt;529 means 5:29&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 08:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/484293#M125731</guid>
      <dc:creator>Vaibhav_Kalra</dc:creator>
      <dc:date>2018-08-06T08:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date and time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/484295#M125732</link>
      <description>&lt;P&gt;This "&lt;SPAN&gt;I am facing a problem to convert the numeric function to the date part" doesn't really make sense as the data you give and logic is for time?&amp;nbsp; I would be cautious about converting just a number like that to a time.&amp;nbsp; You could&amp;nbsp;simply:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;data want;
  input num;
  tmp=strip(put(num,best.));
  tmp=cats(char(tmp,1),":",substr(tmp,2,2));
datalines;
515
529
;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;But I suspect thats not really your problem, and your issue includes dates as well.&amp;nbsp; Perhaps provide fuller information, provide what you have as test data in the form of a datastep and what you want out at the end.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 09:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/484295#M125732</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-06T09:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date and time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/484300#M125736</link>
      <description>&lt;P&gt;You need to fix such issues at the point where data enters your SAS environment.&lt;/P&gt;
&lt;P&gt;Show how you imported the data into SAS. Just using the correct format there will remove the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 10:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/484300#M125736</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-06T10:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date and time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/484334#M125749</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  input num;
  want=hms(int(num/100),mod(num,100),0);
  format want hhmm5.;
datalines;
515
529
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2018 12:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/484334#M125749</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-08-06T12:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date and time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/485886#M126295</link>
      <description>&lt;P&gt;Or:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  input num;
  want=input(put(num,z4.),hhmmss4.);
  format want hhmm5.;
datalines;
515
529
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/485886#M126295</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2018-08-10T17:35:33Z</dc:date>
    </item>
  </channel>
</rss>

