<?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: Military Time in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738482#M80488</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/380590"&gt;@SriCh1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;So how can we enter all the observations from the dataset under datalines if we have more than 3000 observations?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why would you want to do that if you already have the data in the dataset you imported from Excel?&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 04:09:41 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-05-03T04:09:41Z</dc:date>
    <item>
      <title>Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738434#M80467</link>
      <description>&lt;P&gt;I have an excel sheet where the data set has columns with military time but no separators. How to convert the military time to hh: mm. For example, the columns have military time like 1509,7,30,637.&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 21:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738434#M80467</guid>
      <dc:creator>SriCh1</dc:creator>
      <dc:date>2021-05-02T21:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738435#M80468</link>
      <description>&lt;P&gt;According to which standard (reference) ?&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 21:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738435#M80468</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-05-02T21:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738436#M80469</link>
      <description>&lt;P&gt;Military time is 24 hr time, but it is in 1507 format which is 03:07 PM, I want to convert all the values to HH MM format.&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 21:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738436#M80469</guid>
      <dc:creator>SriCh1</dc:creator>
      <dc:date>2021-05-02T21:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738438#M80471</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;time = hms(input(substr(mTime,1,2), best.), input(substr(mTime,3,2), best.), 0); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 May 2021 21:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738438#M80471</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-05-02T21:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738441#M80473</link>
      <description>&lt;P&gt;Is the solution for SAS?&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 22:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738441#M80473</guid>
      <dc:creator>SriCh1</dc:creator>
      <dc:date>2021-05-02T22:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738443#M80474</link>
      <description>&lt;P&gt;The given solution did not work but I can provide you with an example of the dataset.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;COLLECTION_TIME&lt;/TD&gt;&lt;TD&gt;RECV_TIME&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1509&lt;/TD&gt;&lt;TD&gt;613&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2033&lt;/TD&gt;&lt;TD&gt;625&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;615&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2130&lt;/TD&gt;&lt;TD&gt;603&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2114&lt;/TD&gt;&lt;TD&gt;720&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1009&lt;/TD&gt;&lt;TD&gt;639&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1457&lt;/TD&gt;&lt;TD&gt;553&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2131&lt;/TD&gt;&lt;TD&gt;634&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;627&lt;/TD&gt;&lt;TD&gt;550&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1702&lt;/TD&gt;&lt;TD&gt;632&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 02 May 2021 22:22:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738443#M80474</guid>
      <dc:creator>SriCh1</dc:creator>
      <dc:date>2021-05-02T22:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738445#M80475</link>
      <description>&lt;P&gt;Show us the code you used and the results. Explain what was wrong with the answers.&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 22:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738445#M80475</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-02T22:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738448#M80477</link>
      <description>I tried the code but the values were all missing</description>
      <pubDate>Sun, 02 May 2021 22:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738448#M80477</guid>
      <dc:creator>SriCh1</dc:creator>
      <dc:date>2021-05-02T22:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738451#M80479</link>
      <description>&lt;P&gt;Repeating: "Show us the code you used"&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 22:40:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738451#M80479</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-02T22:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738454#M80480</link>
      <description>time = hms(input(substr(mTime,1,2), best.), input(substr(mTime,3,2), best.), 0);</description>
      <pubDate>Sun, 02 May 2021 22:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738454#M80480</guid>
      <dc:creator>SriCh1</dc:creator>
      <dc:date>2021-05-02T22:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738455#M80481</link>
      <description>&lt;P&gt;If you didn't change the variable names from the code by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; to the varaible names in your data set, then I would expect missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the whole data step. Also, if there are any WARNINGs in the log, show those to us as well. (or just show us the entire LOG from this data step including CODE, ERRORs, WARNINGs and NOTEs)&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 22:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738455#M80481</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-02T22:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738462#M80483</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input COLLECTION_TIME $ RECV_TIME $;
datalines;
1509    613
2033    625
30  615
2130    603
2114    720
1009    639
1457    553
2131    634
627 550
1702    632
;

data want;
set have;
t = input(COLLECTION_TIME, best.);
COLLECTION_TIME_DT = hms(int(t/100), mod(t,100), 0);
t = input(RECV_TIME, best.);
RECV_TIME_DT = hms(int(t/100), mod(t,100), 0);
format COLLECTION_TIME_DT RECV_TIME_DT hhmm5.;
run;

proc print data=want; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PGStats_0-1620000187573.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58937iB8676CC8DDAC6DAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PGStats_0-1620000187573.png" alt="PGStats_0-1620000187573.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 00:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738462#M80483</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-05-03T00:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738467#M80484</link>
      <description>So how can we enter all the observations from the dataset under datalines if we have more than 3000 observations?</description>
      <pubDate>Mon, 03 May 2021 01:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738467#M80484</guid>
      <dc:creator>SriCh1</dc:creator>
      <dc:date>2021-05-03T01:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738470#M80485</link>
      <description>Thank you so much the code worked!</description>
      <pubDate>Mon, 03 May 2021 01:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738470#M80485</guid>
      <dc:creator>SriCh1</dc:creator>
      <dc:date>2021-05-03T01:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738482#M80488</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/380590"&gt;@SriCh1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;So how can we enter all the observations from the dataset under datalines if we have more than 3000 observations?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why would you want to do that if you already have the data in the dataset you imported from Excel?&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 04:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738482#M80488</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-03T04:09:41Z</dc:date>
    </item>
  </channel>
</rss>

