BookmarkSubscribeRSS Feed
AmitKB
Fluorite | Level 6
Hi,
I have made top margin = 0 in in option statement. I still got a lot of space on the top, which I would like to use. Kindly explain me what is the option to reclaim the top space.
I have posted my code. Just have to change pdf file location.

Thanks,

Amit





options nodate nonumber orientation=landscape;
ods listing;
data data1;
input country $ metric1 pene;
datalines;
CAN 161 55
AUS 679 74
NZL 97 70
UK 272 57
MEX 479 49
JPN 844 97
ITA 298 58
;
run;
ods listing close;
goptions reset=all device=pdfc ftext="swissb";
options leftmargin="0 in" topmargin="0 in" rightmargin="0 in";
ods pdf file='C:\Documents and Settings\Desktop\report.pdf'
notoc ;
ods pdf StartPage=Never;
ods escapechar='~';
title;
footnote;
ODS layout start;
ODS region x=4 in y=0.5 in height = 0.5 in width = 10 in;
ODS pdf text =" CUSTOME~mR METRICS OVERVIEW
~-2n Markets ~-2nOctober 2008";

ODS region x=0 in y=1 in height = 2 in width = 2.75 in;
goptions htext=18pt ctext=black;
goptions cback=white;
axis1 label=none minor=(n=3)order=(0 to 1000 by 200);
axis2 label=none order=(0 to 100 by 20) minor=(n=1);
pattern1 v=solid color=cx17588A;
*pattern1 v=solid color=cx006699;
symbol1 v=dot i=join c=blue h=1;
title1 "metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ODS region x=2.5 in y=1 in height = 2 in width = 2.75 in;
title1 "metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ODS region x=5 in y=1 in height = 2 in width = 2.75 in;
title1 "metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ODS region x=7.5 in y=1 in height = 2 in width = 2.75 in;
title1 "metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;

ODS region x=0 in y=3.5in height = 2 in width = 2.75 in;
title1 "metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ODS region x=2.5 in y=3.5 in height = 2 in width = 2.75 in;
title1 " metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ODS region x=5 in y=3.5 in height = 2 in width = 2.75 in;
title1 " metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ODS region x=7.5 in y=3.5 in height = 2 in width = 2.75 in;
title1 " metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;

ODS region x=0 in y=6 in height = 2 in width = 2.75 in;
title1 " metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ODS region x=2.5 in y=6 in height = 2 in width = 2.75 in;
title1 " metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ODS region x=5 in y=6 in height = 2 in width = 2.75 in;
title1 " metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ODS region x=7.5 in y=6 in height = 2 in width = 2.75 in;
title1 " metric1 (000's) / PENETRATION (%)";
proc gbarline data=data1;
bar country / axis=axis1
sumvar=metric1
midpoints="CAN" "AUS" "NZL" "UK" "MEX" "JPN" "ITA"
discrete width=7.5
;
plot / sumvar=pene axis=axis2;
run;
quit;
ods layout end;
ods pdf StartPage=now;
ods pdf close;
ods listing;
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
It could be an interaction between ODS LAYOUT (which is experimental), your graphics driver and/or the print driver or universal print settings for your session.

This kind of question should be directed at SAS Tech Support, as they can investigate all the possibilities that might be affecting your session and your output file.

cynthia

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

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