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

Hello!

I'm using proc macontrol with data related to 18 months; the plot is fragmented on many pages, with difficulties to read it. Is it possible to force then graphic on a single page?  Thanks

 

 

Script:

proc macontrol data=decessi_1; by distretto;

ewmachart giorni_rapp*dt_decesso / weight = 0.2

outhistory = prova_hist outlimits = Cliplim;

run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

Try this: On the EWMACHART statement, use the NPANELPOS= option and use a large value, such as 

ewmachart giorni_rapp*dt_decesso / weight = 0.2 NPANELPOS=5000;

View solution in original post

4 REPLIES 4
SteveDenham
Jade | Level 19

The only thing that looks promising to me is the MAXPANELS= option.  If you want all on a single page, the code might look like this:

 

proc macontrol data=decessi_1; by distretto;
ewmachart giorni_rapp*dt_decesso / weight = 0.2 MAXPANELS=1;
outhistory = prova_hist outlimits = Cliplim;
run;

Not sure though.

 

SteveDenham

 

monicluder
Fluorite | Level 6

Thank you Steven, but unfortunately it does not work: the error message is:

ERROR: The number of panels needed is 12 which exceeds the maximum of 1.

Rick_SAS
SAS Super FREQ

Try this: On the EWMACHART statement, use the NPANELPOS= option and use a large value, such as 

ewmachart giorni_rapp*dt_decesso / weight = 0.2 NPANELPOS=5000;

monicluder
Fluorite | Level 6
Thanks a lot!! Now I have the desired output!!!

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1505 views
  • 0 likes
  • 3 in conversation