BookmarkSubscribeRSS Feed
Char
Obsidian | Level 7

I am attempting to draw a line from the top of the graph to the bottom.  I am using the floor and ceiling of the minimum and maximum values and, not surprisingly, it's not going to the edge of the graph.   

 

PROC SQL;

CREATE TABLE ANNO AS

SELECT DISTINCT IMPLEMENTATION_DATE AS ID, floor(min(dpaid)) as min, ceil(max(dpaid)) as max

FROM PERM.all_lcd

where KEY = "&_KEY";

QUIT;

 

data anno1;

length color function style $8 text $12;

retain xsys '2' ysys '2';

set anno;

function='move'; x=id; y =min; output;

function='draw'; x=id; y =max; color='MAROON'; line=2; output;

function='label'; size=1.2; style='arial'; text=' Date LCD '; position='3'; output;

function='label'; size=1.2; style='arial'; text=' Implemented'; position='6'; output;

run;

 

I'm guessing I need to change my y values but I don't know what to.  Any help is appreciated.

 

Thanks!

1 REPLY 1
Char
Obsidian | Level 7

Ah - never mind.  I just had to change ysys from '2' to '1'.

 

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