<?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: DateTime Calculations in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620685#M77185</link>
    <description>Why cannot you not do the data manipulation? The code is the same regardless if it's 10 or 100,000 rows. The 'have' step is to create raw data from your data set but you can just use your actual data, not the HAVE data set.&lt;BR /&gt;</description>
    <pubDate>Tue, 28 Jan 2020 22:03:37 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-01-28T22:03:37Z</dc:date>
    <item>
      <title>DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/619684#M77117</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have trouble calculating with SAS Datetime all the time. Please provide me your suggestions on this problem, I really appreciate all for helping many beginners with SAS. I have a dataset with two columns with datetimes and some demographic variables (table below): both incident_es and incident_ei are character variables. I want to calculate number of observations within three hours of incident_es. Can somebody help me with this please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;gender&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;age&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;incident_es&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;incident_ei&lt;/STRONG&gt;&lt;/TD&gt;&lt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;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;TD&gt;8/25/2019 0:06&lt;/TD&gt;&lt;TD&gt;25AUG19:00:30:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;47&lt;/TD&gt;&lt;TD&gt;7/12/2019 18:33&lt;/TD&gt;&lt;TD&gt;12JUL19:18:52:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;TD&gt;8/15/2019 0:37&lt;/TD&gt;&lt;TD&gt;15AUG19:00:56:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;37&lt;/TD&gt;&lt;TD&gt;7/28/2019 18:52&lt;/TD&gt;&lt;TD&gt;28JUL19:19:15:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;37&lt;/TD&gt;&lt;TD&gt;8/8/2019 12:08&lt;/TD&gt;&lt;TD&gt;08AUG19:12:34:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 23 Jan 2020 21:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/619684#M77117</guid>
      <dc:creator>Malathi13</dc:creator>
      <dc:date>2020-01-23T21:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/619706#M77118</link>
      <description>&lt;P&gt;I had to really manipulate the character string in the first date time column in the where clause, but I believe this works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length incident_es $20 incident_ei $20;
gender='M'; age=30;	incident_es='7/5/2019 1:07'; incident_ei='05JUL19:01:45:00'; output;
gender='M'; age=65;	incident_es='7/7/2019 20:37';	incident_ei='07JUL19:21:14:00'; output;
gender='M'; age=25;	incident_es='7/20/2019 23:01';	incident_ei='20JUL19:23:24:00'; output;
gender='F'; age=30;	incident_es='8/10/2019 15:41';	incident_ei='10AUG19:16:34:00'; output;
gender='M'; age=64;	incident_es='9/12/2019 17:50';	incident_ei='12SEP19:18:30:00'; output;
gender='M'; age=55;	incident_es='7/29/2019 13:27';	incident_ei='29JUL19:14:10:00'; output; 
gender='M';	age=39;	incident_es='9/22/2019 0:46';	incident_ei='22SEP19:01:18:00'; output;
gender='F';	age=56;	incident_es='9/1/2019 19:35';	incident_ei='01SEP19:20:00:00'; output;
gender='F';	age=56;	incident_es='8/25/2019 0:06';	incident_ei='25AUG19:00:30:00'; output;
gender='F';	age=47;	incident_es='7/12/2019 18:33';	incident_ei='12JUL19:18:52:00'; output;
gender='F';	age=41;	incident_es='8/15/2019 0:37';	incident_ei='15AUG19:00:56:00'; output;
gender='F';	age=37;	incident_es='7/28/2019 18:52';	incident_ei='28JUL19:19:15:00'; output;
gender='F';	age=37;	incident_es='8/8/2019 12:08';	incident_ei='08AUG19:12:34:00'; output;


run;

proc sql;
select count(*) as count 
from have
where abs(input(put(input(substr(incident_es,1,index(incident_es,' ')-1),mmddyy10.),date7.)||':'||substr(incident_es,index(incident_es,' ')+1),datetime.) - input(incident_ei,datetime.))/60/60 &amp;lt; 3;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm sure someone else can figure out a much cleaner way to get SAS to recognize the datetime values in the first column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 23:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/619706#M77118</guid>
      <dc:creator>JeffMaggio</dc:creator>
      <dc:date>2020-01-23T23:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/619874#M77125</link>
      <description>&lt;P&gt;Questions/things to consider:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;There are no dates within 3 hours of each other in your data set based on the incident_ES variable, there are no dates on the same day at all.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Is the rule within three hours of incident_es or is it within three hours of incident_ei?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Is the incident_ei variable relevant?&lt;/LI&gt;
