I'd like for the sgplot to have drill downs on the markers instead of in a separate proc report. I need to be able to pass the existing prompts then the value from the line marker value to the sub-stored process prompt. Anyone know how or have advice on how to do it? I only know how in a proc report. I'm using EG 7.1 with M4.
Thanks in advance.
Yes, I found an example where proc gchart generates a graph and a table using a stored process:
*ProcessBody; %STPBEGIN; title 'Age analysis by sex'; footnote; proc sort data=sashelp.class out=class; by sex age; run; proc gchart data=class; vbar3d age / group=sex discrete nozero shape=cylinder patternid=group; run; quit; title; proc print data=class; by sex age; id sex age; var name height weight; run; %STPEND;
Ok, you would need to collect user input and store it in a macro variable like this:
*ProcessBody; %stpbegin; title "Product Sales for &MONTH, &YEAR"; proc print data=sales; where Month eq "&MONTH" and Year eq &YEAR; var productid product sales salesgoal; run; %stpend;
Both SERIES and SCATTER plots in SGPLOT support the URL= option. The option would reference a character variable in the data set that contains the URL of what you want to display when selected.
How to link that URL to the display you want likely means that the target has to have been created or the page knows how to create something. I suspect the URL could contain parameters as any URL may but the values would have to be calculated and added to the URL variable.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.