<?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: Got &amp;quot;WARNING: Apparent invocation of macro xx not resolved.&amp;quot; when using &amp;quot;%&amp;quot; in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305784#M60940</link>
    <description>&lt;P&gt;You shouldn't get that with single quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post the exact code submitted and log?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you certain it's that line that's generating the error?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 20:56:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-10-19T20:56:05Z</dc:date>
    <item>
      <title>Got "WARNING: Apparent invocation of macro xx not resolved." when using "%" in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305780#M60939</link>
      <description>&lt;P&gt;Need to put the "%" sign in&amp;nbsp;a text string&amp;nbsp;as the column header in the proc report, coded as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define col8 /display 'FEV1(L)/~FEV1(%PN)' &amp;amp;line. ................................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but got "WARNING: Apparent invocation of macro&amp;nbsp;PN not resolved."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried the solution provied at "&lt;A href="http://support.sas.com/kb/54/193.html" target="_blank"&gt;http://support.sas.com/kb/54/193.html&lt;/A&gt;" to revise the code as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define col8 /display "FEV1(L)/~FEV1(%%PN)" &amp;amp;line. ................................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not working. The warning is still there. Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 20:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305780#M60939</guid>
      <dc:creator>raycmove</dc:creator>
      <dc:date>2016-10-19T20:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Got "WARNING: Apparent invocation of macro xx not resolved." when using "%"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305784#M60940</link>
      <description>&lt;P&gt;You shouldn't get that with single quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post the exact code submitted and log?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you certain it's that line that's generating the error?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 20:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305784#M60940</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-19T20:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Got "WARNING: Apparent invocation of macro xx not resolved." when using "%"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305796#M60941</link>
      <description>&lt;P&gt;It is a bit confusing whether you are using single quotes or double quotes.&amp;nbsp; The top example shows single quotes, but the revision that you switched to uses double quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reeza is right, that using single quotes should take care of it.&amp;nbsp; If you do need to use double quotes for some reason, the fix that you were reading about would apply the %STR function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;define col8 /display "FEV1(L)/~FEV1(&lt;FONT color="#0000FF"&gt;%str(%%)&lt;/FONT&gt;PN)" &amp;amp;line. ................................&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 21:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305796#M60941</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-19T21:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Got "WARNING: Apparent invocation of macro xx not resolved." when using "%"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305845#M60942</link>
      <description>&lt;P&gt;The column header is "&lt;SPAN&gt;FEV1(L)/~FEV1(&lt;/SPAN&gt;&lt;FONT color="#0000ff"&gt;&lt;SPAN&gt;%&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;PN)",&amp;nbsp;&lt;/SPAN&gt;I have tried all the following codes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define col8 /display 'FEV1(L)/~FEV1(&lt;FONT color="#0000ff"&gt;&lt;SPAN style="line-height: normal;"&gt;%&lt;/SPAN&gt;&lt;/FONT&gt;PN)' &amp;amp;line. ................................&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;define col8 /display "FEV1(L)/~FEV1(&lt;/SPAN&gt;&lt;FONT color="#0000ff"&gt;&lt;SPAN&gt;%&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;PN)" &amp;amp;line. ................................&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;define col8 /display 'FEV1(L)/~FEV1(&lt;FONT color="#0000ff"&gt;&lt;SPAN&gt;%%&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;PN)' &amp;amp;line. ................................&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;define col8 /display "FEV1(L)/~FEV1(&lt;FONT color="#0000ff"&gt;&lt;SPAN&gt;%%&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;PN)" &amp;amp;line. ................................&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;define col8 /display "FEV1(L)/~FEV1(&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;%str(%%)&lt;/FONT&gt;&lt;SPAN&gt;PN)" &amp;amp;line. ................................&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;define col8 /display "FEV1(L)/~FEV1(&lt;FONT color="#0000FF"&gt;%str(%&lt;/FONT&gt;&lt;SPAN&gt;PN))" &amp;amp;line. ................................&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;They all show the "WARNING: Apparent invocation of macro PN not resolved."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Here I attached the whole part of proc repor&lt;/SPAN&gt;&lt;/SPAN&gt;t&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%if &amp;amp;noval %then %do;&lt;/P&gt;&lt;P&gt;proc report data=final missing center nowd headline headskip spacing=4 formchar(2)='_' split = '~' ;&lt;BR /&gt;by SITEID SITEIDc;&lt;BR /&gt;where SITEID = "&amp;amp;_SITEIDchar";&lt;/P&gt;&lt;P&gt;column page trt01pn col1 col2 col3 avisitn col4 blk col5-col11;&lt;/P&gt;&lt;P&gt;define page /order order=internal noprint;&lt;BR /&gt;define trt01pn /order order=internal noprint;&lt;BR /&gt;define col1 /order "Planned~Treatment" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.9in just=l] flow ;&lt;BR /&gt;define col2 /order "Subject~ID" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.7in just= l] flow;&lt;BR /&gt;define col3 /order "Age/Sex/Race" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=1in just=l] flow;&lt;BR /&gt;define avisitn /order order=internal noprint;&lt;BR /&gt;define col4 /order "Week" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.9in just=l] flow ;&lt;BR /&gt;define blk /display "" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.1in just=l] flow ;&lt;BR /&gt;define col5 /display "Date of~measurement" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.9in just=l] flow ;&lt;BR /&gt;define col6 /display "Bronchodi-~lator type" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.8in just=l] flow ;&lt;BR /&gt;define col7 /display "Quality~grade" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=1in just=l] flow ;&lt;BR /&gt;define col8 /display 'FEV1(L)/~FEV1(%PN)' &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.7in just=l] flow ;&lt;BR /&gt;define col9 /display 'FVC1(L)/~FVC1(%PN)' &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.7in just=l] flow ;&lt;BR /&gt;define col10 /display "FEV1/~FVC" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.5in just=l] flow ;&lt;BR /&gt;define col11 /display "Reversi-~bility (%)" &amp;amp;line. style(header)=[just=l] style(column)=[cellwidth=0.8in just=l] flow ;&lt;BR /&gt;compute before _page_ ;&lt;BR /&gt;line &amp;amp;line.;&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;compute after col2;&lt;BR /&gt;line ' ';&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;break after page/page;&lt;/P&gt;&lt;P&gt;compute after page;&lt;BR /&gt;line &amp;amp;line.;&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;%end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 02:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305845#M60942</guid>
      <dc:creator>raycmove</dc:creator>
      <dc:date>2016-10-20T02:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Got "WARNING: Apparent invocation of macro xx not resolved." when using "%"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305869#M60944</link>
      <description>&lt;P&gt;In these lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define col8 /display "FEV1(L)/~FEV1(%%PN)" &amp;amp;line. 
