BookmarkSubscribeRSS Feed
Pramod_R
Calcite | Level 5

Hi,

I wanted a proc report output where the title of the report needs to be in a box. When i tried using the box option in title statement, it does not seem to be working. Below is the code that i used:

ods pdf file="~/pen_demo.pdf" notoc;

title1 box=1 'test';

proc report data=sashelp.class nowindows ;

columns

_all_;

run;

ods pdf close;

Any help to have a box around the title would be greatly appriciated!

Thanks,

Pramod

1 REPLY 1
ScottH_SAS
SAS Employee

This is one of those times where Graph and ODS don't share syntax.  BOX=1..4 is more for GRAPH titles.  But we can do what you want in version 9.2 and later with individual border control. You can set a width and a color for the top|bottom|right|left of the title.  Try this code and see if it helps your situation :

ods escapechar='^';

ods pdf file="pen_demo.pdf" notoc;

title1 '^{style [bordertopcolor=green bordertopwidth=1pt borderbottomcolor=green borderbottomwidth=1pt borderrightcolor=green borderrightwidth=1pt borderleftcolor=green borderleftwidth=1pt] box this text}';

proc report data=sashelp.class nowindows ;

columns _all_;

run;

ods pdf close;

Hope this helps!
Scott

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