<?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: concatenating military time and date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269865#M58179</link>
    <description>&lt;P&gt;Note about Circular references in formula makes it likely there are multiple issues with the data in this format.&lt;/P&gt;
&lt;P&gt;Could you post the data as a text file? Save the file as CSV and name with a TXT extension before posting to the forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show the &lt;STRONG&gt;entire &lt;/STRONG&gt;SAS code you have used.&lt;/P&gt;
&lt;P&gt;If you are trying to combine stuff in Excel then it is not a SAS question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The values I see in the spreadsheet and the message about circular reference makes me believe this is not the actual in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 20:03:48 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-05-11T20:03:48Z</dc:date>
    <item>
      <title>concatenating military time and date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269855#M58176</link>
      <description>&lt;DIV class="lp_chat_line lp_chat_visitor"&gt;&lt;DIV class="outer_lp_chat_message"&gt;&lt;DIV class="lp_chat_message"&gt;Hello,&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;I am working with hospital arrival dates and times and procedure dates and times. The end goal is to determine the amount of time elapsed from arrival to procedure. All of my dates are formatted as date9. and all of my times are formatted as time8. but they are MILITARY TIME.&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;I have so far concatenated the date and time columns&amp;nbsp;to a datetime variable using the code below.&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;attrib&lt;/SPAN&gt; arrivaldatetime &lt;SPAN class="s1"&gt;format&lt;/SPAN&gt;=&lt;SPAN class="s2"&gt;datetime19.&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;arrivaldatetime=input(put(HOSPARRIVALDATE,&lt;SPAN class="s2"&gt;date9.&lt;/SPAN&gt;)||put(HOSPARRIVALTIME,&lt;SPAN class="s2"&gt;time8.&lt;/SPAN&gt;),&lt;SPAN class="s2"&gt;datetime.&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;However, because my times are miliatry time, it is only creating the datetime variable for times that are before 13:00. Its as if SAS thinks a time such as 20:50 is not a real time. &amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;After much online searching, I have been unable to find a way to concatenate dates and military times. Any suggested code will be much appreciated!&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;Where the times are before 13:00 I am able to determine elapsed time btween arrival and procedure.&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_chat_message"&gt;thanks&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lp_chat_line lp_chat_visitor lp_chat_repeating_source"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 May 2016 19:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269855#M58176</guid>
      <dc:creator>ksalottolo</dc:creator>
      <dc:date>2016-05-11T19:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating military time and date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269857#M58177</link>
      <description>&lt;P&gt;It may be better to use DHMS() function to build your date time variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please post sample data, SAS shouldn't have issues with 24 hour times, which is what I'm assuming is "Military" time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 19:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269857#M58177</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-11T19:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating military time and date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269860#M58178</link>
      <description>&lt;P&gt;Yes, i've attached a sample file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the data i'm working from in columns labeled:&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;HOSPARRIVALTIME&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;HOSPARRIVALDATE&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;arrivaldatetime&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arrivaldatetime only concatenates when hosparrivaltime is &amp;lt; 13:00.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bloodproduct and headct columns with missing data are due to non-concatenation of times &amp;gt; 13:00 (done in an earlier step with the previously mentioned sas code).&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 19:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269860#M58178</guid>
      <dc:creator>ksalottolo</dc:creator>
      <dc:date>2016-05-11T19:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating military time and date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269865#M58179</link>
      <description>&lt;P&gt;Note about Circular references in formula makes it likely there are multiple issues with the data in this format.&lt;/P&gt;
&lt;P&gt;Could you post the data as a text file? Save the file as CSV and name with a TXT extension before posting to the forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show the &lt;STRONG&gt;entire &lt;/STRONG&gt;SAS code you have used.&lt;/P&gt;
&lt;P&gt;If you are trying to combine stuff in Excel then it is not a SAS question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The values I see in the spreadsheet and the message about circular reference makes me believe this is not the actual in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 20:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269865#M58179</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-11T20:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating military time and date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269882#M58181</link>
      <description>&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;This is all done in SAS, not excel. &lt;/SPAN&gt;Here is the full sas code. Very simple, i'm importing 6 files (I hid the file name),&amp;nbsp;merging 3 'unique' files and 3 'propogated' files across study years, identifying the first procedure (either head CT or blood product), merging,&amp;nbsp;then trying to get time elapsed. The attached file is after the merged step.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/SPAN&gt; import (sheet =, year = , DATAFILE=);&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;PROC IMPORT OUT=&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;HS.import_&amp;amp;year._&amp;amp;sheet&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;DATAFILE= &amp;amp;DATAFILE&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;DBMS=XLSX REPLACE;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SHEET = &amp;amp;sheet;&lt;/P&gt;&lt;P class="p2"&gt;RUN;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/SPAN&gt; import;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;%&lt;STRONG&gt;&lt;I&gt;import&lt;/I&gt;&lt;/STRONG&gt; (sheet = unique, year = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;2013&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, DATAFILE = &lt;/SPAN&gt;"&lt;SPAN&gt;(hidden)&lt;/SPAN&gt;"&lt;SPAN class="s2"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;%&lt;STRONG&gt;&lt;I&gt;import&lt;/I&gt;&lt;/STRONG&gt; (sheet = unique, year = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;2014&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, DATAFILE = &lt;/SPAN&gt;"&lt;SPAN&gt;(hidden)&lt;/SPAN&gt;"&lt;SPAN class="s2"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;%&lt;STRONG&gt;&lt;I&gt;import&lt;/I&gt;&lt;/STRONG&gt; (sheet = unique, year = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;2015&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, DATAFILE = &lt;/SPAN&gt;"&lt;SPAN&gt;(hidden)&lt;/SPAN&gt;"&lt;SPAN class="s2"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;%&lt;STRONG&gt;&lt;I&gt;import&lt;/I&gt;&lt;/STRONG&gt; (sheet = prop, year = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;2013&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, DATAFILE = &lt;/SPAN&gt;"&lt;SPAN&gt;(hidden)&lt;/SPAN&gt;"&lt;SPAN class="s2"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;%&lt;STRONG&gt;&lt;I&gt;import&lt;/I&gt;&lt;/STRONG&gt; (sheet = prop, year = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;2014&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, DATAFILE = &lt;/SPAN&gt;"&lt;SPAN&gt;(hidden)&lt;/SPAN&gt;"&lt;SPAN class="s2"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;%&lt;STRONG&gt;&lt;I&gt;import&lt;/I&gt;&lt;/STRONG&gt; (sheet = prop, year = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;2015&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, DATAFILE = &lt;/SPAN&gt;"(hidden)"&lt;SPAN class="s2"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Data&lt;/SPAN&gt; hs.propogated;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Set&lt;/SPAN&gt; import_2013_prop import_2014_prop import_2015_prop;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;attrib&lt;/SPAN&gt; procdatetime &lt;SPAN class="s2"&gt;format&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;datetime19.&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;procdatetime=input(put(proc_start_date,&lt;SPAN class="s3"&gt;date9.&lt;/SPAN&gt;)||put(proc_start_time,&lt;SPAN class="s3"&gt;time8.&lt;/SPAN&gt;),&lt;SPAN class="s3"&gt;datetime.&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p3"&gt;run&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=hs.propogated;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;by&lt;/SPAN&gt; registry_ procedure &lt;SPAN class="s2"&gt;descending&lt;/SPAN&gt; procdatetime ;&lt;/P&gt;&lt;P class="p2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/SPAN&gt; hs.coded_propogated;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;Set&lt;/SPAN&gt; hs.propogated;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;by&lt;/SPAN&gt; REGISTRY_;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;KEEP&lt;/SPAN&gt; REGISTRY_ &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;first_headCT first_blood ;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;RETAIN&lt;/SPAN&gt; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;first_headCT first_blood ;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;IF&lt;/SPAN&gt; FIRST.REGISTRY_ &lt;SPAN class="s2"&gt;THEN&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;do&lt;/SPAN&gt;; &amp;nbsp;first_headCT = &lt;SPAN class="s3"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;; &amp;nbsp;first_blood = &lt;SPAN class="s3"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;; &amp;nbsp;END&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;if&lt;/SPAN&gt; procedure = &lt;SPAN class="s5"&gt;'BLOOD'&lt;/SPAN&gt; and procdatetime NE &lt;SPAN class="s3"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;then&lt;/SPAN&gt; first_blood=procdatetime;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;if&lt;/SPAN&gt; procedure = &lt;SPAN class="s5"&gt;'HEADCT'&lt;/SPAN&gt; and procdatetime NE &lt;SPAN class="s3"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;then&lt;/SPAN&gt; first_headct=procdatetime;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s1"&gt;format&lt;/SPAN&gt; first_headct first_blood &lt;SPAN class="s2"&gt;datetime19.&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;IF&lt;/SPAN&gt; LAST.REGISTRY_ &lt;SPAN class="s1"&gt;THEN&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;OUTPUT&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p3"&gt;Run&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; hs.coded_unique;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;set&lt;/SPAN&gt;&amp;nbsp;import_2013_unique import_2014_unique import_2015_unique;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;attrib&lt;/SPAN&gt; arrivaldatetime &lt;SPAN class="s2"&gt;format&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;datetime19.&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;arrivaldatetime=input(put(HOSPARRIVALDATE,&lt;SPAN class="s3"&gt;date9.&lt;/SPAN&gt;)||put(HOSPARRIVALTIME,&lt;SPAN class="s3"&gt;time8.&lt;/SPAN&gt;),&lt;SPAN class="s3"&gt;datetime.&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p2"&gt;run;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=hs.coded_propogated; &lt;SPAN class="s2"&gt;by&lt;/SPAN&gt; registry_; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=hs.coded_unique; &lt;SPAN class="s2"&gt;by&lt;/SPAN&gt; registry_; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; hs.merged;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;merge&lt;/SPAN&gt; hs.coded_propogated hs.coded_unique;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;by&lt;/SPAN&gt; registry_;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;arrival_to_ct =&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;first_headCT - arrivaldatetime;&lt;/P&gt;&lt;P class="p1"&gt;ct_to_blood = first_headCT - first_blood ;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;format&lt;/SPAN&gt; arrival_to_ct ct_to_blood &lt;SPAN class="s3"&gt;hhmm.&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p3"&gt;run&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; merged;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;set&lt;/SPAN&gt; hs.merged (&lt;SPAN class="s2"&gt;keep&lt;/SPAN&gt; = registry_ first_headCT first_blood hosparrivaltime hosparrivaldate arrivaldatetime arrival_to_ct ct_to_blood);&lt;/P&gt;&lt;P class="p2"&gt;run&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;EXPORT&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;DATA&lt;/SPAN&gt;= WORK.MERGED&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;OUTFILE&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;= &lt;/SPAN&gt;"\\vmware-host\Shared Folders\Desktop\merged.csv"&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;DBMS&lt;/SPAN&gt;=CSV LABEL &lt;SPAN class="s2"&gt;REPLACE&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;PUTNAMES=YES;&lt;/P&gt;&lt;P class="p4"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 21:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269882#M58181</guid>
      <dc:creator>ksalottolo</dc:creator>
      <dc:date>2016-05-11T21:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating military time and date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269883#M58182</link>
      <description>&lt;P&gt;Better use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;attrib arrivaldatetime format=datetime19.;
arrivaldatetime = dhms(HOSPARRIVALDATE, hour(HOSPARRIVALTIME), minute(HOSPARRIVALTIME), second(HOSPARRIVALTIME));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;your code was missing a separator between date and time.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 21:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269883#M58182</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-11T21:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating military time and date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269889#M58186</link>
      <description>&lt;P&gt;so simple- thanks for the fix!&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 21:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenating-military-time-and-date/m-p/269889#M58186</guid>
      <dc:creator>ksalottolo</dc:creator>
      <dc:date>2016-05-11T21:03:56Z</dc:date>
    </item>
  </channel>
</rss>

