<?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 date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/invalid-numeric-data-error-in-date/m-p/337749#M76759</link>
    <description>&lt;P&gt;This is because you do not have a SAS date value, but a string containing a human-readable date.&lt;/P&gt;
&lt;P&gt;First convert to a SAS date value:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data trt1;
set trt;
format SEENDTC_num SESTDTC_num yymmddd10.;
SEENDTC_num = input(SEENDTC,yymmdd10.);
SESTDTC_num = input(SESTDTC,yymmdd10.);
exp = (SEENDTC_num - SESTDTC_num + 1);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Mar 2017 08:56:17 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-03-03T08:56:17Z</dc:date>
    <item>
      <title>invalid numeric data  error in date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/invalid-numeric-data-error-in-date/m-p/337748#M76758</link>
      <description>&lt;P&gt;I have start and stop date in &amp;nbsp;2016-02-11 and&amp;nbsp;2016-02-24 formats and i am doing the below code:&lt;/P&gt;&lt;P&gt;data trt1;&lt;BR /&gt;set trt;&lt;BR /&gt;exp = (SEENDTC-SESTDTC+1);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i get the below error message and i even tried to give format statement but still its not working. any help?&lt;/P&gt;&lt;P&gt;NOTE: Invalid numeric data, SEENDTC='2016-02-24' , at line 161 column 11.&lt;BR /&gt;NOTE: Invalid numeric data, SESTDTC='2016-02-11' , at line 161 column 19.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 08:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/invalid-numeric-data-error-in-date/m-p/337748#M76758</guid>
      <dc:creator>alexdsa310</dc:creator>
      <dc:date>2017-03-03T08:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: invalid numeric data  error in date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/invalid-numeric-data-error-in-date/m-p/337749#M76759</link>
      <description>&lt;P&gt;This is because you do not have a SAS date value, but a string containing a human-readable date.&lt;/P&gt;
&lt;P&gt;First convert to a SAS date value:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data trt1;
set trt;
format SEENDTC_num SESTDTC_num yymmddd10.;
SEENDTC_num = input(SEENDTC,yymmdd10.);
SESTDTC_num = input(SESTDTC,yymmdd10.);
exp = (SEENDTC_num - SESTDTC_num + 1);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Mar 2017 08:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/invalid-numeric-data-error-in-date/m-p/337749#M76759</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-03T08:56:17Z</dc:date>
    </item>
  </channel>
</rss>

