BookmarkSubscribeRSS Feed
twildone
Pyrite | Level 9

 

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}";

1 REPLY 1
Ksharp
Super User

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;

 

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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