Hi Ashy,
You can mention the href option in ur plot statement.
proc gplot data=rays;
plot y*x = rad /haxis=axis1 href='href-value;
by name;
run;
But if you want to save the trouble of writing it for each name, then you can use a macro like following:
%macro macro-name(href,name);
proc gplot data=rays;
plot y*x = rad /haxis=axis1 href=&href;
by &name;
run;
%mend;
%macro-name(href1,name1);
%macro-name(href2,name2);
And so on…
But if you want the values to come out directly from the rays datasheet. Then you can use the symput function.
Hope this helps!
Let me know if you have anymore question on this
Message was edited by: neophyte
... View more