define col8 /display "FEV1(L)/~FEV1(%str(%%)PN)" &amp;amp;line. 
define col8 /display "FEV1(L)/~FEV1(%str(%PN))" &amp;amp;line. &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;replace the double quotes with single quotes. Only single quotes keep SAS from trying to resolve macro triggers.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 05:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305869#M60944</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-20T05:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Got "WARNING: Apparent invocation of macro xx not resolved." when using "%"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305872#M60945</link>
      <description>&lt;P&gt;You may have reached the point where you need to break up your code and test individual bits and pieces to identify what really causes the issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normally the first step is to "make things work" outside of any macro coding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below code worked for me.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test();
  %if 1=1 %then
    %do;

      proc report data=sashelp.CLASS nowd;
        column Name;
        define Name / display 'FEV1(L)/~FEV1(%PN)' style(header)=[just=l] style(column)=[cellwidth=0.7in just=l] flow ;
      run;quit;

    %end;
%mend;

%test();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What does your&amp;nbsp;&lt;SPAN&gt;&amp;amp;line. macro variable resolve to?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 23:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/305872#M60945</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-10-20T23:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Got "WARNING: Apparent invocation of macro xx not resolved." when using "%"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/306016#M60952</link>
      <description>&lt;P&gt;Just found out the reason, the problem is&amp;nbsp;from the "%PN" in the footnote. The solution is to add the footnote manually in the code but not from the standard marcos.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, folks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:37:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Got-quot-WARNING-Apparent-invocation-of-macro-xx-not-resolved/m-p/306016#M60952</guid>
      <dc:creator>raycmove</dc:creator>
      <dc:date>2016-10-20T17:37:30Z</dc:date>
    </item>
  </channel>
</rss>

