BookmarkSubscribeRSS Feed
ucvikas
Obsidian | Level 7

I am using proc boxplot for reporting and wanted to make title and footnote in BOLD . also give them my custom font and color . I tried proc template but could not succeed. output destination is PDF file.

I tried to use options in title and footnote statement but that does not work.

Can any one help?

5 REPLIES 5
Reeza
Super User

What did you try? I thought inline formatting works fine for title/footnote statements.

ods pdf file='C:\_localdata\junk2.pdf';

title j=left

      font= 'Times New Roman' color=blue bcolor=red "Leading Grain "

      c=green bold italic "Producers in";

title2 j=center color=red underlin=1

       height=28pt "2"

       height=24pt "0"

       height=20pt "1"

       height=16pt "0";

proc print data=sashelp.class;

run;

footnote j=left height=20pt

       color=red "Prepared "

       c='#FF9900' "on";

footnote2 j=center color=blue

          height=24pt "&sysdate9";

footnote3 link='http://support.sas.com' "SAS";

ods pdf close;

ucvikas
Obsidian | Level 7

Can you try same with proc boxplot with pdf destination?

You can take sample code from SAS/STAT(R) 9.2 User's Guide, Second Edition

and just add your title and footnote.

let me know if you can make title and footnote in bold.

Reeza
Super User

Do you need the title embedded within the graphic? If not, use ods nogtitle I think to push it out which will then work with what I've posted. Otherwise you do have to modify the template(s).

47306 - Using the NOGTITLE option in the ODS PDF statement with SAS® 9.3

ucvikas
Obsidian | Level 7

As per SAS it works starting from 9.3 and I have 9.2.

Reeza
Super User

Ah, it helps if you mention the version in the question, there were a lot of graphical changes in 9.2 to 9.4. I don't have 9.2 to test so hopefully someone else can or you can contact tech support. I recommend tech support at this point.

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
  • 5 replies
  • 2254 views
  • 0 likes
  • 2 in conversation