I am trying to parse values from data step to gplot procedure to add some statistic to graphs using call symput function. but it seems that only the last observation has been passed to gplot. how can I fix this problem? Thanks.
libname out "c:\sas output";
%global ID;
%global RSQ;
%global RMSE;
%macro plot(in=,id=);
axis1;
axis2 label=(angle=90 justify=center);
symbol1 value=dot c=bib h=15pt i=rl;
symbol2 value=dot c=red h=15pt i=rl;
legend1 position=(outside center bottom) frame label=("Blade ID" font=arial height=15pt) ;
proc gplot data=∈
title1 "Correlation of &id &RSQ &RMSE";
plot ser*ttmcw_nm/ grid legend=legend1 haxis=axis1 vaxis=axis2 annotate=reg;
where Blade_ID="&id";
run;
%mend;
data _null_;
set reg;
call symput('ID',Blade_ID);
call symput('RSQ',_RSQ_);
call symput('RMSE',_RMSE_);
%put &ID;
%plot(in=out.bladeraw,id=&ID);
run;