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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 694 views
  • 0 likes
  • 1 in conversation