<?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: extact monthdate format from sysdate in sas macros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869763#M343563</link>
    <description>&lt;P&gt;hi miller&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it shows only text as below i think macro processor cannot read macro variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; month_year&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 11:56:12 GMT</pubDate>
    <dc:creator>BrahmanandaRao</dc:creator>
    <dc:date>2023-04-14T11:56:12Z</dc:date>
    <item>
      <title>extact monthdate format from sysdate in sas macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869751#M343555</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let date=&amp;amp;sysdate9.;
%put &amp;amp;date;
%let month_year=%sysfunc(inputc("&amp;amp;date",date9.),monyy7.);
%put month_year;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here i am trying output monyy7. (APR2023) using sysdate9.&lt;/P&gt;
&lt;P&gt;required output&lt;/P&gt;
&lt;P&gt;APR2023&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 11:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869751#M343555</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-14T11:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: extact monthdate format from sysdate in sas macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869759#M343561</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let month_year=%sysfunc(inputn(&amp;amp;date,date9.),monyy7.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869759#M343561</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-14T12:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: extact monthdate format from sysdate in sas macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869763#M343563</link>
      <description>&lt;P&gt;hi miller&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it shows only text as below i think macro processor cannot read macro variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; month_year&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 11:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869763#M343563</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-14T11:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: extact monthdate format from sysdate in sas macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869766#M343564</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hi miller&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it shows only text as below i think macro processor cannot read macro variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; month_year&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Its really unclear what you mean by this. My code works properly. When something doesn't work, you need to show us the code you are using that isn't working. Saying something doesn't work is never sufficient. We don't know what you did, you have to SHOW us.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869766#M343564</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-14T12:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: extact monthdate format from sysdate in sas macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869786#M343571</link>
      <description>&lt;P&gt;You are working way too hard.&lt;/P&gt;
&lt;P&gt;You have a 9 character string and you want the last 7 characters of it.&lt;/P&gt;
&lt;PRE&gt;644  %let month_year=%substr(&amp;amp;sysdate9,3);
645  %put &amp;amp;=sysdate9 &amp;amp;=month_year ;
SYSDATE9=13APR2023 MONTH_YEAR=APR2023
&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extact-monthdate-format-from-sysdate-in-sas-macros/m-p/869786#M343571</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-14T13:22:09Z</dc:date>
    </item>
  </channel>
</rss>

