<?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 How to use Annotate Macros to add shapes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Annotate-Macros-to-add-shapes/m-p/716905#M221645</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to add some shapes to my report and I found this webpage that explains how to use the annotate macros:&lt;/P&gt;&lt;P&gt;&lt;A href="https://usermanual.wiki/Pdf/CarpenterE28099s20Complete20Guide20to20the20SASC2AE20REPORT20Procedure2C20Art20Carpenter.512612776/view" target="_blank" rel="noopener"&gt;https://usermanual.wiki/Pdf/CarpenterE28099s20Complete20Guide20to20the20SASC2AE20REPORT20Procedure2C20Art20Carpenter.512612776/view&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run the code, I get the following messages and end up with no lines drawn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro LINE not resolved.&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code from the webpage.&amp;nbsp; Do you see any potential problems?&amp;nbsp; I appreciate and help or insight.&amp;nbsp; Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf style=printer         
file='/sasdata/TEST.pdf'         
startpage=never; 
title1; 
proc report data=sashelp.prdsale(where=(prodtype='OFFICE'))      
nowd;    
%annomac;
* Build the annotate data set; 
data Annolines;    
length function color $8;   
retain xsys ysys '5';    
* Syntax for the LINE macro;     
%*LINE (x1, y1, x2, y2, color, line_type, size);     
%line(.5,69.6,50.5,69.6,blue,1,30);
%line(.5,80.5,50.5,80.5,red,1,30);   
%line(42.2,67,42.2,94,green,1,30);    
run; 
* Use the annotate data set; 
proc gslide anno=annolines;    
run;    quit; 
ods _all_ close; &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Feb 2021 20:36:27 GMT</pubDate>
    <dc:creator>jlee8</dc:creator>
    <dc:date>2021-02-04T20:36:27Z</dc:date>
    <item>
      <title>How to use Annotate Macros to add shapes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Annotate-Macros-to-add-shapes/m-p/716905#M221645</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to add some shapes to my report and I found this webpage that explains how to use the annotate macros:&lt;/P&gt;&lt;P&gt;&lt;A href="https://usermanual.wiki/Pdf/CarpenterE28099s20Complete20Guide20to20the20SASC2AE20REPORT20Procedure2C20Art20Carpenter.512612776/view" target="_blank" rel="noopener"&gt;https://usermanual.wiki/Pdf/CarpenterE28099s20Complete20Guide20to20the20SASC2AE20REPORT20Procedure2C20Art20Carpenter.512612776/view&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run the code, I get the following messages and end up with no lines drawn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro LINE not resolved.&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code from the webpage.&amp;nbsp; Do you see any potential problems?&amp;nbsp; I appreciate and help or insight.&amp;nbsp; Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf style=printer         
file='/sasdata/TEST.pdf'         
startpage=never; 
title1; 
proc report data=sashelp.prdsale(where=(prodtype='OFFICE'))      
nowd;    
%annomac;
* Build the annotate data set; 
data Annolines;    
length function color $8;   
retain xsys ysys '5';    
* Syntax for the LINE macro;     
%*LINE (x1, y1, x2, y2, color, line_type, size);     
%line(.5,69.6,50.5,69.6,blue,1,30);
%line(.5,80.5,50.5,80.5,red,1,30);   
%line(42.2,67,42.2,94,green,1,30);    
run; 
* Use the annotate data set; 
proc gslide anno=annolines;    
run;    quit; 
ods _all_ close; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Feb 2021 20:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Annotate-Macros-to-add-shapes/m-p/716905#M221645</guid>
      <dc:creator>jlee8</dc:creator>
      <dc:date>2021-02-04T20:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Annotate Macros to add shapes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Annotate-Macros-to-add-shapes/m-p/716909#M221646</link>
      <description>&lt;P&gt;It seems that you have copied the code as is from the PDF.&lt;/P&gt;
&lt;P&gt;Try to add at the end of each &lt;STRONG&gt;%line&lt;/STRONG&gt;(.....)&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/FONT&gt; with a &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;semicolon&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 20:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Annotate-Macros-to-add-shapes/m-p/716909#M221646</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-02-04T20:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Annotate Macros to add shapes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Annotate-Macros-to-add-shapes/m-p/716912#M221648</link>
      <description>&lt;P&gt;Thank you but adding semicolons did not change the outcome.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 20:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Annotate-Macros-to-add-shapes/m-p/716912#M221648</guid>
      <dc:creator>jlee8</dc:creator>
      <dc:date>2021-02-04T20:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Annotate Macros to add shapes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Annotate-Macros-to-add-shapes/m-p/716938#M221657</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;WARNING: Apparent invocation of macro LINE not resolved.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;means that&amp;nbsp; &amp;nbsp; &lt;FONT face="courier new,courier"&gt;%annomac&amp;nbsp;&lt;/FONT&gt; did not run properly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The log should&amp;nbsp;show something similar to&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;9 %annomac&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MAUTOLOCDISPLAY(ANNOMAC): This macro was compiled from the autocall file D:\Program &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Files\SAS\SASHome\SASFoundation\9.4\core\sasmacro\annomac.sas&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 00:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Annotate-Macros-to-add-shapes/m-p/716938#M221657</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-05T00:44:38Z</dc:date>
    </item>
  </channel>
</rss>

