<?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: Apparent symbolic reference not resolved in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726158#M38339</link>
    <description>&lt;P&gt;Macro variable &amp;amp;VAL_DATE has not been defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Clearly there shows a put macro that assigns a macro variable to field VAL_DATE.&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;That's not what %PUT does.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;You can define a macro variable and assign it a value like this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let val_date=;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;but this creates an empty macro variable, and the rest of your program still won't run properly. You have to assign it a value that will work in your program, I don't know what that would be.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Mar 2021 22:34:24 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-03-14T22:34:24Z</dc:date>
    <item>
      <title>Warning: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726156#M38338</link>
      <description>&lt;P&gt;%PUT VAL_DATE=&amp;amp;VAL_DATE;&lt;BR /&gt;%PUT _global_;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.NB_Prem AS&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;a.ModelPlan AS Group,&lt;BR /&gt;MONTH(b.EXTR_ISSUE_DATE) AS Iss_Month,&lt;BR /&gt;SUM(b.EXTR_GROSS_PREM)*3 AS Prem&lt;/P&gt;&lt;P&gt;FROM WORK.BLCFSRPT AS b INNER JOIN (SaDAVArt.DAFSRPTPlanInfo AS a INNER JOIN SaDAVArt.DAFSRPT_LPRO_MAPPING ON (a.AdminPlan=Vantage_Admin_Plan)) ON b.EXTR_ADMIN_PLAN_CODE=LifePro_Coverage_ID&lt;BR /&gt;WHERE YEAR(b.EXTR_ISSUE_DATE)=YEAR(&amp;amp;VAL_DATE)&lt;BR /&gt;GROUP BY Group,Iss_Month&lt;BR /&gt;HAVING Iss_Month=MONTH(&amp;amp;VAL_DATE);&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;*******program&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;28 CREATE TABLE WORK.NB_Prem AS&lt;BR /&gt;29&lt;BR /&gt;30 SELECT&lt;BR /&gt;31&lt;BR /&gt;32 a.ModelPlan AS Group,&lt;BR /&gt;33 MONTH(b.EXTR_ISSUE_DATE) AS Iss_Month,&lt;BR /&gt;34 SUM(b.EXTR_GROSS_PREM)*3 AS Prem&lt;BR /&gt;35&lt;BR /&gt;36 FROM WORK.BLCFSRPT AS b INNER JOIN (SaDAVArt.DAFSRPTPlanInfo AS a INNER JOIN SaDAVArt.DAFSRPT_LPRO_MAPPING ON&lt;BR /&gt;36 ! (a.AdminPlan=Vantage_Admin_Plan)) ON b.EXTR_ADMIN_PLAN_CODE=LifePro_Coverage_ID&lt;BR /&gt;37 WHERE YEAR(b.EXTR_ISSUE_DATE)=YEAR(&amp;amp;VAL_DATE)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;WARNING: Apparent symbolic reference VAL_DATE not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a missing value, BTRIM, INPUT, PUT, SUBSTRING, USER.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;38 GROUP BY Group,Iss_Month&lt;BR /&gt;39 HAVING Iss_Month=MONTH(&amp;amp;VAL_DATE);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 22&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;WARNING: Apparent symbolic reference VAL_DATE not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a missing value, BTRIM, INPUT, PUT, SUBSTRING, USER.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;*****log&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I'm running into a symbolic reference warning and subsequent syntax error from the code shown in the first vignette. Clearly there shows a put macro that assigns a macro variable to field VAL_DATE. And I looked up some solutions to this issue which included creating a %put _global_; statement which also didn't work. So what am I missing? (I'm also running by selection if that makes a difference).&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 22:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726156#M38338</guid>
      <dc:creator>izzytetteh24</dc:creator>
      <dc:date>2021-03-14T22:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726158#M38339</link>
      <description>&lt;P&gt;Macro variable &amp;amp;VAL_DATE has not been defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Clearly there shows a put macro that assigns a macro variable to field VAL_DATE.&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;That's not what %PUT does.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;You can define a macro variable and assign it a value like this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let val_date=;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;but this creates an empty macro variable, and the rest of your program still won't run properly. You have to assign it a value that will work in your program, I don't know what that would be.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 22:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726158#M38339</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-03-14T22:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726422#M38341</link>
      <description>Well shouldn't I assign it to &amp;amp;val_date? That would make it work right?</description>
      <pubDate>Mon, 15 Mar 2021 15:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726422#M38341</guid>
      <dc:creator>izzytetteh24</dc:creator>
      <dc:date>2021-03-15T15:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726692#M38344</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/368826"&gt;@izzytetteh24&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Well shouldn't I assign it to &amp;amp;val_date? That would make it work right?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean? What are you referring to by "it"?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 10:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726692#M38344</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-03-16T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726829#M38347</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/368826"&gt;@izzytetteh24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well it is like this.&lt;BR /&gt;1. When a value is being assigned to macro variable the syntax is&lt;/P&gt;&lt;P&gt;&amp;nbsp; %let var_name= the_value;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2, When the macro variable so created is to be used then an ampersand is prefixed. Thus to use the value of var_name, it would be &amp;amp;var_name.&amp;nbsp;&lt;BR /&gt;Thus in your case assignment would be %let val_date=16MAR2021;&lt;BR /&gt;and will using it say %put &amp;amp;val_date. ;&lt;/P&gt;&lt;P&gt;(I gave this value as an example)&lt;BR /&gt;You will see something like this in the log&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 %let val_date=16MAR2021;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 %put &amp;amp;val_date.;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;16MAR2021&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;---&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;As rightly pointed by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;you must assign a value to the macro variable other wise your program will&amp;nbsp; not work.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;If you get a chance please read this paper.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings17/1516-2017.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings17/1516-2017.pdf&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Mar 2021 16:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-Apparent-symbolic-reference-not-resolved/m-p/726829#M38347</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-16T16:49:16Z</dc:date>
    </item>
  </channel>
</rss>

