BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Ksharp
Super User

I don't think so.

ods graphics / width=150px height=400px outputfmt=static;
options orientation=landscape;
ods pdf file="c:\temp\layout_gridded.pdf" nogfootnote;
footnote 'xxxxxxxxx';
ods layout gridded columns=4 ;

ods region;
proc sgplot data=sashelp.cars;
vbox invoice;
run;

ods region;
proc sgplot data=sashelp.cars;
vbox horsepower;
run;

ods region;
proc sgplot data=sashelp.cars;
vbox mpg_city;
run;

ods region;
proc sgplot data=sashelp.cars;
vbox mpg_highway;
run;

ods layout end;
ods pdf close;

屏幕截图 2025-09-09 175028.png

SASdevAnneMarie
Rhodochrosite | Level 12
Thank you! That works!
BrunoMueller
SAS Super FREQ

About title and footnote. See sample program below. Depending on where the title and footnote statements are used, the apply to the whole page, or just within the region.

ods _all_ close;

ods graphics / reset=all height=110mm width=160mm outputfmt=png;

ods pdf file="%sysfunc(pathname(work))/layout.pdf" startpage=never;

title "Title outside of layout";
footnote "Footnote outside of layout";

ods layout gridded columns=1;
ods region;
title "Title inside region 1";
footnote "Footnote inside region 1";
proc sgplot data=sashelp.cars;
vbar type / group=origin response=invoice stat=mean;
run;
ods region;
title;
footnote;
proc sgplot data=sashelp.cars;
vbar type / group=origin response=invoice stat=mean;
run;
ods layout end;

ods pdf startpage=now;

title "Title outside of layout";
footnote "Footnote outside of layout";

ods layout gridded columns=1;
ods region;
title "Title for table";
footnote "Footnote for table";
proc print data=sashelp.class(obs=10);
run;

ods layout end;
ods pdf close;

 

 

SASdevAnneMarie
Rhodochrosite | Level 12
Thank you, Bruno.
SASdevAnneMarie
Rhodochrosite | Level 12

Thank you, that works.

Ksharp
Super User

Here you go:

ods graphics / width=150px height=400px outputfmt=static;
options orientation=portrait;
ods pdf file="c:\temp\layout_gridded.pdf" nogfootnote;
footnote 'xxxxxxxxx';
ods layout gridded columns=4 ;

ods region;
proc sgplot data=sashelp.cars;
vbox invoice;
run;

ods region;
proc sgplot data=sashelp.cars;
vbox horsepower;
run;

ods region;
proc sgplot data=sashelp.cars;
vbox mpg_city;
run;

ods region;
proc sgplot data=sashelp.cars;
vbox mpg_highway;
run;





ods region;
proc sgplot data=sashelp.cars;
vbox invoice;
run;

ods region;
proc sgplot data=sashelp.cars;
vbox horsepower;
run;

ods region;
proc sgplot data=sashelp.cars;
vbox mpg_city;
run;

ods region;
proc sgplot data=sashelp.cars;
vbox mpg_highway;
run;

ods layout end;
ods pdf close;

屏幕截图 2026-02-27 173948.png

BrunoMueller
SAS Super FREQ
You are not using ODS LAYOUT and you do not specify the size of the image to create, so I guess that is why you do not have them on the same page.
Ksharp
Super User

And I used GTL and got this:

 


proc template;
define statgraph y2axis;
begingraph /border=off;
layout lattice /rows=1 columns=4 ; 

layout overlay;
boxplot y=weight;
endlayout;

layout overlay;
boxplot y=height;
endlayout;

layout overlay;
boxplot y=Diastolic;
endlayout;


layout overlay  ;
boxplot y=Systolic;
endlayout;


endlayout;
endgraph;
end;
run;

ods pdf file="c:\temp\layout_gridded.pdf";
proc sgrender data=sashelp.heart(obs=1000) template=y2axis;
run;
ods pdf close;

want20260226.png

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore 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
  • 22 replies
  • 1777 views
  • 10 likes
  • 4 in conversation