<?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: DATDIF function in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536989#M7075</link>
    <description>&lt;P&gt;same error with 30/360 also .&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 07:57:29 GMT</pubDate>
    <dc:creator>Shrutibhatnagar</dc:creator>
    <dc:date>2019-02-20T07:57:29Z</dc:date>
    <item>
      <title>DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536984#M7073</link>
      <description>&lt;DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;73 data testout;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 set grocery_coupons(keep= couponexpiry);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 today=today();&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 format today date9.;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 format coupon_issuance_date date9.;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 mon_diff_coupexp=intck('month',couponexpiry,today);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 week_diff_coupexp=intck('week',couponexpiry,today);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 day_diff_coupexp=intck('day',couponexpiry,today);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 /*from 31-Mar-14*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 Day='31-Mar-14'd;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 mon_diff_coupexp1=intck('month',couponexpiry,day);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 week_diff_coupexp1=intck('week',couponexpiry,day);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 day_diff_coupexp1=intck('day',couponexpiry,day);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88 /*question2*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89 coupon_issuance_date=intnx('month',couponexpiry,3);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90 /*question3 -30-sep-14*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91 day2='30-sep-14'd;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;92 day_diff_coupexp2=datdif(day2,couponexpiry,'30/act');&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;93 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19774,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=20FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=261&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1826 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=6 day_diff_coupexp1=39 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=1&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19775,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=21FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=261&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1825 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=6 day_diff_coupexp1=38 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=2&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19776,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=22FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=261&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1824 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=6 day_diff_coupexp1=37 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=3&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19777,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=23FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1823 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=36 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=4&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19778,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=24FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1822 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=35 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=5&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19779,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=25FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1821 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=34 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=6&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19780,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=26FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1820 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=33 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=7&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19781,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=27FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1819 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=32 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=8&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19782,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=28FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1818 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=31 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=9&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19782,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=28FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1818 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=31 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=10&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19783,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=01MAR2014 today=20FEB2019 coupon_issuance_date=01JUN2014 mon_diff_coupexp=59 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1817 Day=19813 mon_diff_coupexp1=0 week_diff_coupexp1=5 day_diff_coupexp1=30 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=11&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19784,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=02MAR2014 today=20FEB2019 coupon_issuance_date=01JUN2014 mon_diff_coupexp=59 week_diff_coupexp=259&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1816 Day=19813 mon_diff_coupexp1=0 week_diff_coupexp1=4 day_diff_coupexp1=29 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=12&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19785,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=03MAR2014 today=20FEB2019 coupon_issuance_date=01JUN2014 mon_diff_coupexp=59 week_diff_coupexp=259&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1815 Day=19813 mon_diff_coupexp1=0 week_diff_coupexp1=4 day_diff_coupexp1=28 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=13&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19786,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=04MAR2014 today=20FEB2019 coupon_issuance_date=01JUN2014 mon_diff_coupexp=59 week_diff_coupexp=259&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1814 Day=19813 mon_diff_coupexp1=0 week_diff_coupexp1=4 day_diff_coupexp1=27 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=14&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19787,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=05MAR2014 today=20FEB2019 coupon_issuance_date=01JUN2014 mon_diff_coupexp=59 week_diff_coupexp=259&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1813 Day=19813 mon_diff_coupexp1=0 week_diff_coupexp1=4 day_diff_coupexp1=26 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=15&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19774,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=20FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=261&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1826 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=6 day_diff_coupexp1=39 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=16&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19776,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=22FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=261&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1824 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=6 day_diff_coupexp1=37 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=17&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19777,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=23FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1823 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=36 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=18&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19778,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=24FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1822 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=35 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=19&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Invalid argument to function DATDIF(19996,19779,'30/act') at line 92 column 19.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;couponexpiry=25FEB2014 today=20FEB2019 coupon_issuance_date=01MAY2014 mon_diff_coupexp=60 week_diff_coupexp=260&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;day_diff_coupexp=1821 Day=19813 mon_diff_coupexp1=1 week_diff_coupexp1=5 day_diff_coupexp1=34 day2=19996 day_diff_coupexp2=.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;_ERROR_=1 _N_=20&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Missing values were generated as a result of performing an operation on missing values.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Each place is given by: (Number of times) at (Line):(Column).&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;276 at 78:18 276 at 79:19 276 at 80:18 276 at 84:19 276 at 85:20 276 at 86:19 276 at 89:22&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;missing values.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Each place is given by: (Number of times) at (Line):(Column).&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;1680 at 92:19&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 1680 observations read from the data set WORK.GROCERY_COUPONS.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The data set WORK.TESTOUT has 1680 observations and 12 variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.36 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.37 second&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt; GETTING WARNINGS THIS WAY NOT GETTING RESULT FOR DATDIF FUNCTION &lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 07:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536984#M7073</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-02-20T07:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536986#M7074</link>
      <description>&lt;P&gt;Always post code and log using the "Insert [SAS] Code" functions -&amp;gt; running man icon! This is hardly readable mess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The function is documented &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1gz65986b9jqin19zk9xqbi7ns3.htm&amp;amp;locale=de" target="_self"&gt;here&lt;/A&gt;. It seems that "30/act" is not a valid value for the third parameter.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 07:29:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536986#M7074</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-20T07:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536989#M7075</link>
      <description>&lt;P&gt;same error with 30/360 also .&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 07:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536989#M7075</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-02-20T07:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536996#M7076</link>
      <description>&lt;P&gt;my answer is coming in negative values and it is saying that middle argument is invalid .&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 08:46:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536996#M7076</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-02-20T08:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536998#M7077</link>
      <description>&lt;P&gt;Please check your data. Afaik the only invalid middle-argument (aka end-date) is a missing value.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 08:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/536998#M7077</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-20T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537001#M7078</link>
      <description>&lt;P&gt;then how come it is giving an answer . the only problem is it gives a nagative integer with warning .&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 09:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537001#M7078</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-02-20T09:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537003#M7079</link>
      <description>&lt;P&gt;Please post the log of your last run and show data.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 09:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537003#M7079</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-20T09:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537007#M7080</link>
      <description>&lt;P&gt;Post example test data in the form of a datastep:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We cannot solve data issues without seeing the data!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the log:&lt;/P&gt;
&lt;PRE&gt;couponexpiry=20FEB2014&lt;/PRE&gt;
&lt;P&gt;That looks like text, when you compare it to the other 'date' in your code:&lt;/P&gt;
&lt;PRE&gt;day2=19996&lt;/PRE&gt;
&lt;P&gt;Both values have to be valid dates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 09:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537007#M7080</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-02-20T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537013#M7081</link>
      <description>&lt;P&gt;log and data are as follows&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="log.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27302iFE18F4E95C8BA536/image-size/large?v=v2&amp;amp;px=999" role="button" title="log.PNG" alt="log.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 09:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537013#M7081</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-02-20T09:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537016#M7082</link>
      <description>&lt;P&gt;Sorry, but screenshots and Excel-files are of no use. See the message of &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;, it explains how to post data in usable form.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 09:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/537016#M7082</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-20T09:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF function</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/543804#M7226</link>
      <description>&lt;P&gt;It may be that you don't have real SAS dates or that you have incorrectly used the datdif function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null;
	mydate=DATDIF(19996,19779,'30/act');
	put mydate;
	mydate=datdif('01JUN1996'd,'01SEP1977'd,30/act);
	put mydate;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is hard to tell with so much noise from the code.&amp;nbsp; Make a simple test dataset and get the logic to work then add back into that code all the extra stuff.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 15:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DATDIF-function/m-p/543804#M7226</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-03-17T15:24:38Z</dc:date>
    </item>
  </channel>
</rss>

