<?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: Current Month Macro with Zero? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Current-Month-Macro-with-Zero/m-p/575762#M162926</link>
    <description>&lt;P&gt;Are you asking for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let sysmonth= %sysfunc(month("&amp;amp;sysdate"d),z2.);
%let sysyear= %sysfunc(year("&amp;amp;sysdate"d));

%put &amp;amp;=sysmonth  &amp;amp;=sysyear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Jul 2019 12:08:28 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-07-23T12:08:28Z</dc:date>
    <item>
      <title>Current Month Macro with Zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Current-Month-Macro-with-Zero/m-p/575757#M162925</link>
      <description>&lt;P&gt;So I am trying to make a where statement that is dynamic however I am not 100% sure how to place a zero in front of the system month if it a single digit (i.e. 1, 2, 3, 4).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let sysmonth= %sysfunc(month("&amp;amp;sysdate"d));
%let sysyear= %sysfunc(year("&amp;amp;sysdate"d));


where Year in ("&amp;amp;sysyear") and Month in ("&amp;amp;sysmonth")&lt;/PRE&gt;
&lt;P&gt;I wasn't sure if you could do a CAT type function or not within the sysfunc&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Current-Month-Macro-with-Zero/m-p/575757#M162925</guid>
      <dc:creator>IgawaKei29</dc:creator>
      <dc:date>2019-07-23T12:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Macro with Zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Current-Month-Macro-with-Zero/m-p/575762#M162926</link>
      <description>&lt;P&gt;Are you asking for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let sysmonth= %sysfunc(month("&amp;amp;sysdate"d),z2.);
%let sysyear= %sysfunc(year("&amp;amp;sysdate"d));

%put &amp;amp;=sysmonth  &amp;amp;=sysyear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Current-Month-Macro-with-Zero/m-p/575762#M162926</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-07-23T12:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Macro with Zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Current-Month-Macro-with-Zero/m-p/575763#M162927</link>
      <description>Thanks so much!  I kept trying to put something in front of the %sysfunc.  I will be adding this one to my code library.</description>
      <pubDate>Tue, 23 Jul 2019 12:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Current-Month-Macro-with-Zero/m-p/575763#M162927</guid>
      <dc:creator>IgawaKei29</dc:creator>
      <dc:date>2019-07-23T12:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Macro with Zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Current-Month-Macro-with-Zero/m-p/575805#M162930</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15187"&gt;@IgawaKei29&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks so much! I kept trying to put something in front of the %sysfunc. I will be adding this one to my code library.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Don't bother.&amp;nbsp; Just remember how to use the Z format.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 13:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Current-Month-Macro-with-Zero/m-p/575805#M162930</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-23T13:55:33Z</dc:date>
    </item>
  </channel>
</rss>

