BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
crimbo
Fluorite | Level 6

I am following a project in a SAS book which has the following code:

 

symbol1 interpol=join height=10pt value=none
line=1 width=2 cv = _style_;
axis1 style=1 width=1 minor=none;
axis2 style=1 width=1 minor=none;
title;
footnote;

 

proc gplot data = GraphPDC(where=(MemberID in( 'M0000106320012800'
,'M0000128390014000')))
nocache;
plot RxAdherent * Date/vaxis=axis1 haxis=axis2 frame;
by MemberID NDC;
run;

 

i am new to SAS and this code should be for gplot.  I am using SAS University Edition and the code above will fail with errors.  What is the code equivalent of the above for SAS University Edition with sgplot?

 

Thanking you.

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

This should get you started.  You cam customize your plot using the axis statements within the proc please review the documentation and many samples here :

http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#p073bl97jzadkmn...

http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#n06d3rt7nhhqq4n...

http://support.sas.com/documentation/cdl/en/grsggs/64979/HTML/default/viewer.htm#titlepage.htm

 

Proc SGPLOT data=graphPDC;
Where;*add your where clause here
By memberid NDC;
Series X=Date y=rxadherent;
Run;

View solution in original post

4 REPLIES 4
Jagadishkatam
Amethyst | Level 16
could you please let me know the error you are getting with proc gplot when you are using it.
Thanks,
Jag
Reeza
Super User

@Jagadishkatam SAS UE does not include a SAS/Graph license. 

Reeza
Super User

This should get you started.  You cam customize your plot using the axis statements within the proc please review the documentation and many samples here :

http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#p073bl97jzadkmn...

http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#n06d3rt7nhhqq4n...

http://support.sas.com/documentation/cdl/en/grsggs/64979/HTML/default/viewer.htm#titlepage.htm

 

Proc SGPLOT data=graphPDC;
Where;*add your where clause here
By memberid NDC;
Series X=Date y=rxadherent;
Run;
crimbo
Fluorite | Level 6

Thank you Reeza

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
  • 4 replies
  • 3532 views
  • 1 like
  • 3 in conversation