<?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 Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Warning-Apparent-symbolic-reference-not-resolved/m-p/521659#M279076</link>
    <description>&lt;P&gt;Could you please guide on below Error, I am comparing data and when matched setting a string to&amp;nbsp;a variable&lt;/P&gt;&lt;P&gt;I need to send the result&amp;nbsp;in an email, so I need value outside the code block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS CODE:&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;if (10&amp;nbsp;EQ 10) then ValResult ="MATCHED" ; ValResult ="NOT MATCHED" ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;%put &amp;amp;ValResult.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOG:&lt;/P&gt;&lt;P&gt;%put &amp;amp;ValResult.;&lt;BR /&gt;WARNING: Apparent symbolic reference VALRESULT not resolved.&lt;BR /&gt;&amp;amp;ValResult.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;in results tab I am getting MATCHED&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 21:38:31 GMT</pubDate>
    <dc:creator>malkuchi</dc:creator>
    <dc:date>2018-12-14T21:38:31Z</dc:date>
    <item>
      <title>Warning: Apparent symbolic reference not resolved?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-Apparent-symbolic-reference-not-resolved/m-p/404548#M279073</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp; following SAS9.3 code in macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  /* A few extreme values of could distort graphical output.
    Comparisons are made in succession from highest to next higher
    value for the top 5 extreme values. If the highest value is larger than
    twice the next higher value, then the highest value will be left out
    of the graph by assigning Rmax to the next higher value. Rmax  
    specifies the maximum value of the graphical axis line
    (xaxis or yaxis). */
 ods select ExtremeValues;
 Proc Univariate Data=&amp;amp;InDat NExtrVal=5;
 	Var &amp;amp;RType;
	ods output ExtremeValues = ExtremeValues;
 Run;
 options mprint mlogic symbolgen;
 Data _Null_;
   Set ExtremeValues;
   If _N_ = 1 Then Call Symputx('High5',High);
   If _N_ = 2 Then Call Symputx('High4',High); 
   If _N_ = 3 Then Call Symputx('High3',High); 
   If _N_ = 4 Then Call Symputx('High2',High); 
   If _N_ = 5 Then Call Symputx('High1',High);
 Run;
 %Do I = 1 %To 4;
   	%If %Sysevalf(&amp;amp;&amp;amp;High&amp;amp;I/&amp;amp;&amp;amp;High%Eval(&amp;amp;I+1)) &amp;gt; 1.3 %Then %Let RMax = %Sysevalf(&amp;amp;&amp;amp;High%Eval(&amp;amp;I+1),ceil);
 %End;
 options nomprint nomlogic nosymbolgen;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It produces the correct value of RMax but there are log warnings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(NEGBININF):   symbolgen;
MPRINT(NEGBININF):   Data _Null_;
MPRINT(NEGBININF):   Set ExtremeValues;
MPRINT(NEGBININF):   If _N_ = 1 Then Call Symputx('High5',High);
MPRINT(NEGBININF):   If _N_ = 2 Then Call Symputx('High4',High);
MPRINT(NEGBININF):   If _N_ = 3 Then Call Symputx('High3',High);
MPRINT(NEGBININF):   If _N_ = 4 Then Call Symputx('High2',High);
MPRINT(NEGBININF):   If _N_ = 5 Then Call Symputx('High1',High);
MPRINT(NEGBININF):   Run;

NOTE: There were 5 observations read from the data set WORK.EXTREMEVALUES.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


MLOGIC(NEGBININF):  %DO loop beginning; index variable I; start value is 1; stop value is 4; by
      value is 1.
SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
SYMBOLGEN:  Macro variable I resolves to 1
SYMBOLGEN:  Macro variable HIGH1 resolves to 122.34597475
SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
WARNING: Apparent symbolic reference HIGH not resolved.
SYMBOLGEN:  Macro variable I resolves to 1
SYMBOLGEN:  Macro variable HIGH2 resolves to 104.85413396
MLOGIC(NEGBININF):  %IF condition %Sysevalf(&amp;amp;&amp;amp;High&amp;amp;I/&amp;amp;&amp;amp;High%Eval(&amp;amp;I+1)) &amp;gt; 1.3 is FALSE
MLOGIC(NEGBININF):  %DO loop index variable I is now 2; loop will iterate again.
SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
SYMBOLGEN:  Macro variable I resolves to 2
SYMBOLGEN:  Macro variable HIGH2 resolves to 104.85413396
SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
WARNING: Apparent symbolic reference HIGH not resolved.
SYMBOLGEN:  Macro variable I resolves to 2
SYMBOLGEN:  Macro variable HIGH3 resolves to 77.716058462
MLOGIC(NEGBININF):  %IF condition %Sysevalf(&amp;amp;&amp;amp;High&amp;amp;I/&amp;amp;&amp;amp;High%Eval(&amp;amp;I+1)) &amp;gt; 1.3 is TRUE
MLOGIC(NEGBININF):  %LET (variable name is RMAX)
SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
WARNING: Apparent symbolic reference HIGH not resolved.
SYMBOLGEN:  Macro variable I resolves to 2
SYMBOLGEN:  Macro variable HIGH3 resolves to 77.716058462
MLOGIC(NEGBININF):  %DO loop index variable I is now 3; loop will iterate again.
SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
SYMBOLGEN:  Macro variable I resolves to 3
SYMBOLGEN:  Macro variable HIGH3 resolves to 77.716058462
SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
WARNING: Apparent symbolic reference HIGH not resolved.
SYMBOLGEN:  Macro variable I resolves to 3
SYMBOLGEN:  Macro variable HIGH4 resolves to 75.249510073
MLOGIC(NEGBININF):  %IF condition %Sysevalf(&amp;amp;&amp;amp;High&amp;amp;I/&amp;amp;&amp;amp;High%Eval(&amp;amp;I+1)) &amp;gt; 1.3 is FALSE
MLOGIC(NEGBININF):  %DO loop index variable I is now 4; loop will iterate again.
SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
SYMBOLGEN:  Macro variable I resolves to 4
SYMBOLGEN:  Macro variable HIGH4 resolves to 75.249510073
SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
WARNING: Apparent symbolic reference HIGH not resolved.
SYMBOLGEN:  Macro variable I resolves to 4
SYMBOLGEN:  Macro variable HIGH5 resolves to 59.803347257
MLOGIC(NEGBININF):  %IF condition %Sysevalf(&amp;amp;&amp;amp;High&amp;amp;I/&amp;amp;&amp;amp;High%Eval(&amp;amp;I+1)) &amp;gt; 1.3 is FALSE
MLOGIC(NEGBININF):  %DO loop index variable I is now 5; loop will not iterate again.
MPRINT(NEGBININF):   options nomprint nomlogic
NOTE: Overwriting existing template/link: Sgdesign
NOTE: STATGRAPH 'Sgdesign' has been saved to: SASUSER.TEMPLAT
NOTE: PROCEDURE TEMPLATE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Appearing to provide a warning for the line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%If %Sysevalf(&amp;amp;&amp;amp;High&amp;amp;I/&amp;amp;&amp;amp;High%Eval(&amp;amp;I+1)) &amp;gt; 1.3 %Then %Let RMax = %Sysevalf(&amp;amp;&amp;amp;High%Eval(&amp;amp;I+1),ceil);
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Why?&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 18:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-Apparent-symbolic-reference-not-resolved/m-p/404548#M279073</guid>
      <dc:creator>MichaelSwift</dc:creator>
      <dc:date>2017-10-16T18:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Apparent symbolic reference not resolved?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-Apparent-symbolic-reference-not-resolved/m-p/404551#M279074</link>
      <description>&lt;P&gt;&amp;amp;&amp;amp;high&amp;amp;i works as intended&lt;/P&gt;
&lt;P&gt;&amp;amp;&amp;amp;high%eval(&amp;amp;i+1) does not work because it is not in the format &amp;amp;&amp;amp;macrovar&amp;amp;index&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;perhaps you want this&lt;/P&gt;
&lt;P&gt;%let oink=%eval(&amp;amp;i+1);&lt;/P&gt;
&lt;P&gt;&amp;amp;&amp;amp;high&amp;amp;oink&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 18:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-Apparent-symbolic-reference-not-resolved/m-p/404551#M279074</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-10-16T18:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Apparent symbolic reference not resolved?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-Apparent-symbolic-reference-not-resolved/m-p/404558#M279075</link>
      <description>&lt;P&gt;Thanks Paige Miller! Code now doesn't log Warning messages. Oink! Oink! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-Apparent-symbolic-reference-not-resolved/m-p/404558#M279075</guid>
      <dc:creator>MichaelSwift</dc:creator>
      <dc:date>2017-10-16T19:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Apparent symbolic reference not resolved?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-Apparent-symbolic-reference-not-resolved/m-p/521659#M279076</link>
      <description>&lt;P&gt;Could you please guide on below Error, I am comparing data and when matched setting a string to&amp;nbsp;a variable&lt;/P&gt;&lt;P&gt;I need to send the result&amp;nbsp;in an email, so I need value outside the code block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS CODE:&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;if (10&amp;nbsp;EQ 10) then ValResult ="MATCHED" ; ValResult ="NOT MATCHED" ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;%put &amp;amp;ValResult.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOG:&lt;/P&gt;&lt;P&gt;%put &amp;amp;ValResult.;&lt;BR /&gt;WARNING: Apparent symbolic reference VALRESULT not resolved.&lt;BR /&gt;&amp;amp;ValResult.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;in results tab I am getting MATCHED&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 21:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-Apparent-symbolic-reference-not-resolved/m-p/521659#M279076</guid>
      <dc:creator>malkuchi</dc:creator>
      <dc:date>2018-12-14T21:38:31Z</dc:date>
    </item>
  </channel>
</rss>

