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;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.