<?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 Expected numeric precision behaviour or unexpected issue? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386978#M92733</link>
    <description>&lt;P&gt;I have the SAS code:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%Macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; liblobname(lib,lob);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CREATE TABLE WORK.CLAIMS_&amp;amp;lob AS&lt;/P&gt;&lt;P&gt;SELECT distinct&lt;/P&gt;&lt;P&gt;t1.LOB,&lt;/P&gt;&lt;P&gt;t1.CLAIM_ID,&lt;/P&gt;&lt;P&gt;t1.MEMBER_ID,&lt;/P&gt;&lt;P&gt;t1.MEMBER_AGE,&lt;/P&gt;&lt;P&gt;t1.SERVICE_FROM_DATE,&lt;/P&gt;&lt;P&gt;t1.SERVICE_CATEGORY,&lt;/P&gt;&lt;P&gt;t1.Diag1,&lt;/P&gt;&lt;P&gt;t1.Diag2,&lt;/P&gt;&lt;P&gt;t1.Diag3,&lt;/P&gt;&lt;P&gt;t1.Diag4,&lt;/P&gt;&lt;P&gt;t1.Diag5,&lt;/P&gt;&lt;P&gt;t1.SERVICE_FROM_DATE,&lt;/P&gt;&lt;P&gt;T1.MEDICARE_INDICATOR&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;FROM &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;lib.&lt;STRONG&gt;.F&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;ACETS_CLAIMS t1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;WHERE t1.SERVICE_FROM_DATE &amp;gt;= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;'1Jun2016:0:0:0'dt&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;AND t1.SERVICE_FROM_DATE &amp;lt;= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;'31Jul2017:0:0:0'dt&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;AND T1.MEDICARE_INDICATOR=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'N'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MEND&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; liblobname;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;liblobname&lt;/I&gt;&lt;/STRONG&gt; (KMHP0100,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;coudl not find what is wrong, no error message, but no result ....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;could not resolve, please advise. thank you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;log:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;_&lt;/P&gt;&lt;P&gt;49&lt;/P&gt;&lt;P&gt;1 ! ;*";*/;quit;run;&lt;/P&gt;&lt;P&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space&lt;/P&gt;&lt;P&gt;between a quoted string and the succeeding identifier is recommended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 13:08:16 GMT</pubDate>
    <dc:creator>JHE</dc:creator>
    <dc:date>2017-08-10T13:08:16Z</dc:date>
    <item>
      <title>Expected numeric precision behaviour or unexpected issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386978#M92733</link>
      <description>&lt;P&gt;I have the SAS code:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%Macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; liblobname(lib,lob);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CREATE TABLE WORK.CLAIMS_&amp;amp;lob AS&lt;/P&gt;&lt;P&gt;SELECT distinct&lt;/P&gt;&lt;P&gt;t1.LOB,&lt;/P&gt;&lt;P&gt;t1.CLAIM_ID,&lt;/P&gt;&lt;P&gt;t1.MEMBER_ID,&lt;/P&gt;&lt;P&gt;t1.MEMBER_AGE,&lt;/P&gt;&lt;P&gt;t1.SERVICE_FROM_DATE,&lt;/P&gt;&lt;P&gt;t1.SERVICE_CATEGORY,&lt;/P&gt;&lt;P&gt;t1.Diag1,&lt;/P&gt;&lt;P&gt;t1.Diag2,&lt;/P&gt;&lt;P&gt;t1.Diag3,&lt;/P&gt;&lt;P&gt;t1.Diag4,&lt;/P&gt;&lt;P&gt;t1.Diag5,&lt;/P&gt;&lt;P&gt;t1.SERVICE_FROM_DATE,&lt;/P&gt;&lt;P&gt;T1.MEDICARE_INDICATOR&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;FROM &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;lib.&lt;STRONG&gt;.F&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;ACETS_CLAIMS t1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;WHERE t1.SERVICE_FROM_DATE &amp;gt;= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;'1Jun2016:0:0:0'dt&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;AND t1.SERVICE_FROM_DATE &amp;lt;= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;'31Jul2017:0:0:0'dt&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;AND T1.MEDICARE_INDICATOR=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'N'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MEND&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; liblobname;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;liblobname&lt;/I&gt;&lt;/STRONG&gt; (KMHP0100,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;coudl not find what is wrong, no error message, but no result ....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;could not resolve, please advise. thank you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;log:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;_&lt;/P&gt;&lt;P&gt;49&lt;/P&gt;&lt;P&gt;1 ! ;*";*/;quit;run;&lt;/P&gt;&lt;P&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space&lt;/P&gt;&lt;P&gt;between a quoted string and the succeeding identifier is recommended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386978#M92733</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-08-10T13:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expected numeric precision behaviour or unexpected issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386980#M92734</link>
      <description>&lt;P&gt;My first guess would be that you have an unbalanced quote somewhere else in your code.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386980#M92734</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-10T13:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expected numeric precision behaviour or unexpected issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386984#M92735</link>
      <description>&lt;P&gt;Not enough information to make any diagnosis here. &amp;nbsp;The log snippet indicates unbalanced quotes. &amp;nbsp;You could simplfy your code somewhat also to:&lt;/P&gt;
&lt;PRE&gt;%macro liblonname (lib=,lob=);
  data claims_&amp;amp;lob. (keep=lob--medicare_indicator);
    set &amp;amp;lib..facets_claims;
    where '01JUN2017'd &amp;lt;= datepart(service_from_date) &amp;lt;= '31JUL2017'd
      and medicare_indicator="N";
  run;
%mend liblobname;&lt;/PRE&gt;
&lt;P&gt;Although that whole code could be dropped in favour of putting all &amp;amp;lobs in one dataset and putting &amp;amp; lob as a column, then using by group processing which is both faster and easier to code. &amp;nbsp;Not entirely sure why the whole macro part is there at all, you create a table called lob but never filter on it?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386984#M92735</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-10T13:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expected numeric precision behaviour or unexpected issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386990#M92736</link>
      <description>&lt;P&gt;before it works, not sure what went wrong , dose not working any more....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need %macro for this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386990#M92736</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-08-10T13:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expected numeric precision behaviour or unexpected issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386991#M92737</link>
      <description>&lt;P&gt;ok, I will try .&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/386991#M92737</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-08-10T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expected numeric precision behaviour or unexpected issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/387002#M92740</link>
      <description>&lt;P&gt;run this.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; liblonname (lib=,lob=);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;data claims_&amp;amp;lob, (keep=lob--medicare_indicator);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;set &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;lib.&lt;STRONG&gt;.f&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;acets_claims;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;where &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;'01JUN2017'd&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;lt;= datepart(service_from_date) &amp;lt;= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;'31JUL2017'd&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and medicare_indicator=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"N"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; liblobname;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;please see attach log file.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/387002#M92740</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-08-10T13:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expected numeric precision behaviour or unexpected issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/387005#M92742</link>
      <description>&lt;P&gt;Thats not to do with my code. &amp;nbsp;You have/had unbalanced quotes at some point. &amp;nbsp;Start a new fresh session.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:58:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/387005#M92742</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-10T13:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expected numeric precision behaviour or unexpected issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/387025#M92748</link>
      <description>&lt;P&gt;agree, I am starting a new sestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:38:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/387025#M92748</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-08-10T14:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expected numeric precision behaviour or unexpected issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/387050#M92761</link>
      <description>&lt;P&gt;after start new session, it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expected-numeric-precision-behaviour-or-unexpected-issue/m-p/387050#M92761</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-08-10T15:14:59Z</dc:date>
    </item>
  </channel>
</rss>

