<?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: Apparent symbolic reference not resolved in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497769#M132061</link>
    <description>&lt;P&gt;I am afraid it is not:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;WARNING: Apparent symbolic reference REPORTING_DATE &lt;SPAN class="token operator"&gt;not&lt;/SPAN&gt; resolved&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That warning is clearly telling you that no macro variable REPORTING_DATE is present in scope at the point that code is run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possibly its not in scope, don't know how DI integrates various components.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 11:41:22 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-09-21T11:41:22Z</dc:date>
    <item>
      <title>Macro variable: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497754#M132048</link>
      <description>&lt;P&gt;I'm trying to create a new numeric variable PODVER&amp;nbsp;via case when statement in DI studio as follows. When I exceute this code, I got error like 'Apparent symbolic reference not resolved'. reporting_date is a macro variable and it has values like 02JAN2018, 12OCT2019.... Could you please help me to resolve the issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;(case 
  when NEW_RENEWAL_DAY_MONTH_YEAR=REPORTING_DATE_ddmon 
   and KNKATD='7'  
      then input("&amp;amp;reporting_date.",date9.)
   when input(cats(NEW_RENEWAL_DAY_MONTH_YEAR,"2018"),date9.) &amp;gt; today() 
     then input(cats(NEW_RENEWAL_DAY_MONTH_YEAR,"2018"),date9.) 
     else input(cats(NEW_RENEWAL_DAY_MONTH_YEAR,"2019"),date9.) end) as PODVER length = 8 format = DATE9.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1595 (case when NEW_RENEWAL_DAY_MONTH_YEAR=REPORTING_DATE_ddmon and KNKATD='7' then
1595 ! input("&amp;amp;reporting_date.",date9.)
WARNING: Apparent symbolic reference REPORTING_DATE not resolved.
1596 when input(cats(NEW_RENEWAL_DAY_MONTH_YEAR,"2018"),date9.) &amp;gt; today() then
1596 ! input(cats(NEW_RENEWAL_DAY_MONTH_YEAR,"2018"),date9.)
1597 else input(cats(NEW_RENEWAL_DAY_MONTH_YEAR,"2019"),date9.) end) as PODVER length = 8
1598 format = DATE9.
1599 from &amp;amp;SYSLAST

SYMBOLGEN: Macro variable SYSLAST resolves to WORK.W728Z2TN 
WARNING: Apparent symbolic reference REPORTING_DATE not resolved.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 15:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497754#M132048</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2020-06-11T15:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497758#M132051</link>
      <description>&lt;P&gt;You are using a macro variable in your code (specifically &amp;amp;reporting_date), but no such macro variable exists.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 10:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497758#M132051</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-09-21T10:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497759#M132052</link>
      <description>&lt;P&gt;It is there. It is a global macro variable which I created at the beginning in user written transformation.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 10:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497759#M132052</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-09-21T10:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497769#M132061</link>
      <description>&lt;P&gt;I am afraid it is not:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;WARNING: Apparent symbolic reference REPORTING_DATE &lt;SPAN class="token operator"&gt;not&lt;/SPAN&gt; resolved&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That warning is clearly telling you that no macro variable REPORTING_DATE is present in scope at the point that code is run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possibly its not in scope, don't know how DI integrates various components.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 11:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497769#M132061</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-21T11:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497775#M132066</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It is there. It is a global macro variable which I created at the beginning in user written transformation.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When I have the choice between believing a programmer who says he did something, or believing SAS, which says that the programmer didn't do that thing, I believe SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may think you have created a global macro variable by that name, but you have not done it properly.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 12:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497775#M132066</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-09-21T12:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497852#M132115</link>
      <description>&lt;P&gt;In addition to comments about existence of the variable this may be suboptimal coding in general:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;then input("&amp;amp;reporting_date.",date9.)
&lt;/PRE&gt;
&lt;P&gt;unless you do not trust what ever is supposed to be making &amp;amp;reporting_date to be proper text in data9 format such as "18SEP2018".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simpler would be&lt;/P&gt;
&lt;PRE&gt;then "&amp;amp;reporting_date."d&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2018 14:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497852#M132115</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-21T14:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497919#M132159</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It is there. It is a global macro variable which I created at the beginning in user written transformation.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, it isn't. In a dispute, SAS is always right, the programmer never. I can tell you this from 20 years experience.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 17:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497919#M132159</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-21T17:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497992#M132197</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It is there. It is a global macro variable which I created at the beginning in user written transformation.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Put this code in your program immediately before the part with the problematic macro variable:&lt;/P&gt;
&lt;PRE&gt;%put _global_;&lt;/PRE&gt;
&lt;P&gt;That will display currently defined global&amp;nbsp;macro variables and the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to comments about existence of the variable this may be suboptimal coding in general:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;then input("&amp;amp;reporting_date.",date9.)
&lt;/PRE&gt;
&lt;P&gt;unless you do not trust what ever is supposed to be making &amp;amp;reporting_date to be proper text in data9 format such as "18SEP2018".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simpler would be&lt;/P&gt;
&lt;PRE&gt;then "&amp;amp;reporting_date."d&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 15:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/497992#M132197</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-11T15:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/602057#M174266</link>
      <description>&lt;P&gt;I know that this is a pretty old topic at this point but I was having the same problem and I resolved it myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realized that I had not actually RUN my %let statements before attempting to use them further down in the program.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-Apparent-symbolic-reference-not-resolved/m-p/602057#M174266</guid>
      <dc:creator>miriamjamison</dc:creator>
      <dc:date>2019-11-06T16:39:44Z</dc:date>
    </item>
  </channel>
</rss>

