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
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;
Thank you, that works.
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
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
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →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.
Ready to level-up your skills? Choose your own adventure.