<?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: Invalid Numeric Data Error in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Invalid-Numeric-Data-Error/m-p/500187#M291</link>
    <description>&lt;P&gt;"11AUG1946" is a string used in SAS date literals, but then it needs to be written as "11AUG1946"d. (note the d immediately after the closing quote)&lt;/P&gt;
&lt;P&gt;The string itself is just that, a string, and can't be used where a number is required.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Sep 2018 18:13:10 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-09-30T18:13:10Z</dc:date>
    <item>
      <title>Invalid Numeric Data Error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Invalid-Numeric-Data-Error/m-p/500185#M290</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep getting an error that states invalid numeric data error. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;data demo;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; set dbraw.x_dm;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; **Create four new variables**;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; length RPTDT AGERPT AGETHEN 8 SUBJID $20;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; label RPTDT&amp;nbsp;&amp;nbsp; = "Study Report Date"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGERPT&amp;nbsp; = "Age of Subject aat Time of Report (Yrs)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGETHEN = "Age of Subject at Time of Study (Yrs)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBJID&amp;nbsp; = "Subject ID/Age"&lt;BR /&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; RPTDT = mdy (6,28,13);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; format RPTDT mmddyy10.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; AGERPT = INT((RPTDT - S_BRTHDTC + 1)/365.25);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; AGETHEN = INT((S_ICFDTC - S_BRTHDTC + 1)/365.25);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SUBJID = catx('-',s_siteid,s_subjid,AGERPT);&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is part of the log:&lt;/DIV&gt;&lt;DIV&gt;NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 323:26&amp;nbsp;&amp;nbsp; 324:19&amp;nbsp;&amp;nbsp; 324:30&lt;BR /&gt;NOTE: Invalid numeric data, S_BRTHDTC='11AUG1946' , at line 323 column 26.&lt;BR /&gt;NOTE: Invalid numeric data, S_ICFDTC='14JAN2013' , at line 324 column 19.&lt;BR /&gt;NOTE: Invalid numeric data, S_BRTHDTC='11AUG1946' , at line 324 column 30.&lt;BR /&gt;STUDYID=ABC-123 S_DOMAIN=X_DM S_SITEID=1160 S_SUBJID=2576 S_INIT=S-B COUNTRY=USA REGION=USA S_PAGE=1 S_VISDTC=14JAN2013&lt;BR /&gt;S_VISIT=SCREENING S_VISITNUM=-1 S_ICFDTC=14JAN2013 S_BRTHDTC=11AUG1946 S_AGE=66 S_SEX=M S_ETHNIC=NOT HISPANIC OR LATINO S_RACE1=&lt;BR /&gt;S_RACE2=&amp;nbsp; S_RACE3=&amp;nbsp; S_RACE4=&amp;nbsp; S_RACE5=CHECKED S_RACE6=&amp;nbsp; S_RACEOTH=&amp;nbsp; ROW_NO=0 S_STATUS=CDQC REVIEWED S_SDV_STAT=FULL FORM SDV&lt;BR /&gt;RPTDT=06/28/2013 AGERPT=. AGETHEN=. SUBJID=1160-2576-. _ERROR_=1 _N_=1&lt;/DIV&gt;</description>
      <pubDate>Sun, 30 Sep 2018 17:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Invalid-Numeric-Data-Error/m-p/500185#M290</guid>
      <dc:creator>Patelbb</dc:creator>
      <dc:date>2018-09-30T17:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Numeric Data Error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Invalid-Numeric-Data-Error/m-p/500187#M291</link>
      <description>&lt;P&gt;"11AUG1946" is a string used in SAS date literals, but then it needs to be written as "11AUG1946"d. (note the d immediately after the closing quote)&lt;/P&gt;
&lt;P&gt;The string itself is just that, a string, and can't be used where a number is required.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 18:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Invalid-Numeric-Data-Error/m-p/500187#M291</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-30T18:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Numeric Data Error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Invalid-Numeric-Data-Error/m-p/500188#M292</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for you response. I'm new to SAS so I'm not sure how to fix it. Can you help please?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 18:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Invalid-Numeric-Data-Error/m-p/500188#M292</guid>
      <dc:creator>Patelbb</dc:creator>
      <dc:date>2018-09-30T18:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Numeric Data Error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Invalid-Numeric-Data-Error/m-p/500193#M293</link>
      <description>&lt;P&gt;Start by determining how you get those strings in your data in the first place. I'm 99% sure those should have been valid SAS dates and not character variables.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 18:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Invalid-Numeric-Data-Error/m-p/500193#M293</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-30T18:40:20Z</dc:date>
    </item>
  </channel>
</rss>

