<?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: WARNING: The text expression variable contains a recursive reference to the macro variable DWJN_ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486938#M126783</link>
    <description>&lt;P&gt;The message means that somewhere, the code generates the equivalent of:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%let DWJN_FILE= ... &amp;amp;DWJN_FILE ... ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;which is a recursive reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 10:36:12 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-08-15T10:36:12Z</dc:date>
    <item>
      <title>WARNING: The text expression variable contains a recursive reference to the macro variable DWJN_FILE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486937#M126782</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have created one SAS job with below mentioned user written code which is failing with error due to it is not assigning correct variable value.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;%include '/sascon/Lev1/Applications/SASAntiMoneyLaundering/5.1/BUJO/custom/config/autoexec.sas';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;%macro aml_dwjn_monthly;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;%local dwjn_file;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;%let dwjn_file=/sascon/Lev1/Applications/SASAntiMoneyLaundering/5.1/BUJO/watchlist/CSV_PFA_201808042200_D.csv;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;%put &amp;amp;dwjn_file;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;%include '/sascon/Lev1/Applications/SASAntiMoneyLaundering/5.1/BUJO/custom/source/aml_load_watch_list_dwjn_monthly.sas';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;%aml_load_watch_list_dwjn_monthly (dwjn_file=&amp;amp;dwjn_file);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;%mend aml_dwjn_monthly;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;%aml_dwjn_monthly;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;User Written&amp;nbsp; &amp;nbsp;Line 4,992: WARNING: The text expression &amp;amp;DWJN_FILE contains a recursive reference to the macro variable DWJN_FILE. The macro variable will be assigned the null value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Line 4,992: ERROR: Invalid physical name.&amp;nbsp;&amp;nbsp; &amp;nbsp;Line 4,992: ERROR: Error in the FILENAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some body help me why this macro variable is assigning to null value but it is&amp;nbsp; giving expected result in %PUT statement.&lt;/P&gt;&lt;P&gt;How i can resolve this error ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 10:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486937#M126782</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2018-08-15T10:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The text expression variable contains a recursive reference to the macro variable DWJN_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486938#M126783</link>
      <description>&lt;P&gt;The message means that somewhere, the code generates the equivalent of:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%let DWJN_FILE= ... &amp;amp;DWJN_FILE ... ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;which is a recursive reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 10:36:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486938#M126783</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-15T10:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The text expression variable contains a recursive reference to the macro variable DWJN_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486951#M126789</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;What is the solution for this ?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 11:09:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486951#M126789</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2018-08-15T11:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The text expression variable contains a recursive reference to the macro variable DWJN_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486953#M126791</link>
      <description>&lt;P&gt;That's a bug in the code. The code must be fixed.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 11:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486953#M126791</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-15T11:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The text expression variable contains a recursive reference to the macro variable DWJN_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486955#M126792</link>
      <description>&lt;P&gt;Try to find the filename statement that seems to cause the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 11:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486955#M126792</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-15T11:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The text expression variable contains a recursive reference to the macro variable DWJN_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486960#M126795</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/121190"&gt;@MG18&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are using the following code lines (Partial extract)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%local dwjn_file;
%let dwjn_file=/sascon/Lev1/Applications/SASAntiMoneyLaundering/5.1/BUJO/watchlist/CSV_PFA_201808042200_D.csv;
%put &amp;amp;dwjn_file;

%include '/sascon/Lev1/Applications/SASAntiMoneyLaundering/5.1/BUJO/custom/source/aml_load_watch_list_dwjn_monthly.sas';
%aml_load_watch_list_dwjn_monthly (dwjn_file=&amp;amp;dwjn_file);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;*&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%aml_load_watch_list_dwjn_monthly (dwjn_file=&amp;amp;dwjn_file);&lt;/CODE&gt;  /* This is the offending line! */&lt;/PRE&gt;
&lt;P&gt;I would suggest the following miner change, to clarify your code and avoid the error you are getting now&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include '/sascon/Lev1/Applications/SASAntiMoneyLaundering/5.1/BUJO/custom/config/autoexec.sas';
%macro aml_dwjn_monthly;
   %local l_dwjn_file;   /* Added 'l_' prefix to indicate local scope */
   %let l_dwjn_file=/sascon/Lev1/Applications/SASAntiMoneyLaundering/5.1/BUJO/watchlist/CSV_PFA_201808042200_D.csv;
   %put &amp;amp;l_dwjn_file;

   %include '/sascon/Lev1/Applications/SASAntiMoneyLaundering/5.1/BUJO/custom/source/aml_load_watch_list_dwjn_monthly.sas';
   %aml_load_watch_list_dwjn_monthly (dwjn_file=&amp;amp;l_dwjn_file);
%mend aml_dwjn_monthly;
%aml_dwjn_monthly;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 12:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-text-expression-variable-contains-a-recursive/m-p/486960#M126795</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2018-08-15T12:05:39Z</dc:date>
    </item>
  </channel>
</rss>

