<?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 Help Split date Character by comma delimeter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727482#M226276</link>
    <description>&lt;P&gt;Hi There,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a dataset and want to split the date column to only contain the Date and create another column that has the time.&lt;/P&gt;&lt;P&gt;Currently, it is a character variable&amp;nbsp; and 03/17/2021,11:00am&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need it to be split as&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time&lt;/P&gt;&lt;P&gt;03/17/2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11:00am&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 17:18:57 GMT</pubDate>
    <dc:creator>konvickt</dc:creator>
    <dc:date>2021-03-18T17:18:57Z</dc:date>
    <item>
      <title>Help Split date Character by comma delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727482#M226276</link>
      <description>&lt;P&gt;Hi There,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a dataset and want to split the date column to only contain the Date and create another column that has the time.&lt;/P&gt;&lt;P&gt;Currently, it is a character variable&amp;nbsp; and 03/17/2021,11:00am&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need it to be split as&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time&lt;/P&gt;&lt;P&gt;03/17/2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11:00am&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 17:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727482#M226276</guid>
      <dc:creator>konvickt</dc:creator>
      <dc:date>2021-03-18T17:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help Split date Character by comma delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727485#M226278</link>
      <description>SCAN()&lt;BR /&gt;&lt;BR /&gt;date =scan(originalVar, 1, ",");&lt;BR /&gt;time = scan(originalVar, 2, ",");&lt;BR /&gt;&lt;BR /&gt;date_sas = input(date, mmddyy10.);&lt;BR /&gt;time_sas = input(time, time.);&lt;BR /&gt;format date_sas mmddyy10. time_sas time8.;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2021 17:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727485#M226278</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-18T17:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help Split date Character by comma delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727486#M226279</link>
      <description>&lt;P&gt;Thank you so much for the reply. Will give it a try&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 17:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727486#M226279</guid>
      <dc:creator>konvickt</dc:creator>
      <dc:date>2021-03-18T17:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help Split date Character by comma delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727497#M226288</link>
      <description>Hi Reeza, am getting a syntax error on time asking for format when I put in time_sas=input(time,time)&lt;BR /&gt;Error expecting a format name&lt;BR /&gt;Error Syntax error, statement will be ingnored</description>
      <pubDate>Thu, 18 Mar 2021 17:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727497#M226288</guid>
      <dc:creator>konvickt</dc:creator>
      <dc:date>2021-03-18T17:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help Split date Character by comma delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727503#M226291</link>
      <description>For starters you missed the period, it is required. It may not be the correct informat either, see the informat documentation to one that matches your current format.</description>
      <pubDate>Thu, 18 Mar 2021 18:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-Split-date-Character-by-comma-delimeter/m-p/727503#M226291</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-18T18:14:01Z</dc:date>
    </item>
  </channel>
</rss>

