BookmarkSubscribeRSS Feed
doakley
Calcite | Level 5

I want to improve readability by controlling where ods pdf breaks long ROW labels. I already know how to handle COLUMN labels, by using the SPLIT command in PROC TEMPLATE. I am using SAS 9.2.

Here are the relevant bits of my ods code:

ods pdf file="c:\tmp\2010_D22.pdf";

data_null;set de22uccs;

[title lines]

format ucause $de22_pr.;

file print ods=(template="mytable");

put _ods_;

ods pdf close;

The format statement $de22_pr contains long lines like

    

'12'='N00-N07, N17-N19, N25-N27. NEPHRITIS, NEPH. SYNDROME, NEPHROSIS'

I tried using the SPLIT command (SPLIT='*') and inserting a * into this line. The * simply appeared in my output.

I tried using <BR> (from ods html) but it doesn't work in ods pdf.

Any ideas would be appreaciated.

Thanks,

David

1 REPLY 1
Tim_SAS
Barite | Level 11

Try the NEWLINE inline function. If the ODS escapechar is ^ then it would be coded as ^{NEWLINE}. See http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/viewer.htm#a002233270.htm.

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