<?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: How to avoid this WARNING: Apparent invocation of macro MYTABLE not resolved. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-avoid-this-WARNING-Apparent-invocation-of-macro-MYTABLE/m-p/664223#M198396</link>
    <description>ohh of course &lt;BR /&gt;thank you</description>
    <pubDate>Tue, 23 Jun 2020 09:25:57 GMT</pubDate>
    <dc:creator>havmaage</dc:creator>
    <dc:date>2020-06-23T09:25:57Z</dc:date>
    <item>
      <title>How to avoid this WARNING: Apparent invocation of macro MYTABLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-avoid-this-WARNING-Apparent-invocation-of-macro-MYTABLE/m-p/664179#M198394</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to add '% before and at the end of a macro variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it does the job but i cannot avoid the warning.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it seems that it has something to do with the % that sas try to resolve in a certain way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO squote(value);
	%unquote(%str(%')%qsysfunc(tranwrd(%superq(value),%str(%'),''))%str(%'))
%MEND squote;

%MACRO GET_VIEWS(TABLENAME);

	DATA _NULL_;
		CALL SYMPUTX ('TABLE', &amp;amp;TABLENAME);
 	RUN;

	%PUT table=&amp;amp;TABLE;
	%LET TEST=%squote(%SYSFUNC(CAT(%,&amp;amp;TABLE,%)));
	%PUT TEST=&amp;amp;TEST;

%MEND;

%GET_VIEWS('MYTABLE');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a way to escape&amp;nbsp; % and single quotes and add them dynamically&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 09:06:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-avoid-this-WARNING-Apparent-invocation-of-macro-MYTABLE/m-p/664179#M198394</guid>
      <dc:creator>havmaage</dc:creator>
      <dc:date>2020-06-23T09:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid this WARNING: Apparent invocation of macro MYTABLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-avoid-this-WARNING-Apparent-invocation-of-macro-MYTABLE/m-p/664204#M198395</link>
      <description>&lt;P&gt;You are overcomplicating this. It is quite easy to "mask" this in a data step by building a string from pieces:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro get_views(tablename);
data _null_;
call symputx('table',"'%"!!"&amp;amp;tablename."!!"%'",'g');
run;
%put &amp;amp;=table;
%mend;
%get_views(MYTABLE)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jun 2020 09:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-avoid-this-WARNING-Apparent-invocation-of-macro-MYTABLE/m-p/664204#M198395</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-23T09:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid this WARNING: Apparent invocation of macro MYTABLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-avoid-this-WARNING-Apparent-invocation-of-macro-MYTABLE/m-p/664223#M198396</link>
      <description>ohh of course &lt;BR /&gt;thank you</description>
      <pubDate>Tue, 23 Jun 2020 09:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-avoid-this-WARNING-Apparent-invocation-of-macro-MYTABLE/m-p/664223#M198396</guid>
      <dc:creator>havmaage</dc:creator>
      <dc:date>2020-06-23T09:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid this WARNING: Apparent invocation of macro MYTABLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-avoid-this-WARNING-Apparent-invocation-of-macro-MYTABLE/m-p/664249#M198406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You already have the answer for your question, but I'm just guessing that you want to get something like "dynamic like condition"&amp;nbsp; in where clause? If yes, you could do it also like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let table=CLASS;

proc sql;
  select * from dictionary.tables
  where memname like '%'!!"&amp;amp;table"!!'%'
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 11:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-avoid-this-WARNING-Apparent-invocation-of-macro-MYTABLE/m-p/664249#M198406</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-06-23T11:59:23Z</dc:date>
    </item>
  </channel>
</rss>

