<?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 year and today function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692085#M210753</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to get the year 2020 in macro varaible "annee" but my code doesn't work:&lt;/P&gt;
&lt;P&gt;%let annee=%sysevalf(year(%sysevalf(today()));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2020 09:29:11 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2020-10-16T09:29:11Z</dc:date>
    <item>
      <title>year and today function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692085#M210753</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to get the year 2020 in macro varaible "annee" but my code doesn't work:&lt;/P&gt;
&lt;P&gt;%let annee=%sysevalf(year(%sysevalf(today()));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 09:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692085#M210753</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-10-16T09:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: year and today function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692086#M210754</link>
      <description>&lt;P&gt;%SYSEVALF is for doing non-integer calculations in macro.&lt;/P&gt;
&lt;P&gt;To call data step functions in macro language, you need %SYSFUNC.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 09:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692086#M210754</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-16T09:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: year and today function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692088#M210755</link>
      <description>Thank you Kurt,&lt;BR /&gt;&lt;BR /&gt;What do you mean when you say "non-integer"?&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Oct 2020 10:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692088#M210755</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-10-16T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: year and today function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692092#M210758</link>
      <description>&lt;P&gt;Compare the documentation of&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=n07pr39df9k7m3n1w3x1q09iewta.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;%EVAL&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=p1d9ypna2tpt16n1xam57kuffcpt.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;%SYSEVALF&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 10:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692092#M210758</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-16T10:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: year and today function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692102#M210765</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let annee=%sysfunc(today(),year4.);
%put annee=&amp;amp;annee ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Oct 2020 11:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692102#M210765</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-10-16T11:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: year and today function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692147#M210786</link>
      <description>&lt;P&gt;Try this code:-&lt;/P&gt;&lt;P&gt;/*method1*/&lt;BR /&gt;data _null_;&lt;BR /&gt;call symputx('annee',put(intnx('year',today(),0),year4.));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%put &amp;amp;annee;&lt;/P&gt;&lt;P&gt;/*method2*/&lt;BR /&gt;%let annee=%sysfunc(today(),year4.);&lt;BR /&gt;%put &amp;amp;annee;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 15:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692147#M210786</guid>
      <dc:creator>Venky3110</dc:creator>
      <dc:date>2020-10-16T15:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: year and today function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692148#M210787</link>
      <description>&lt;BR /&gt;/*method1*/&lt;BR /&gt;data _null_;&lt;BR /&gt;call symputx('annee',put(intnx('year',today(),0),year4.));&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;%put &amp;amp;annee;&lt;BR /&gt;&lt;BR /&gt;/*method2*/&lt;BR /&gt;%let annee=%sysfunc(today(),year4.);&lt;BR /&gt;%put &amp;amp;annee;</description>
      <pubDate>Fri, 16 Oct 2020 15:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/year-and-today-function/m-p/692148#M210787</guid>
      <dc:creator>Venky3110</dc:creator>
      <dc:date>2020-10-16T15:21:39Z</dc:date>
    </item>
  </channel>
</rss>

