<?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 Error when creatin a yymm8. variable from date in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Error-when-creatin-a-yymm8-variable-from-date/m-p/92217#M666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am trying to create a year-month (e.g&amp;nbsp; 2006-01) variable from my daily date variable using the command MONTH=put(date,yymmd8.),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however it is giving me the error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 877:9&lt;/P&gt;&lt;P&gt;NOTE: Invalid numeric data, ' 2006-01' , at line 877 column 9.&lt;/P&gt;&lt;P&gt;DATE=16803 alhspr=. spread=. year=2006 month=. _ERROR_=1 _N_=2&lt;/P&gt;&lt;P&gt;NOTE: Invalid numeric data, ' 2006-01' , at line 877 column 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this method earlier but i dont know y sas is constantly giving me this&amp;nbsp; error now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Mar 2013 01:06:42 GMT</pubDate>
    <dc:creator>Ahmad</dc:creator>
    <dc:date>2013-03-29T01:06:42Z</dc:date>
    <item>
      <title>Error when creatin a yymm8. variable from date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Error-when-creatin-a-yymm8-variable-from-date/m-p/92217#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am trying to create a year-month (e.g&amp;nbsp; 2006-01) variable from my daily date variable using the command MONTH=put(date,yymmd8.),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however it is giving me the error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 877:9&lt;/P&gt;&lt;P&gt;NOTE: Invalid numeric data, ' 2006-01' , at line 877 column 9.&lt;/P&gt;&lt;P&gt;DATE=16803 alhspr=. spread=. year=2006 month=. _ERROR_=1 _N_=2&lt;/P&gt;&lt;P&gt;NOTE: Invalid numeric data, ' 2006-01' , at line 877 column 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this method earlier but i dont know y sas is constantly giving me this&amp;nbsp; error now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 01:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Error-when-creatin-a-yymm8-variable-from-date/m-p/92217#M666</guid>
      <dc:creator>Ahmad</dc:creator>
      <dc:date>2013-03-29T01:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error when creatin a yymm8. variable from date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Error-when-creatin-a-yymm8-variable-from-date/m-p/92218#M667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have previously defined MONTH as a numeric variable. So SAS cannot figure out how to convert '2006-01' into a number to stick into your numeric variable.&amp;nbsp; The code below illustrates the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length num 8 char $7 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; char = put('01JAN2006'd,yymmd7.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; num = put('01JAN2006'd,yymmd7.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 01:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Error-when-creatin-a-yymm8-variable-from-date/m-p/92218#M667</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-03-29T01:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error when creatin a yymm8. variable from date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Error-when-creatin-a-yymm8-variable-from-date/m-p/92219#M668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks tom it was silly of me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 01:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Error-when-creatin-a-yymm8-variable-from-date/m-p/92219#M668</guid>
      <dc:creator>Ahmad</dc:creator>
      <dc:date>2013-03-29T01:15:43Z</dc:date>
    </item>
  </channel>
</rss>

