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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register 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.

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
  • 647 views
  • 0 likes
  • 2 in conversation