Hi, I'm trying to add some shapes to my report and I found this webpage that explains how to use the annotate macros: https://usermanual.wiki/Pdf/CarpenterE28099s20Complete20Guide20to20the20SASC2AE20REPORT20Procedure2C20Art20Carpenter.512612776/view However, when I run the code, I get the following messages and end up with no lines drawn. WARNING: Apparent invocation of macro LINE not resolved. ERROR 180-322: Statement is not valid or it is used out of proper order. Here is the code from the webpage. Do you see any potential problems? I appreciate and help or insight. Thanks! 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;
... View more