<?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 to create a numeric measurement reflecting time in quite a mixed format? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-numeric-measurement-reflecting-time-in-quite-a/m-p/194761#M4155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note sure how a macro could help with this type of problem.&lt;/P&gt;&lt;P&gt;Just convert the text variable to a numeric variable.&amp;nbsp; Then you can sort and take the last one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt = input(time_of_submission,anydtdtm.);&lt;/P&gt;&lt;P&gt;format dt datetime19.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 04:41:26 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-03-05T04:41:26Z</dc:date>
    <item>
      <title>How to create a numeric measurement reflecting time in quite a mixed format?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-numeric-measurement-reflecting-time-in-quite-a/m-p/194760#M4154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So my data comes from an online survey and consists of, among others, two variables: ID and Time of submission. The later is a string variable and looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 February 2015 7:18 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question arises from the fact that some participants submitted their responses more than once. So I want to select the most recent submission and drop others. Can you suggest a macro-free program that can do that work? I've got stuck in figuring out a numeric measurement reflecting time of submission from the original variable or something like that which will help with sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts are appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 04:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-numeric-measurement-reflecting-time-in-quite-a/m-p/194760#M4154</guid>
      <dc:creator>NonSleeper</dc:creator>
      <dc:date>2015-03-05T04:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a numeric measurement reflecting time in quite a mixed format?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-numeric-measurement-reflecting-time-in-quite-a/m-p/194761#M4155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note sure how a macro could help with this type of problem.&lt;/P&gt;&lt;P&gt;Just convert the text variable to a numeric variable.&amp;nbsp; Then you can sort and take the last one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt = input(time_of_submission,anydtdtm.);&lt;/P&gt;&lt;P&gt;format dt datetime19.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 04:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-numeric-measurement-reflecting-time-in-quite-a/m-p/194761#M4155</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-05T04:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a numeric measurement reflecting time in quite a mixed format?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-numeric-measurement-reflecting-time-in-quite-a/m-p/194762#M4156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's interesting that when I import the data from excel, SAS automatically converts the submission variable to date format. For example, the value of "26 February 2015 7:19 PM" becomes "26FEB15:19:19:49". I check the format and it's DATETIME16.; I guess the length is the reason the seconds shows up though they aren't in the original variable. I change the format to DATETIME14. and things look pretty good now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 05:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-numeric-measurement-reflecting-time-in-quite-a/m-p/194762#M4156</guid>
      <dc:creator>NonSleeper</dc:creator>
      <dc:date>2015-03-06T05:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a numeric measurement reflecting time in quite a mixed format?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-numeric-measurement-reflecting-time-in-quite-a/m-p/194763#M4157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the formatting in Excel is hiding the seconds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 01:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-numeric-measurement-reflecting-time-in-quite-a/m-p/194763#M4157</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-07T01:29:12Z</dc:date>
    </item>
  </channel>
</rss>

