<?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: Intnx minus 1 day in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856151#M338307</link>
    <description>Hello,&lt;BR /&gt;Thank you for the help! I suppose should have searched harder online, didn't come across this DTDAY function.&lt;BR /&gt;The output looks good now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Sun, 29 Jan 2023 18:20:08 GMT</pubDate>
    <dc:creator>darklord</dc:creator>
    <dc:date>2023-01-29T18:20:08Z</dc:date>
    <item>
      <title>Intnx minus 1 day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856146#M338305</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;Pretty lost here, im working on creating a dataset using proc sql with DATETIME() field being the start_date, and trying to make end_date using intnx function using the query below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;intnx('day', date time(), -1) as end_date format=datetime20.&lt;/PRE&gt;&lt;P&gt;DATETIME() field is already in DATETIME20. format, but the results show '&lt;STRONG&gt;.&lt;/STRONG&gt;' for end_date when it finishes running.&lt;/P&gt;&lt;P&gt;Any idea what could be happening? The proc sql is built using a prebuilt proc sql table and one data table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="IMG_0877-3-min.png" style="width: 178px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79901i9DFBED5B7A204D45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_0877-3-min.png" alt="IMG_0877-3-min.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 17:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856146#M338305</guid>
      <dc:creator>darklord</dc:creator>
      <dc:date>2023-01-29T17:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx minus 1 day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856147#M338306</link>
      <description>&lt;P&gt;I think you want this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;intnx('&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;dt&lt;/FONT&gt;&lt;/STRONG&gt;day', datetime(), -1) as end_date format=datetime20.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'DAY' works only on SAS date variables. '&lt;FONT color="#FF0000"&gt;DT&lt;/FONT&gt;DAY' works on SAS date/time variables. The DATETIME() function produces a date/time variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note in your original code, you have a space between date and time, that will never work.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 17:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856147#M338306</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-29T17:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx minus 1 day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856151#M338307</link>
      <description>Hello,&lt;BR /&gt;Thank you for the help! I suppose should have searched harder online, didn't come across this DTDAY function.&lt;BR /&gt;The output looks good now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sun, 29 Jan 2023 18:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856151#M338307</guid>
      <dc:creator>darklord</dc:creator>
      <dc:date>2023-01-29T18:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx minus 1 day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856152#M338308</link>
      <description>&lt;P&gt;So technically, DTDAY is an argument to the INTNX function&lt;/P&gt;
&lt;P&gt;All possible intervals that you can use here: &lt;A href="http://documentation.sas.com/doc/en/pgmmvacdc/9.4/leforinforref/n0pxq4af0hx60nn1i1x3xn41mc3c.htm#n0zn1re74n6pfvn170g9us41coho" target="_blank"&gt;http://documentation.sas.com/doc/en/pgmmvacdc/9.4/leforinforref/n0pxq4af0hx60nn1i1x3xn41mc3c.htm#n0zn1re74n6pfvn170g9us41coho&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 18:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856152#M338308</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-29T18:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx minus 1 day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856233#M338330</link>
      <description>Appreciate the link:)</description>
      <pubDate>Mon, 30 Jan 2023 13:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intnx-minus-1-day/m-p/856233#M338330</guid>
      <dc:creator>darklord</dc:creator>
      <dc:date>2023-01-30T13:45:45Z</dc:date>
    </item>
  </channel>
</rss>

