<?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 Apparent symbolic reference  not resolved. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/60256#M13007</link>
    <description>This is the log of mmy code which does not give an error but still if I try to reference the value n_lcg  I get an error that the value cannot be resolved.&lt;BR /&gt;
How do I resove this error? &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
213  PROC SQL STIMER noprint;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
214   CONNECT TO &amp;amp;tera;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.38 seconds&lt;BR /&gt;
      cpu time            0.02 seconds&lt;BR /&gt;
&lt;BR /&gt;
215    create table cnt_lcg as&lt;BR /&gt;
216        select * from CONNECTION TO teradata&lt;BR /&gt;
217          (select count(*) as cnt from user_wrk.sa_lgc );&lt;BR /&gt;
NOTE: Table WORK.CNT_LCG created, with 1 rows and 1 columns.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           19.53 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
218&lt;BR /&gt;
235     select cnt into :n_lcg from cnt_lcg;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
245  disconnect from teradata;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.07 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
246  quit;&lt;BR /&gt;
NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 %macro check_n;&lt;BR /&gt;
108  /*%if %eval(&amp;amp;n_lcg) = 0 %then %do;&lt;BR /&gt;
109      %let err=No Records in sa_lgc;&lt;BR /&gt;
110      %job_log(id=&amp;amp;job_id,job_nm=JOB1,remark=&amp;amp;err,m_id=WAP,stat=Complete);&lt;BR /&gt;
111&lt;BR /&gt;
112      %put endsas1;&lt;BR /&gt;
113  %end;*/&lt;BR /&gt;
&lt;BR /&gt;
WARNING: Apparent symbolic reference N_lcg not resolved.&lt;BR /&gt;
&lt;BR /&gt;
Thank you!</description>
    <pubDate>Wed, 04 Aug 2010 14:51:38 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-04T14:51:38Z</dc:date>
    <item>
      <title>Apparent symbolic reference  not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/60256#M13007</link>
      <description>This is the log of mmy code which does not give an error but still if I try to reference the value n_lcg  I get an error that the value cannot be resolved.&lt;BR /&gt;
How do I resove this error? &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
213  PROC SQL STIMER noprint;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
214   CONNECT TO &amp;amp;tera;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.38 seconds&lt;BR /&gt;
      cpu time            0.02 seconds&lt;BR /&gt;
&lt;BR /&gt;
215    create table cnt_lcg as&lt;BR /&gt;
216        select * from CONNECTION TO teradata&lt;BR /&gt;
217          (select count(*) as cnt from user_wrk.sa_lgc );&lt;BR /&gt;
NOTE: Table WORK.CNT_LCG created, with 1 rows and 1 columns.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           19.53 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
218&lt;BR /&gt;
235     select cnt into :n_lcg from cnt_lcg;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
245  disconnect from teradata;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.07 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
246  quit;&lt;BR /&gt;
NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 %macro check_n;&lt;BR /&gt;
108  /*%if %eval(&amp;amp;n_lcg) = 0 %then %do;&lt;BR /&gt;
109      %let err=No Records in sa_lgc;&lt;BR /&gt;
110      %job_log(id=&amp;amp;job_id,job_nm=JOB1,remark=&amp;amp;err,m_id=WAP,stat=Complete);&lt;BR /&gt;
111&lt;BR /&gt;
112      %put endsas1;&lt;BR /&gt;
113  %end;*/&lt;BR /&gt;
&lt;BR /&gt;
WARNING: Apparent symbolic reference N_lcg not resolved.&lt;BR /&gt;
&lt;BR /&gt;
Thank you!</description>
      <pubDate>Wed, 04 Aug 2010 14:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/60256#M13007</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-04T14:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference  not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/60257#M13008</link>
      <description>We are not seeing all of your program.  Specifically you have not shown us the full definition of the macro CHECK_N (which currently has all the shown code commented out).  Nor do we see where or how the macro variable N_LCG is called.&lt;BR /&gt;
&lt;BR /&gt;
Consider using a %PUT N_LCG  &amp;amp;N_LCG; statement to verify that the macro variable exists and has a value.</description>
      <pubDate>Wed, 04 Aug 2010 17:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/60257#M13008</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-08-04T17:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference  not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/60258#M13009</link>
      <description>My guess is that this is a "timing" thing.  The warning is likely coming during the compilation of the %check_n macro which occurs before execution time (when your PROC SQL runs).</description>
      <pubDate>Mon, 13 Dec 2010 17:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/60258#M13009</guid>
      <dc:creator>PatrickG</dc:creator>
      <dc:date>2010-12-13T17:13:37Z</dc:date>
    </item>
  </channel>
</rss>

