BookmarkSubscribeRSS Feed
kelmatt
Calcite | Level 5

Hello,

 

The code below works for page 1, but once it continues onto the subsequent pages it reverts to one figure per page. What am I doing wrong? I have 18 figures and I want 3 pages of 6. 

 

SAS 9.4, Enterprise Guide 8.2, on Linux server


Thanks!

Matt

 

ods listing close;
ods html close;
goptions reset=all;
options nodate nonumber orientation=landscape nobyline
topmargin=0.25in bottommargin=0.25in rightmargin=0.25in
leftmargin=0.25in;

ods pdf file='/Comorb Burden.pdf';
ods graphics/noborder;

ods layout gridded columns=3 column_widths=(3in 3in 3in) rows=2 row_heights=(3in 3in) advance=bygroup;

proc sgpanel data=zcdi.allsid_cdi_output2;
*title '#byval1';
by bygroup;
where pay1 in(1:4);
panelby pay1 /columns=1 rows=4;
vbar agegrp / response=prop_100k stat=sum datalabel;
rowaxis label='Proportion per 100k';
format prop_100k 8.0 pay1 _pay.;
run;

ods pdf close;

1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
Without data and knowing exactly which "maintenance level of SAS" 9.4M5, 9.4M6? nobody can run your code.
Since ADVANCE=BYGROUP is an option of ODS LAYOUT, you might want to work with Tech Support on this issue. They can look at your exact data and try the code in the same version of SAS and EG.
Cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 796 views
  • 0 likes
  • 2 in conversation