<?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 Can't get INTNX to work inside %SYSFUNC in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-INTNX-to-work-inside-SYSFUNC/m-p/115191#M23710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my existing code, that always gives me an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let abc=%sysfunc(intnx('dtday',1662637746,365),datetime16.);&lt;/P&gt;&lt;P&gt;%put ABC &amp;amp;abc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the large value 1662637746 is simply today's date and time in numeric format, which should work. I have tried other formats, including '07SEP12:00:00:00'dt, but I always get the same error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: An argument to the function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is out of range.&lt;/P&gt;&lt;P&gt;NOTE: Mathematical operations could not be performed during %SYSFUNC function execution. The result of the operations have been&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set to a missing value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2012 17:16:46 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2012-09-07T17:16:46Z</dc:date>
    <item>
      <title>Can't get INTNX to work inside %SYSFUNC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-INTNX-to-work-inside-SYSFUNC/m-p/115191#M23710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my existing code, that always gives me an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let abc=%sysfunc(intnx('dtday',1662637746,365),datetime16.);&lt;/P&gt;&lt;P&gt;%put ABC &amp;amp;abc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the large value 1662637746 is simply today's date and time in numeric format, which should work. I have tried other formats, including '07SEP12:00:00:00'dt, but I always get the same error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: An argument to the function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is out of range.&lt;/P&gt;&lt;P&gt;NOTE: Mathematical operations could not be performed during %SYSFUNC function execution. The result of the operations have been&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set to a missing value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 17:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-INTNX-to-work-inside-SYSFUNC/m-p/115191#M23710</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2012-09-07T17:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get INTNX to work inside %SYSFUNC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-INTNX-to-work-inside-SYSFUNC/m-p/115192#M23711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quotes around text literals are invalid when using %SYSFUNC().&amp;nbsp; In general quotes are not needed in the macro environment.&amp;nbsp; They are needed in SAS so the compiler can tell what is a variable reference and what is a text literal. But everything is just text strings to the macro language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; background-color: #ffffff;"&gt;%let abc=%sysfunc(intnx(dtday,1662637746,365),datetime16.);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 17:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-INTNX-to-work-inside-SYSFUNC/m-p/115192#M23711</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-09-07T17:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get INTNX to work inside %SYSFUNC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-INTNX-to-work-inside-SYSFUNC/m-p/115193#M23712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Tom, I knew it must be something simple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 17:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-INTNX-to-work-inside-SYSFUNC/m-p/115193#M23712</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2012-09-07T17:30:12Z</dc:date>
    </item>
  </channel>
</rss>

