BookmarkSubscribeRSS Feed
Kinston
Calcite | Level 5

Hi Experts,

i need some help on how i can put multiple graphs on one page. I have some data in excel which i run updates on everyday. i would like to be able to upload the data into sas and run automatically to produce these multiple graphs for my manager. Can someone help me with the codes or templates.

attached is the sample of how i want the output.

thanks

3 REPLIES 3
PaigeMiller
Diamond | Level 26

Multiple graphs on one page: use templates in PROC GREPLAY

 

Example: http://documentation.sas.com/?cdcId=pgmmvacdc&cdcVersion=9.4&docsetId=graphref&docsetTarget=n0zqluxg...

 

 

--
Paige Miller
ballardw
Super User

First question would be do you have the data as a SAS dataset or sets? That is going to be the first step.

 

Then do you know how to make any one graph given your data?

 

One minor recommendation at this stage is it appears you will be doing a lot of date manipulation and so you will want to make sure that your date variable(s) are SAS date values which is not always the case when bringing data to SAS from Excel.

The implication is that this is a periodic process. As such you likely do not want to rely on Proc Import for bringing the data into SAS as you may have issues with variables changing type from numeric to character and differing lengths of character variables.

bartman
Fluorite | Level 6

If you are using ODS Layout it can accomplish this very thing--in addition to mingling text and bulleted lists and images.

 

ODS Layout Introduction

 

An Insider's Guide to ODS Layout

 

I did find out that nesting gridded layouts isn't as stable as absolute and you also can't control borders as well with gridded.

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
  • 3 replies
  • 1194 views
  • 0 likes
  • 4 in conversation