BookmarkSubscribeRSS Feed
deleted_user
Not applicable
All text is being outputted correctly.
My only issue is that instead of "Greatest time between incidences (2009): 5" (where y=6) I only see "Greatest t" (this is also the case for text where y=4).
How can I fix this?
Thank you.

data month_anno;
length text $40;
function='label';
position='5';
xsys='2'; ysys='2'; hsys='3'; when='A';
size=3;
y=1;
spacing=4.4;
x=3.5; text='JAN'; output;
x=x+spacing; text='FEB'; output;
x=x+spacing; text='MAR'; output;
x=x+spacing; text='APR'; output;
x=x+spacing; text='MAY'; output;
x=x+spacing; text='JUN'; output;
x=x+spacing; text='JUL'; output;
x=x+spacing; text='AUG'; output;
x=x+spacing; text='SEP'; output;
x=x+spacing; text='OCT'; output;
x=x+spacing; text='NOV'; output;
x=x+spacing; text='DEC'; output;
color="green";
function='label';
y=6;
x=3.5; text="Greatest time between incidences (2009): 5";output;
y=4;
x=3.5; text="Greatest time between incidences (YTD): 3";output;
run;
1 REPLY 1
deleted_user
Not applicable
Could you specify the procedure you use to draw data ?
I tried your code with small modifications ( length text $64;...;position='6';) and all seems to O.K.

data month_anno;
length text $64;
function='label';
position='5';
xsys='2'; ysys='2'; hsys='3'; when='A';
size=3;
y=1;
spacing=4.4;
x=3.5; text='JAN'; output;
x=x+spacing; text='FEB'; output;
x=x+spacing; text='MAR'; output;
x=x+spacing; text='APR'; output;
x=x+spacing; text='MAY'; output;
x=x+spacing; text='JUN'; output;
x=x+spacing; text='JUL'; output;
x=x+spacing; text='AUG'; output;
x=x+spacing; text='SEP'; output;
x=x+spacing; text='OCT'; output;
x=x+spacing; text='NOV'; output;
x=x+spacing; text='DEC'; output;
color="green";
function='label';
y=6;
x=3.5; position='6';text="Greatest time between incidences (2009): 5";output;
y=4;
x=3.5; position='6';text="Greatest time between incidences (YTD): 3";output;
run;

proc gplot data=month_anno anno=month_anno;
plot y*x
/ haxis=axis1 vaxis=axis2;
axis1 order=(0 to 60 by 5);
axis2 order=(1 to 7 by 1);
run;quit;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1146 views
  • 0 likes
  • 1 in conversation