The SAS Output Delivery System and reporting techniques

Change Output Size / Location

Reply
Contributor
Posts: 35

Change Output Size / Location

Hey,

I'm trying to generate an ODS PDF report using a provided background image template.  How can I increase the size of my output when I use procedures like proc print and proc chart? I'd like to get the output to be centered and take up a specific amount of space on the page.

example.jpg

data test2;

length text1 text11 text12 $ 500;

blank = ' ';

text1a = '^n^n';

text1=catt(text1a);

label blank = " " … text1 = " " …;

run;

proc template;

define style styles.WP_TEMP;

parent=Styles.noborder;

class Body / backgroundimage="WP_TEMP.jpg";

end;

run;

%macro print(num);

ods pdf style=styles.WP_TEMP startpage=now;

proc report nowd data=test2

style(report)=[cellpadding=3pt vjust=b]

style(header)=[just=center font_face='New Century Schoolbook'

font_weight=bold font_size=10pt]

style(lines)=[just=left font_face='New Century Schoolbook'] ;

columns blank text#

define blank / style(COLUMN)={just=l font_face='New Century Schoolbook'

font_weight=bold

font_size=36pt cellwidth=100 };

define text&num / style(COLUMN)={just=l font_face='New Century Schoolbook'

font_weight=bold font_size=36pt cellwidth=1300 };

run;

ods pdf startpage=no;

proc print data=sashelp.class (obs=3);

run;

%mend;

ods pdf file='testalice.pdf' notoc ;

ods escapechar='^';

%print(1);

ods pdf close;

quit;

Ask a Question
Discussion stats
  • 0 replies
  • 301 views
  • 0 likes
  • 1 in conversation