<?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 Format a string 2015-07-20 07:59 so that to be able to work with time series in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-a-string-2015-07-20-07-59-so-that-to-be-able-to-work-with/m-p/259205#M50105</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I would like to wish everyone Happy Easter and thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, the question: I have a dataset from insulin's pumpa when a patient measures blood suger at very different time periods. Thus, for a TIME variable I have a string which looks like this&amp;nbsp; &lt;STRONG&gt;2015-07-20 07:59.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder how I can format this string to be able to work with time series?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yuliya&lt;/P&gt;</description>
    <pubDate>Sat, 26 Mar 2016 07:41:17 GMT</pubDate>
    <dc:creator>Yuliya</dc:creator>
    <dc:date>2016-03-26T07:41:17Z</dc:date>
    <item>
      <title>Format a string 2015-07-20 07:59 so that to be able to work with time series</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-a-string-2015-07-20-07-59-so-that-to-be-able-to-work-with/m-p/259205#M50105</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I would like to wish everyone Happy Easter and thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, the question: I have a dataset from insulin's pumpa when a patient measures blood suger at very different time periods. Thus, for a TIME variable I have a string which looks like this&amp;nbsp; &lt;STRONG&gt;2015-07-20 07:59.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder how I can format this string to be able to work with time series?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yuliya&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2016 07:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-a-string-2015-07-20-07-59-so-that-to-be-able-to-work-with/m-p/259205#M50105</guid>
      <dc:creator>Yuliya</dc:creator>
      <dc:date>2016-03-26T07:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Format a string 2015-07-20 07:59 so that to be able to work with time series</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-a-string-2015-07-20-07-59-so-that-to-be-able-to-work-with/m-p/259206#M50106</link>
      <description>&lt;P&gt;You need to convert your string to a SAS date for starters, the INPUT function can do this. Depending on your data it may also be possible to change it earlier, ie if you are reading it from a text file its worth fixing it in that stage.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Date_var = input(string_var, anydtdtm.);
Format date_var datetime21.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Mar 2016 08:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-a-string-2015-07-20-07-59-so-that-to-be-able-to-work-with/m-p/259206#M50106</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-26T08:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Format a string 2015-07-20 07:59 so that to be able to work with time series</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-a-string-2015-07-20-07-59-so-that-to-be-able-to-work-with/m-p/260633#M50613</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for your reply. Actually, I used your advice and change the format beforehand, now it is ok. But it is useful to know how INPUT works as well, I have never used it before, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have other questions but I will post them under other title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yuliya&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 08:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-a-string-2015-07-20-07-59-so-that-to-be-able-to-work-with/m-p/260633#M50613</guid>
      <dc:creator>Yuliya</dc:creator>
      <dc:date>2016-04-01T08:16:53Z</dc:date>
    </item>
  </channel>
</rss>

