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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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