<?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: Macro value not getting referred in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-value-not-getting-referred/m-p/434603#M107860</link>
    <description>&lt;P&gt;Thanks, but That doesn’t answer my question.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2018 17:12:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-06T17:12:24Z</dc:date>
    <item>
      <title>Macro value not getting referred</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-value-not-getting-referred/m-p/434592#M107856</link>
      <description>&lt;P&gt;************************************************************************************** ;&lt;BR /&gt;%LET CURR = TODAY() ;&lt;BR /&gt;&lt;BR /&gt;%LET PREMO = %SYSFUNC(INTNX(MONTH, %SYSFUNC(&amp;amp;CURR), -1), YYMMD.);&lt;BR /&gt;%LET PRPREMO = %SYSFUNC(INTNX(MONTH, %SYSFUNC(&amp;amp;CURR), -2), YYMMD.);&lt;BR /&gt;%LET CURRMO = %SYSFUNC(TODAY(),YYMMD.) ;&lt;BR /&gt;&lt;BR /&gt;************************************************************************************** ;&lt;/P&gt;&lt;P&gt;CREATE TABLE TOTDTL_CURRMO AS&lt;/P&gt;&lt;P&gt;(SELECT BILLING_YEAR_MONTH,&lt;BR /&gt;SERVICE_TYPE,&lt;BR /&gt;DESCRIPTION10_TO_IBS,&lt;BR /&gt;BILLING_SERVICE,&lt;BR /&gt;COMP_CODE,&lt;BR /&gt;REFUND_MONTH,&lt;BR /&gt;COST_OF_SERVICE,&lt;BR /&gt;UNITS,&lt;BR /&gt;TAX&lt;BR /&gt;FROM mydblib.t_other_detail_internal&lt;BR /&gt;WHERE BILLING_YEAR_MONTH = "&amp;amp;CURRMO");&lt;/P&gt;&lt;P&gt;QUIT ;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;NOTE: Table WORK.TOTDTL_CURRMO created, with 0 rows and 9 columns.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;amp;CURRMO&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;SPAN&gt; is supposed to have 2018-02&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the value isn't getting in&amp;nbsp;BILLING_YEAR_MONTH&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please help me with this&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 16:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-value-not-getting-referred/m-p/434592#M107856</guid>
      <dc:creator>sayanapex06</dc:creator>
      <dc:date>2018-02-06T16:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Macro value not getting referred</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-value-not-getting-referred/m-p/434597#M107858</link>
      <description>&lt;P&gt;What’s the type and format of BILLING_YEAR_MONTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/120272"&gt;@sayanapex06&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;************************************************************************************** ;&lt;BR /&gt;%LET CURR = TODAY() ;&lt;BR /&gt;&lt;BR /&gt;%LET PREMO = %SYSFUNC(INTNX(MONTH, %SYSFUNC(&amp;amp;CURR), -1), YYMMD.);&lt;BR /&gt;%LET PRPREMO = %SYSFUNC(INTNX(MONTH, %SYSFUNC(&amp;amp;CURR), -2), YYMMD.);&lt;BR /&gt;%LET CURRMO = %SYSFUNC(TODAY(),YYMMD.) ;&lt;BR /&gt;&lt;BR /&gt;************************************************************************************** ;&lt;/P&gt;
&lt;P&gt;CREATE TABLE TOTDTL_CURRMO AS&lt;/P&gt;
&lt;P&gt;(SELECT BILLING_YEAR_MONTH,&lt;BR /&gt;SERVICE_TYPE,&lt;BR /&gt;DESCRIPTION10_TO_IBS,&lt;BR /&gt;BILLING_SERVICE,&lt;BR /&gt;COMP_CODE,&lt;BR /&gt;REFUND_MONTH,&lt;BR /&gt;COST_OF_SERVICE,&lt;BR /&gt;UNITS,&lt;BR /&gt;TAX&lt;BR /&gt;FROM mydblib.t_other_detail_internal&lt;BR /&gt;WHERE BILLING_YEAR_MONTH = "&amp;amp;CURRMO");&lt;/P&gt;
&lt;P&gt;QUIT ;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;NOTE: Table WORK.TOTDTL_CURRMO created, with 0 rows and 9 columns.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;amp;CURRMO&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;SPAN&gt; is supposed to have 2018-02&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but the value isn't getting in&amp;nbsp;BILLING_YEAR_MONTH&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please help me with this&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 17:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-value-not-getting-referred/m-p/434597#M107858</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-06T17:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macro value not getting referred</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-value-not-getting-referred/m-p/434598#M107859</link>
      <description>&lt;P&gt;Billing_year_month is a field in a oracle database and we are establishing the conncection to it&amp;nbsp;&lt;/P&gt;&lt;P&gt;it should have values in 'yyyy-mm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the yyyy-mm from code&lt;/P&gt;&lt;P&gt;how to get it in&amp;nbsp;&lt;SPAN&gt;Billing_year_month ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 17:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-value-not-getting-referred/m-p/434598#M107859</guid>
      <dc:creator>sayanapex06</dc:creator>
      <dc:date>2018-02-06T17:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro value not getting referred</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-value-not-getting-referred/m-p/434603#M107860</link>
      <description>&lt;P&gt;Thanks, but That doesn’t answer my question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 17:12:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-value-not-getting-referred/m-p/434603#M107860</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-06T17:12:24Z</dc:date>
    </item>
  </channel>
</rss>

