The SAS Output Delivery System and reporting techniques

ODS PDF PROC REPORT

Reply
Regular Contributor
Posts: 228

ODS PDF PROC REPORT

[ Edited ]

 

Hi...I am trying to insert a line to seaprate the titles from the body of the content of the report and I end up with only a dash at the begiining of the line but doesn not go across the entire page. Below is part of the code that I am using. I am wondering if I am missing something? Thanks.

 

ODS _ALL_ CLOSE;

ODS LISTING CLOSE;

ODS NORESULTS;

 

OPTIONS ORIENTATION=PORTRAIT NOCENTER NODATE NONUMBER

                                TOPMARGIN=".5IN"

                                BOTTOMMARGIN=".5IN"

                                LEFTMARGIN=".5IN"

                                RIGHTMARGIN=".5IN";

%LET RSTR = %STR( );

%LET TSTR = %SYSFUNC(REPEAT(&RSTR,50));

 

ODS ESCAPECHAR='^';

ODS PDF FILE="%sysfunc(pathname(project))\&FILENAME Report (&rundate).PDF" STYLE=JOURNAL NOTOC BOOKMARKGEN=NO BOOKMARKLIST=NONE;

 

TITLE1 JUSTIFY=LEFT '^S={PREIMAGE="U:\PERSONAL\LOGO1.GIF"}';

TITLE2 JUSTIFY=CENTER BOLD HEIGHT=12PT FONT="Arial" "Listing of Items";

TITLE3 JUSTIFY=CENTER BOLD HEIGHT=12PT FONT="Arial" "For the Department in Descending Order of Quantity Units";

TITLE4 JUSTIFY=CENTER BOLD HEIGHT=12PT FONT="Arial" "For the Period of January 1 to December 31";

TITLE5 " ";

TITLE6 "^{style[bordertopwidth=2px bordertopcolor=black] &tstr}";

Super User
Posts: 9,856

Re: ODS PDF PROC REPORT

Try this one :

 

ods pdf file='/folders/myfolders/x.pdf';
ods escapechar='~';
TITLE1  j=l "  "  j=r "  "  ;
TITLE2 "~{style[bordertopwidth=2px bordertopcolor=black]} ";
proc print data=sashelp.class;run;
ods pdf close;

 

 

Ask a Question
Discussion stats
  • 1 reply
  • 273 views
  • 0 likes
  • 2 in conversation