<?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: Function MDY() in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128423#M6740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think _NULL_ has identified the likely problem. Try x=mdy(round(month), 1, 2012);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 16:51:24 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2012-05-29T16:51:24Z</dc:date>
    <item>
      <title>Function MDY()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128421#M6738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have problem dealing with function mdy().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to evaluate mdy(4,1,2012), I get wrong answer in a 64bit system with SAS9.2. Specifically, mdy(4,1,2012)='01MAR2012'd after formatting in date9.. However, if I try to evaluate in a 32bit system with SAS9.1.3, I get correct answer, i.e., '01APR2012'd. Can someone please help? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 16:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128421#M6738</guid>
      <dc:creator>rkong13</dc:creator>
      <dc:date>2012-05-29T16:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function MDY()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128422#M6739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you telling the whole story?&amp;nbsp; Are you using integer constants or variables?&amp;nbsp; As you can see from this example you can create a variable that SAS will show as 4 but MDY thinks is 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;18 data _null_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;19 m = 4-1e-12;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20 x = mdy(m,1,2012);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;21 put m= x=date9.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;22 run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m=4 x=01MAR2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 16:40:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128422#M6739</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-05-29T16:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Function MDY()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128423#M6740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think _NULL_ has identified the likely problem. Try x=mdy(round(month), 1, 2012);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 16:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128423#M6740</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-05-29T16:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function MDY()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128424#M6741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, both of you, data_null_ and Rick. You are absolutely right! Interesting, 32bit and 64bit (or maybe SAS9.1.3 and SAS9.2) work a slightly differently!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 17:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128424#M6741</guid>
      <dc:creator>rkong13</dc:creator>
      <dc:date>2012-05-29T17:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function MDY()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128425#M6742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's the 64-bits.&amp;nbsp; Loops/iteration like the following "surprise me" more often on 64-bits:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;j = 0;&lt;/P&gt;&lt;P&gt;do i = 0 to 1 by 0.1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; month = i*10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; d = month-j; /* mathematically, this is 0, but not numerically */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; put d 20.18;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; j = j +1;&lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 17:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Function-MDY/m-p/128425#M6742</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-05-29T17:55:22Z</dc:date>
    </item>
  </channel>
</rss>

