<?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: mdy function inside proc sql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/mdy-function-inside-proc-sql/m-p/59953#M16966</link>
    <description>&amp;gt; The data step seems to be more tolerant&lt;BR /&gt;
&lt;BR /&gt;
That's just what I'm wondering. For me, it seems somewhat illogical that rules concerning data types may vary depending on context. &lt;BR /&gt;
&lt;BR /&gt;
Well, this causes no real practical problems for me, I'm just curious and would like to know why the language has been designed in that way. Plus, I have to remember what is allowed where.</description>
    <pubDate>Tue, 03 Aug 2010 12:57:03 GMT</pubDate>
    <dc:creator>kranikai_2</dc:creator>
    <dc:date>2010-08-03T12:57:03Z</dc:date>
    <item>
      <title>mdy function inside proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mdy-function-inside-proc-sql/m-p/59951#M16964</link>
      <description>Why does   &lt;BR /&gt;
&lt;BR /&gt;
	my_date = mdy ('08', '06', '2010');&lt;BR /&gt;
&lt;BR /&gt;
work perfectly well inside data steps, but inside proc sql, it generates an error message:&lt;BR /&gt;
&lt;BR /&gt;
	ERROR: Function MDY requires a numeric expression as argument 1.&lt;BR /&gt;
	ERROR: Function MDY requires a numeric expression as argument 2.&lt;BR /&gt;
	ERROR: Function MDY requires a numeric expression as argument 3.</description>
      <pubDate>Tue, 03 Aug 2010 10:06:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mdy-function-inside-proc-sql/m-p/59951#M16964</guid>
      <dc:creator>kranikai_2</dc:creator>
      <dc:date>2010-08-03T10:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: mdy function inside proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mdy-function-inside-proc-sql/m-p/59952#M16965</link>
      <description>MDY requires numeric values as input. Your statement should therefore look like:&lt;BR /&gt;
  my_date = mdy (08, 06, 2010);&lt;BR /&gt;
&lt;BR /&gt;
The data step seems to be more tolerant but even there you get the following note with you code:&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Character values have been converted to numeric values&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Tue, 03 Aug 2010 12:05:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mdy-function-inside-proc-sql/m-p/59952#M16965</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-08-03T12:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: mdy function inside proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mdy-function-inside-proc-sql/m-p/59953#M16966</link>
      <description>&amp;gt; The data step seems to be more tolerant&lt;BR /&gt;
&lt;BR /&gt;
That's just what I'm wondering. For me, it seems somewhat illogical that rules concerning data types may vary depending on context. &lt;BR /&gt;
&lt;BR /&gt;
Well, this causes no real practical problems for me, I'm just curious and would like to know why the language has been designed in that way. Plus, I have to remember what is allowed where.</description>
      <pubDate>Tue, 03 Aug 2010 12:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mdy-function-inside-proc-sql/m-p/59953#M16966</guid>
      <dc:creator>kranikai_2</dc:creator>
      <dc:date>2010-08-03T12:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: mdy function inside proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mdy-function-inside-proc-sql/m-p/59954#M16967</link>
      <description>Suggest you contact SAS tech support with your concern - unless you are merely broadcasting into this digital fjord, not necessarily looking for a response from an audience, comprised mostly of SAS users, not SAS software developers.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 03 Aug 2010 14:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mdy-function-inside-proc-sql/m-p/59954#M16967</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-03T14:24:31Z</dc:date>
    </item>
  </channel>
</rss>

