<?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: Strange with format e8601dt in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/258409#M49758</link>
    <description>Thanks!</description>
    <pubDate>Wed, 23 Mar 2016 05:19:18 GMT</pubDate>
    <dc:creator>sasmilly</dc:creator>
    <dc:date>2016-03-23T05:19:18Z</dc:date>
    <item>
      <title>Strange with format e8601dt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257206#M49355</link>
      <description>&lt;P&gt;when I run code1 and code 2, different values got for variable num2_1. Anyone can help to explain why? &amp;nbsp;I use SAS EG Version 5.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code1&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;data test;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;var1 = '2015-01-01'; &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;&amp;nbsp;var2 = '2015-01-01T10:00';&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;if length(var1)=10 then num1 = input(strip(var1)||'T10:00',e8601dt.);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;num2_1 = input(strip(var2),e8601dt.);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;num2_2 = input(var2,e8601dt.);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Code 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;data test;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;var1 = '2015-01-01'; &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp;var2 = '2015-01-01T10:00';&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;/*if length(var1)=10 then num1 = input(strip(var1)||'T10:00',e8601dt.);*/&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;num2_1 = input(strip(var2),e8601dt.);&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;num2_2 = input(var2,e8601dt.);&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;run;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 04:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257206#M49355</guid>
      <dc:creator>sasmilly</dc:creator>
      <dc:date>2016-03-17T04:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Strange with format e8601dt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257218#M49356</link>
      <description>&lt;P&gt;Also happens here with SAS 9.2 on AIX. Contact SAS Technical Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The if length(var1) = 10 is irrelevant. Just doing the num1= with using the format causes the next expression to return a missing value. I positively think this is a bug with the format (or format handling routine).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS Which SAS version is behind your EG 5.1?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 07:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257218#M49356</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-17T07:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Strange with format e8601dt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257223#M49358</link>
      <description>&lt;P&gt;Thanks for your reply. SAS 9.3&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 07:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257223#M49358</guid>
      <dc:creator>sasmilly</dc:creator>
      <dc:date>2016-03-17T07:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Strange with format e8601dt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257228#M49359</link>
      <description>&lt;P&gt;These formats were introduced with 9.2, so it is not &lt;U&gt;that&lt;/U&gt; surprising that there are some yet undiscovered bugs that show themselves in certain peculiar situations.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 07:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257228#M49359</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-17T07:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Strange with format e8601dt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257270#M49363</link>
      <description>&lt;P&gt;This is really strange. But with SAS&amp;nbsp;9.4 (TS1M2) I cannot replicate the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257270#M49363</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-03-17T12:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Strange with format e8601dt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257288#M49368</link>
      <description>&lt;P&gt;Neither can I&lt;/P&gt;&lt;P&gt;SAS&amp;nbsp;9.4 (TS1M2 32-bit)&lt;/P&gt;&lt;P&gt;SAS EG 7.1 HF1 (32-bit)&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 13:49:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257288#M49368</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2016-03-17T13:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Strange with format e8601dt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257291#M49369</link>
      <description>&lt;P&gt;Looks like a bug that was introduced in 9.2 (when those formats were added) and weeded out with 9.4.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 13:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/257291#M49369</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-17T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Strange with format e8601dt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/258409#M49758</link>
      <description>Thanks!</description>
      <pubDate>Wed, 23 Mar 2016 05:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-with-format-e8601dt/m-p/258409#M49758</guid>
      <dc:creator>sasmilly</dc:creator>
      <dc:date>2016-03-23T05:19:18Z</dc:date>
    </item>
  </channel>
</rss>

