<?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: I'm having the value date and time variable but i want dateandtime in one variable? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-m-having-the-value-date-and-time-variable-but-i-want/m-p/683180#M206905</link>
    <description>I have tried this but i donna whether it right or wrong.&lt;BR /&gt;please correct me .&lt;BR /&gt;data a;&lt;BR /&gt;a='10dec2019'd;&lt;BR /&gt;b='10:12:30't;&lt;BR /&gt;format a date9. b time8.;&lt;BR /&gt;run;&lt;BR /&gt;data ab;&lt;BR /&gt;set a;&lt;BR /&gt;c=put(a,date9.);&lt;BR /&gt;d=put(b,time8.);&lt;BR /&gt;g=input(catx(':',put(a,date9.),put(b,time8.)),datetime20.);&lt;BR /&gt;format g datetime20.;&lt;BR /&gt;run;</description>
    <pubDate>Fri, 11 Sep 2020 07:22:13 GMT</pubDate>
    <dc:creator>MSK4</dc:creator>
    <dc:date>2020-09-11T07:22:13Z</dc:date>
    <item>
      <title>I'm having the value date and time variable but i want dateandtime in one variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-having-the-value-date-and-time-variable-but-i-want/m-p/683172#M206902</link>
      <description>&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;a='10jan2012'd;&lt;/P&gt;&lt;P&gt;b='10:20:30't;&lt;/P&gt;&lt;P&gt;format a date9. b time8.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;but i want output like this 10jan2012:10:20:30&lt;/P&gt;&lt;P&gt;how can i add two values?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 07:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-having-the-value-date-and-time-variable-but-i-want/m-p/683172#M206902</guid>
      <dc:creator>MSK4</dc:creator>
      <dc:date>2020-09-11T07:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having the value date and time variable but i want dateandtime in one variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-having-the-value-date-and-time-variable-but-i-want/m-p/683180#M206905</link>
      <description>I have tried this but i donna whether it right or wrong.&lt;BR /&gt;please correct me .&lt;BR /&gt;data a;&lt;BR /&gt;a='10dec2019'd;&lt;BR /&gt;b='10:12:30't;&lt;BR /&gt;format a date9. b time8.;&lt;BR /&gt;run;&lt;BR /&gt;data ab;&lt;BR /&gt;set a;&lt;BR /&gt;c=put(a,date9.);&lt;BR /&gt;d=put(b,time8.);&lt;BR /&gt;g=input(catx(':',put(a,date9.),put(b,time8.)),datetime20.);&lt;BR /&gt;format g datetime20.;&lt;BR /&gt;run;</description>
      <pubDate>Fri, 11 Sep 2020 07:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-having-the-value-date-and-time-variable-but-i-want/m-p/683180#M206905</guid>
      <dc:creator>MSK4</dc:creator>
      <dc:date>2020-09-11T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having the value date and time variable but i want dateandtime in one variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-having-the-value-date-and-time-variable-but-i-want/m-p/683183#M206906</link>
      <description>&lt;P&gt;try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;datetime = dhms(a, hour(b), minutes(b), seconds(b));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Sep 2020 07:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-having-the-value-date-and-time-variable-but-i-want/m-p/683183#M206906</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-09-11T07:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having the value date and time variable but i want dateandtime in one variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-having-the-value-date-and-time-variable-but-i-want/m-p/683224#M206920</link>
      <description>data have;&lt;BR /&gt;a='10jan2012'd;&lt;BR /&gt;b='10:20:30't;&lt;BR /&gt;want=dhms(a,0,0,b);&lt;BR /&gt;format a date9. b time8. want datetime20.;&lt;BR /&gt;&lt;BR /&gt;run;</description>
      <pubDate>Fri, 11 Sep 2020 11:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-having-the-value-date-and-time-variable-but-i-want/m-p/683224#M206920</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-11T11:49:26Z</dc:date>
    </item>
  </channel>
</rss>

