<?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 TABLE_SIZE not resolved within macro in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459942#M29656</link>
    <description>&lt;P&gt;MLOGIC(APPLY_CONTROL_TABLE):&amp;nbsp; %LET (variable name is TABLE_SIZE )&lt;BR /&gt;MPRINT(APPLY_CONTROL_TABLE):&amp;nbsp;&amp;nbsp; proc sql noprint;&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable&amp;nbsp;TABLE_NAME resolves to the_table_name&lt;BR /&gt;MPRINT(APPLY_CONTROL_TABLE):&amp;nbsp;&amp;nbsp; select count(*) into: TABLE_SIZE from the_table_name;&lt;BR /&gt;MPRINT(APPLY_CONTROL_TABLE):&amp;nbsp;&amp;nbsp; quit;&lt;BR /&gt;MLOGIC(APPLY_CONTROL_TABLE):&amp;nbsp; %PUT &amp;amp;=TABLE_SIZE&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable TABLE_SIZE resolves to&lt;BR /&gt;TABLE_SIZE=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, above is the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run this on its own (Run Selection):&lt;/P&gt;&lt;P&gt;proc sql noprint; select count(*) into: TABLE_SIZE from table_name; quit;&lt;/P&gt;&lt;P&gt;then it works (I get TABLE_SIZE=3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT ... running it within the macro it does not come back with anything at all in&amp;nbsp;TABLE_SIZE.&amp;nbsp;&amp;nbsp; It is so confounding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see any problem with what I am going?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2018 05:51:29 GMT</pubDate>
    <dc:creator>markc</dc:creator>
    <dc:date>2018-05-04T05:51:29Z</dc:date>
    <item>
      <title>WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459908#M29641</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why would I be getting the message:&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference TABLE_SIZE not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this code (from within a macro):&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sql noprint;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;select count(*) into :table_size from table_name;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;quit;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 02:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459908#M29641</guid>
      <dc:creator>markc</dc:creator>
      <dc:date>2018-05-04T02:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459909#M29642</link>
      <description>&lt;P&gt;your&amp;nbsp;&lt;SPAN&gt;table_name table is empty.&amp;nbsp; it has nothing to do with inside or outside of macro. When your table is empty no value is passed to macrovariable and hence your macro variable is not created.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 02:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459909#M29642</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-05-04T02:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459910#M29643</link>
      <description>&lt;P&gt;It is good practice to do this to avoid the warning:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let table_size=;

proc sql noprint;
select count(*) into :table_size from table_name;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 May 2018 02:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459910#M29643</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-04T02:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459916#M29644</link>
      <description>&lt;P&gt;Another thing to consider ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SQL is creating the macro variable &amp;amp;TABLE_SIZE, it will always create it in the local symbol table.&amp;nbsp; If you refer to &amp;amp;TABLE_SIZE outside of the macro, it will be gone and you would expect to see the message you got.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fixing that is easy.&amp;nbsp; Add this just before the PROC SQL statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%global table_size;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 03:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459916#M29644</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-05-04T03:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459917#M29645</link>
      <description>&lt;P&gt;Thank you &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976" target="_self"&gt;&lt;SPAN class="login-bold"&gt;SASKiwi&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running this code within a macro where I am passing the table_name in as a variable so technically I am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token macroname"&gt;%let&lt;/SPAN&gt; table_size&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sql&lt;/SPAN&gt; noprint&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;count&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;into&lt;/SPAN&gt; :table_size &lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt; &amp;amp;table_name.&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;quit&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I still can't obtain the table_size, it continues to be unresolved (still nothing in it when I&amp;nbsp;print it)&amp;nbsp;whereas it should come back as 3 as there are 3 rows in the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately, all I want is to know within a macro is how many rows are in table_name. (the variable passed to the table)&amp;nbsp;and store the row count&amp;nbsp;in a variable which I can use throughout the same macro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; the macro is able to successfully determine the correct value of table_name, it just can't count the rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestions would be so appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 03:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459917#M29645</guid>
      <dc:creator>markc</dc:creator>
      <dc:date>2018-05-04T03:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459920#M29647</link>
      <description>Thank you for this, I don't need to use it outside the macro but this is great info thank you</description>
      <pubDate>Fri, 04 May 2018 03:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459920#M29647</guid>
      <dc:creator>markc</dc:creator>
      <dc:date>2018-05-04T03:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459922#M29648</link>
      <description>&lt;P&gt;I suggest you replace &amp;amp;table_name in the macro with the actual table name as a test.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 03:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459922#M29648</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-04T03:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459923#M29649</link>
      <description>&lt;P&gt;Thank you, I've just did that but&amp;nbsp;still getting the same&amp;nbsp;warning message.&amp;nbsp;&amp;nbsp; The table is identified it seems but it can't count the rows.&amp;nbsp; Kind regards&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 03:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459923#M29649</guid>
      <dc:creator>markc</dc:creator>
      <dc:date>2018-05-04T03:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459924#M29650</link>
      <description>Thank you kiranv_ , I am passing the table_name into the macro, and it seems to be recognised OK, sorry I should have said before.</description>
      <pubDate>Fri, 04 May 2018 03:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459924#M29650</guid>
      <dc:creator>markc</dc:creator>
      <dc:date>2018-05-04T03:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459925#M29651</link>
      <description>&lt;P&gt;Is it a SAS table or some other database table? If not a SAS table try a SAS table;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 04:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459925#M29651</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-04T04:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459926#M29652</link>
      <description>&lt;P&gt;Thank you, it is a SAS table. Can the proc sql run within a IF THEN DO; and END; (within a macro)?&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 04:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459926#M29652</guid>
      <dc:creator>markc</dc:creator>
      <dc:date>2018-05-04T04:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459927#M29653</link>
      <description>&lt;P&gt;No, you have to convert that to macro code like %if ....... %then %do;...... %end; If that is part of your macro, remove it to get it working, then try putting the code back as macro code.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 04:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459927#M29653</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-04T04:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459930#M29655</link>
      <description>&lt;P&gt;Post the whole log of the macro. There's either a problem with &amp;amp;table_name or something else is going wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 04:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459930#M29655</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-04T04:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459942#M29656</link>
      <description>&lt;P&gt;MLOGIC(APPLY_CONTROL_TABLE):&amp;nbsp; %LET (variable name is TABLE_SIZE )&lt;BR /&gt;MPRINT(APPLY_CONTROL_TABLE):&amp;nbsp;&amp;nbsp; proc sql noprint;&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable&amp;nbsp;TABLE_NAME resolves to the_table_name&lt;BR /&gt;MPRINT(APPLY_CONTROL_TABLE):&amp;nbsp;&amp;nbsp; select count(*) into: TABLE_SIZE from the_table_name;&lt;BR /&gt;MPRINT(APPLY_CONTROL_TABLE):&amp;nbsp;&amp;nbsp; quit;&lt;BR /&gt;MLOGIC(APPLY_CONTROL_TABLE):&amp;nbsp; %PUT &amp;amp;=TABLE_SIZE&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable TABLE_SIZE resolves to&lt;BR /&gt;TABLE_SIZE=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, above is the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run this on its own (Run Selection):&lt;/P&gt;&lt;P&gt;proc sql noprint; select count(*) into: TABLE_SIZE from table_name; quit;&lt;/P&gt;&lt;P&gt;then it works (I get TABLE_SIZE=3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT ... running it within the macro it does not come back with anything at all in&amp;nbsp;TABLE_SIZE.&amp;nbsp;&amp;nbsp; It is so confounding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see any problem with what I am going?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 05:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459942#M29656</guid>
      <dc:creator>markc</dc:creator>
      <dc:date>2018-05-04T05:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459944#M29657</link>
      <description>&lt;P&gt;How are you calling the macro? If you do it with call execute, there might be a timing problem.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 06:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459944#M29657</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-04T06:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459950#M29659</link>
      <description>&lt;P&gt;Thank you, that sounds tricky and interesting.&amp;nbsp;&amp;nbsp; Do you know a way around that?&amp;nbsp;&amp;nbsp;&amp;nbsp; Kind regards&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 07:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459950#M29659</guid>
      <dc:creator>markc</dc:creator>
      <dc:date>2018-05-04T07:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459994#M29660</link>
      <description>&lt;P&gt;IF (a really important if) you call a macro with call execute, you need to delay the execution of macro statements until the also contained proc/data steps can run.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call execute('%nrstr(%macro(parameters))');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your log I see no messages from the proc sql, which tells me it was not executed before the %put.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 10:53:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/459994#M29660</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-04T10:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/460054#M29663</link>
      <description>Thank you for this, in my example the proc sql would be within the %macro above, does %nrstr force each line within %macro to complete before moving onto the next one, is that what you mean? Kind regards</description>
      <pubDate>Fri, 04 May 2018 14:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/460054#M29663</guid>
      <dc:creator>markc</dc:creator>
      <dc:date>2018-05-04T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/460152#M29673</link>
      <description>&lt;P&gt;The %nrstr prevents the resolution of the macro trigger when the code is pushed to the execution stack.&lt;/P&gt;
&lt;P&gt;Without %nrstr, the macro statements (eg the %put) are resolved immediately, while the proc sql has to wait until the data step with the call execute has finished.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 20:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/460152#M29673</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-04T20:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference TABLE_SIZE not resolved within macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/460211#M29677</link>
      <description>&lt;P&gt;Your macro log has: MPRINT(APPLY_CONTROL_TABLE):&amp;nbsp;&amp;nbsp; select count(*) into: TABLE_SIZE from &lt;STRONG&gt;the_table_name&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Isn't that supposed to be table_name?&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 23:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WARNING-Apparent-symbolic-reference-TABLE-SIZE-not-resolved/m-p/460211#M29677</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-04T23:39:41Z</dc:date>
    </item>
  </channel>
</rss>

