<?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 have multiple dates in one column. How I can add them in separate columns. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-have-multiple-dates-in-one-column-How-I-can-add-them-in/m-p/954827#M372911</link>
    <description>&lt;P&gt;Agree with the advice.&amp;nbsp; A small tweak to the solution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; do i=1 to 1 + countw(dates,',');&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 31 Dec 2024 18:36:20 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2024-12-31T18:36:20Z</dc:date>
    <item>
      <title>I have multiple dates in one column. How I can add them in separate columns.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-multiple-dates-in-one-column-How-I-can-add-them-in/m-p/954822#M372906</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;dates&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2013-08-13,2013-10-18,2013-12-16,2014-03-07,2014-04-30,2014-06-11,2014-07-24,2014-08-11,2014-09-29,2014-11-24,2015-05-05,2015-08-19,2015-10-19,2016-04-15,2016-06-28,2016-10-28,2017-02-13,2017-11-06&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020-09-25,2020-10-27,2020-12-08,2021-02-02,2021-04-13,2021-06-08,2022-05-06,2022-07-26,2023-02-28&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2022-06-27,2022-08-23,2022-11-07,2022-12-13,2023-01-24&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 31 Dec 2024 16:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-multiple-dates-in-one-column-How-I-can-add-them-in/m-p/954822#M372906</guid>
      <dc:creator>Agha</dc:creator>
      <dc:date>2024-12-31T16:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: I have multiple dates in one column. How I can add them in separate columns.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-multiple-dates-in-one-column-How-I-can-add-them-in/m-p/954825#M372909</link>
      <description>&lt;P&gt;Let me speak from experience, you will be better off if you have all the dates in one column, rather than separate columns. Many times people choose a poor layout for the data, and wind up causing later programming difficulties. So, a word to the wise, put the dates in a single column.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This code assumes your data is in a SAS data set named HAVE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    seq=_n_;
    do i=1 to countw(dates,',');
         date=input(scan(dates,i,','),yymmdd10.);
         output;
    end;
    format date yymmdd10.;
    drop i dates;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 16:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-multiple-dates-in-one-column-How-I-can-add-them-in/m-p/954825#M372909</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-12-31T16:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: I have multiple dates in one column. How I can add them in separate columns.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-multiple-dates-in-one-column-How-I-can-add-them-in/m-p/954827#M372911</link>
      <description>&lt;P&gt;Agree with the advice.&amp;nbsp; A small tweak to the solution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; do i=1 to 1 + countw(dates,',');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Dec 2024 18:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-multiple-dates-in-one-column-How-I-can-add-them-in/m-p/954827#M372911</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-12-31T18:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: I have multiple dates in one column. How I can add them in separate columns.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-multiple-dates-in-one-column-How-I-can-add-them-in/m-p/954836#M372919</link>
      <description>Thanks a lot.&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Dec 2024 20:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-multiple-dates-in-one-column-How-I-can-add-them-in/m-p/954836#M372919</guid>
      <dc:creator>Agha</dc:creator>
      <dc:date>2024-12-31T20:38:12Z</dc:date>
    </item>
  </channel>
</rss>

