<?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: SAS macro for 1 year from today in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-macro-for-1-year-from-today/m-p/470633#M14733</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let LYT=%sysfunc(intnx(year,%sysfunc(today()),-1,s), date9. );

%PUT &amp;amp;LYT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Jun 2018 15:57:10 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-06-15T15:57:10Z</dc:date>
    <item>
      <title>SAS macro for 1 year from today</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-macro-for-1-year-from-today/m-p/470631#M14732</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; How I can use SAS macro for one year from today?&lt;/P&gt;&lt;P&gt;&amp;nbsp; I used the Macro below and got the wrong date as 01Jan2017, is there anything I did wrong? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; LYT=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(intnx(year,&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(today()),-1),date9.);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%PUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;LYT;&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;Jade&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 15:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-macro-for-1-year-from-today/m-p/470631#M14732</guid>
      <dc:creator>Jade_SAS</dc:creator>
      <dc:date>2018-06-15T15:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro for 1 year from today</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-macro-for-1-year-from-today/m-p/470633#M14733</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let LYT=%sysfunc(intnx(year,%sysfunc(today()),-1,s), date9. );

%PUT &amp;amp;LYT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jun 2018 15:57:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-macro-for-1-year-from-today/m-p/470633#M14733</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-15T15:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro for 1 year from today</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-macro-for-1-year-from-today/m-p/470645#M14734</link>
      <description>&lt;P&gt;%let LYT=%sysfunc(intnx(year,%sysfunc(today()),-1,&lt;FONT color="#FF0000"&gt;s&lt;/FONT&gt;), date9. );&lt;/P&gt;
&lt;P&gt;%PUT &amp;amp;LYT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you miss the aurguent "SAMEDAY" or "S" or "SAME" then by default it will give you 1st day of the year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 16:24:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-macro-for-1-year-from-today/m-p/470645#M14734</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-06-15T16:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro for 1 year from today</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-macro-for-1-year-from-today/m-p/470666#M14736</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 18:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-macro-for-1-year-from-today/m-p/470666#M14736</guid>
      <dc:creator>Jade_SAS</dc:creator>
      <dc:date>2018-06-15T18:05:11Z</dc:date>
    </item>
  </channel>
</rss>

