<?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: Help me find a better code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-format-time-values/m-p/254321#M48490</link>
    <description>&lt;P&gt;What does the data look like originally?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 20:47:07 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-03-03T20:47:07Z</dc:date>
    <item>
      <title>How to read/format time values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-format-time-values/m-p/254317#M48486</link>
      <description>&lt;P&gt;I am working with an assignment.&lt;/P&gt;
&lt;P&gt;Here is the code-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data XXX;&lt;BR /&gt;81 infile datalines;&lt;BR /&gt;82 length time 8;&lt;BR /&gt;83 informat time time5.;&lt;BR /&gt;84 format time time5.;&lt;BR /&gt;85 input @1time @8With $5.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the time as in this format-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;11:00&lt;/P&gt;
&lt;P&gt;9:00&lt;/P&gt;
&lt;P&gt;3:00&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried many different set of codes but I could not find a code which would provide the desired output.&lt;/P&gt;
&lt;P&gt;Please help me if you could.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anu&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:57:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-format-time-values/m-p/254317#M48486</guid>
      <dc:creator>anucharbe</dc:creator>
      <dc:date>2016-03-03T20:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help me find a better code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-format-time-values/m-p/254321#M48490</link>
      <description>&lt;P&gt;What does the data look like originally?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-format-time-values/m-p/254321#M48490</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-03T20:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help me find a better code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-format-time-values/m-p/254324#M48491</link>
      <description>&lt;P&gt;Hi Anu,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have an external file that you're reading this data from? &amp;nbsp;Can you post a portion of that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And are you looking to represent clock times (9:00 AM or 13:00 24-hr time)? &amp;nbsp;Or something like a time span (6:45 for 6 hrs, 45min)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's the "WITH" variable?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:50:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-format-time-values/m-p/254324#M48491</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-03-03T20:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to read/format time values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-format-time-values/m-p/254390#M48511</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
x='09:00:00't;
format x hhmm5.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Mar 2016 01:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-format-time-values/m-p/254390#M48511</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-04T01:40:07Z</dc:date>
    </item>
  </channel>
</rss>

