<?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 Brackets as delimiters? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Brackets-as-delimiters/m-p/679887#M205356</link>
    <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I have created table 'duedatepop1' that contains 3 variables (case_identifier, duedatepop, and note).&amp;nbsp; Note variable is one of two results:&lt;/P&gt;&lt;P&gt;Due Date changed from [empty] to [2020-03-01 00:00:00]&lt;/P&gt;&lt;P&gt;-OR-&lt;/P&gt;&lt;P&gt;Due Date changed from [11/23/2019 12:00 AM] to [2020-04-27 00:00:00]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am needing to parse the date from the second set of brackets into a new table with the same variables in addition to the new date field (duedate), but I've not been able to do so.&amp;nbsp; I'm not sure if the brackets are causing an issue or not.&amp;nbsp; Thanks in advance for any and all assistance rendered.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 19:48:26 GMT</pubDate>
    <dc:creator>hnb_matt_d</dc:creator>
    <dc:date>2020-08-27T19:48:26Z</dc:date>
    <item>
      <title>Brackets as delimiters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Brackets-as-delimiters/m-p/679887#M205356</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I have created table 'duedatepop1' that contains 3 variables (case_identifier, duedatepop, and note).&amp;nbsp; Note variable is one of two results:&lt;/P&gt;&lt;P&gt;Due Date changed from [empty] to [2020-03-01 00:00:00]&lt;/P&gt;&lt;P&gt;-OR-&lt;/P&gt;&lt;P&gt;Due Date changed from [11/23/2019 12:00 AM] to [2020-04-27 00:00:00]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am needing to parse the date from the second set of brackets into a new table with the same variables in addition to the new date field (duedate), but I've not been able to do so.&amp;nbsp; I'm not sure if the brackets are causing an issue or not.&amp;nbsp; Thanks in advance for any and all assistance rendered.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 19:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Brackets-as-delimiters/m-p/679887#M205356</guid>
      <dc:creator>hnb_matt_d</dc:creator>
      <dc:date>2020-08-27T19:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Brackets as delimiters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Brackets-as-delimiters/m-p/679894#M205362</link>
      <description>&lt;P&gt;What code you tried ? and what issues you had?&lt;/P&gt;
&lt;P&gt;Please post&lt;/P&gt;
&lt;P&gt;(1) a sample of data&lt;/P&gt;
&lt;P&gt;(2) the full log (code + messages) of your run&lt;/P&gt;
&lt;P&gt;(3) show what result you expect.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 20:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Brackets-as-delimiters/m-p/679894#M205362</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-08-27T20:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Brackets as delimiters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Brackets-as-delimiters/m-p/679897#M205365</link>
      <description>&lt;P&gt;I am interpreting this as that you have SAS data set with a character variable holding text as shown.&lt;/P&gt;
&lt;P&gt;If, and this a moderately big if , all the text has exactly two sets of values inside [] and at least one word or space between them the following may help:&lt;/P&gt;
&lt;PRE&gt;data example;
   x ="Due Date changed from [11/23/2019 12:00 AM] to [2020-04-27 00:00:00]";

   date = input( scan (x,4,'[]'),yymmdd10.);
   format date date9.;
run;&lt;/PRE&gt;
&lt;P&gt;I am assuming that you wanted an actual SAS date value and use the DATE9 format just to show the date is such. Pick your own format.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 20:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Brackets-as-delimiters/m-p/679897#M205365</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-27T20:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Brackets as delimiters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Brackets-as-delimiters/m-p/679902#M205367</link>
      <description>&lt;P&gt;Minor adjustment, but it worked!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data duedatepop2;&lt;BR /&gt;set work.duedatepop1;&lt;BR /&gt;duedate = input(scan(note,4,'[]'),yymmdd10.);&lt;BR /&gt;format duedate date9.;&lt;BR /&gt;drop note;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 20:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Brackets-as-delimiters/m-p/679902#M205367</guid>
      <dc:creator>hnb_matt_d</dc:creator>
      <dc:date>2020-08-27T20:36:48Z</dc:date>
    </item>
  </channel>
</rss>