&lt;LI&gt;Is it within three hours in either direction or just three hours after or before?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You can convert your character variable to datetime using the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;incident_ei_dt = input(incident_ei, anydtdtm.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/91804"&gt;@Malathi13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have trouble calculating with SAS Datetime all the time. Please provide me your suggestions on this problem, I really appreciate all for helping many beginners with SAS. I have a dataset with two columns with datetimes and some demographic variables (table below): both incident_es and incident_ei are character variables. I want to calculate number of observations within three hours of incident_es. Can somebody help me with this please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;gender&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;age&lt;/STRONG&gt;&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D&gt;22SEP19:01:18:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;TD&gt;56&lt;/TD&gt;
&lt;TD&gt;9/1/2019 19:35&lt;/TD&gt;
&lt;TD&gt;01SEP19:20:00:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;TD&gt;56&lt;/TD&gt;
&lt;TD&gt;8/25/2019 0:06&lt;/TD&gt;
&lt;TD&gt;25AUG19:00:30:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;TD&gt;47&lt;/TD&gt;
&lt;TD&gt;7/12/2019 18:33&lt;/TD&gt;
&lt;TD&gt;12JUL19:18:52:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;TD&gt;41&lt;/TD&gt;
&lt;TD&gt;8/15/2019 0:37&lt;/TD&gt;
&lt;TD&gt;15AUG19:00:56:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;TD&gt;37&lt;/TD&gt;
&lt;TD&gt;7/28/2019 18:52&lt;/TD&gt;
&lt;TD&gt;28JUL19:19:15:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;TD&gt;37&lt;/TD&gt;
&lt;TD&gt;8/8/2019 12:08&lt;/TD&gt;
&lt;TD&gt;08AUG19:12:34:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 17:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/619874#M77125</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-24T17:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/619922#M77128</link>
      <description>&lt;P&gt;To add to Reeza's comments, I'd suggest reading&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=n0q9ylcaccjgjrn19hvqnd9cte8p.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=n0q9ylcaccjgjrn19hvqnd9cte8p.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;for thorough coverage of the concepts.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 20:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/619922#M77128</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2020-01-24T20:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620238#M77151</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/91804"&gt;@Malathi13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A warning: Following&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;suggestion and reading the character datetime values with the informat anydtdtm. can give unexpected results. Data seems to be OK, but the conversion gets dates and months wrong in some cases. See what happens to the two datetime strings from your input in the following example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	length incident_es $22;
	incident_es='7/5/2019 1:07'; output;
	incident_es='7/20/2019 23:01'; output;
run;

data want; set have;
	dt = input(incident_es,anydtdtm.);
	put incident_es ' ' @20 dt datetime.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The result is:&lt;/P&gt;
&lt;P&gt;7/5/2019 1:07&amp;nbsp; &amp;nbsp; &amp;nbsp; 07MAY19:01:07:00&lt;BR /&gt;7/20/2019 23:01&amp;nbsp; 20JUL19:23:01:00&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First observation is read as &lt;STRONG&gt;ddmm&lt;/STRONG&gt;yyyy, and the second as &lt;STRONG&gt;mmdd&lt;/STRONG&gt;yyyy. An error like that is difficult to spot, because all observations have a valid datatime, and you might end up with a wrong analysis based on bad data in your next paper.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 17:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620238#M77151</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2020-01-27T17:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620282#M77152</link>
      <description>&lt;P&gt;Note that the ANYDTxxx informats are not necessarily wrong.&amp;nbsp;But you do need to know how they work since they are going to GUESS how to interpret the strings.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;3035  data want; set have;
3036  	dt = input(incident_es,anydtdtm.);
3037  	put incident_es ' ' @20 dt datetime.;
3038  run;

7/5/2019 1:07      05JUL19:01:07:00
7/20/2019 23:01    20JUL19:23:01:00&lt;/PRE&gt;
&lt;P&gt;In your example the issue is that your current locale setting is one that tells the informats that they should prefer DMY order over MDY order when the values are ambiguous. That is why I tell people to always use DATE or YYMMDD formats for dates.&amp;nbsp; This will eliminate the confusion.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 18:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620282#M77152</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-27T18:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620567#M77176</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tell people that they should never depend on SAS guessing anything, like using any-whatever informats or let proc import determine column types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wasn't aware of the&amp;nbsp;the consequence of the locale setting for the behaviour of the anydtdte-informat, until I once i found myself&amp;nbsp; in an embarassing situation&amp;nbsp; when sombody in the audience could prove that my presentation was based on garbled data. But it seems to be a problem limited to european SAS users reading ddmmyy-dates.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 17:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620567#M77176</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2020-01-28T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620676#M77182</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/180206" target="_self"&gt;&lt;SPAN style="box-sizing: inherit;"&gt;Hi @JeffMaggio,&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="box-sizing: inherit;"&gt;I can't do the data manipulation in the dataset as I have 100,000 observations in my dataset. It is impossible to manipulate at the data step.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="box-sizing: inherit;"&gt;I will try other options and let you all know!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="box-sizing: inherit;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="box-sizing: inherit;"&gt;M&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620676#M77182</guid>
      <dc:creator>Malathi13</dc:creator>
      <dc:date>2020-01-28T21:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620678#M77183</link>
      <description>Hi All,&lt;BR /&gt;thank you so much for your wonderful suggestions. I was looking for something within three hours of incident_es. I will try your suggestions and let you know. Sorry for the late reply and also I tried anydttm in the input function, didn't work.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Malathi13</description>
      <pubDate>Tue, 28 Jan 2020 21:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620678#M77183</guid>
      <dc:creator>Malathi13</dc:creator>
      <dc:date>2020-01-28T21:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime Calculations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620685#M77185</link>
      <description>Why cannot you not do the data manipulation? The code is the same regardless if it's 10 or 100,000 rows. The 'have' step is to create raw data from your data set but you can just use your actual data, not the HAVE data set.&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2020 22:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DateTime-Calculations/m-p/620685#M77185</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-28T22:03:37Z</dc:date>
    </item>
  </channel>
</rss>

