<?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 Can i manipulate the &amp;quot;minutes&amp;quot; in DATETIME column? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-i-manipulate-the-quot-minutes-quot-in-DATETIME-column/m-p/496493#M131330</link>
    <description>&lt;P&gt;Hi everyone, I currently have a few tables that have the same exact DATE but different time, just on the minutes.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;All my tables will have the same date, same hour but different minutes.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Table A

2010-Jan-01 01:00:00

2010-Jan-01 03:00:00

2010-Feb-01 01:00:00

2010-Mar-01 01:00:00&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Table B

2010-Jan-01 01:44:00

2010-Jan-01 03:44:00

2010-Feb-01 01:44:00

2010-Mar-01 01:44:00&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to standardize/manipulate the value in Table B to have the same as Table A. Do take note that my data have more than 100k rows. Furthermore, there are about 100 columns in Table A and another different 100 columns in Table B. All i want to do is to merge table A and B into 1 big table with 200 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do so? I personally never had any luck finding similar topics around. The difficulty for me here is the "minutes".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do hope experts can advise on this.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2018 08:51:04 GMT</pubDate>
    <dc:creator>imdickson</dc:creator>
    <dc:date>2018-09-18T08:51:04Z</dc:date>
    <item>
      <title>Can i manipulate the "minutes" in DATETIME column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-i-manipulate-the-quot-minutes-quot-in-DATETIME-column/m-p/496493#M131330</link>
      <description>&lt;P&gt;Hi everyone, I currently have a few tables that have the same exact DATE but different time, just on the minutes.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;All my tables will have the same date, same hour but different minutes.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Table A

2010-Jan-01 01:00:00

2010-Jan-01 03:00:00

2010-Feb-01 01:00:00

2010-Mar-01 01:00:00&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Table B

2010-Jan-01 01:44:00

2010-Jan-01 03:44:00

2010-Feb-01 01:44:00

2010-Mar-01 01:44:00&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to standardize/manipulate the value in Table B to have the same as Table A. Do take note that my data have more than 100k rows. Furthermore, there are about 100 columns in Table A and another different 100 columns in Table B. All i want to do is to merge table A and B into 1 big table with 200 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do so? I personally never had any luck finding similar topics around. The difficulty for me here is the "minutes".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do hope experts can advise on this.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 08:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-i-manipulate-the-quot-minutes-quot-in-DATETIME-column/m-p/496493#M131330</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-18T08:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can i manipulate the "minutes" in DATETIME column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-i-manipulate-the-quot-minutes-quot-in-DATETIME-column/m-p/496496#M131331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
format a b datetime.;
a=datetime();
b=intnx('minute',intnx('hour',a,0,'b'),44);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Sep 2018 09:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-i-manipulate-the-quot-minutes-quot-in-DATETIME-column/m-p/496496#M131331</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-09-18T09:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can i manipulate the "minutes" in DATETIME column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-i-manipulate-the-quot-minutes-quot-in-DATETIME-column/m-p/496523#M131349</link>
      <description>&lt;P&gt;Hi gamotte, I havent tried the code yet. Thanks by the way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question. The 44 behind is to substitute 44 with 0. Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, i have about 15 tables to be merged and every table has different minutes. It could be 44 or 56 or 07.&lt;/P&gt;&lt;P&gt;For this case, what would be the better way?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 11:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-i-manipulate-the-quot-minutes-quot-in-DATETIME-column/m-p/496523#M131349</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2018-09-18T11:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can i manipulate the "minutes" in DATETIME column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-i-manipulate-the-quot-minutes-quot-in-DATETIME-column/m-p/496527#M131351</link>
      <description>&lt;P&gt;My reply illustrated how the minutes in a datetime can be changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first part&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token function"&gt;intnx&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'hour'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;a&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'b'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;sets the time at the beginning of the hour (modifier 'b' with an increment of 0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token function"&gt;intnx&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'minute'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;...&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;44&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;adds 44 minutes to the time part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your problem, you can only use the first part and set the minutes to 0 in your different datasets.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-i-manipulate-the-quot-minutes-quot-in-DATETIME-column/m-p/496527#M131351</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-09-18T12:01:51Z</dc:date>
    </item>
  </channel>
</rss>

