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
SAS Super FREQ
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

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 1 reply
  • 566 views
  • 0 likes
  • 2 in conversation