BookmarkSubscribeRSS Feed
NWV
Calcite | Level 5 NWV
Calcite | Level 5
Hello,

I have a simple ods rtf output statement:

ods rtf file="temp.rtf" style=seasideprinter SASDATE ;
proc print data=d1 noobs ;
var ID TestDate ;
Title "Data Listing";
run;
ods rtf close;

In the output RTF file, I want the row heighth to be taller than the standard row height for the template (the person I'm giving it to needs room to make notes in the cells). I would prefer not to go through proc template to make this happen. I've tried inline ods with escape characters and the CELLHEIGHT ods style keyword, etc. with no luck. I thought I would ask if it is even possible to do this in an inline fashion, or if I will have to go through proc template.

Thank you,

Nicole
3 REPLIES 3
Andre
Obsidian | Level 7
Nicole,
Did you really try this already?
[pre]
ods rtf file="d:\tabsas\lero.rtf";
proc print data=a.classe style(obs)={cellpadding=0 fontsize=6pt};
var datef/style(column)={cellpadding=0 fontsize=6pt};
run;
ods rtf close;
[/pre]

Andre
Cynthia_sas
SAS Super FREQ
And in addition to increasing cellpadding, just using the CELLHEIGHT attribute works for me.

cynthia
[pre]
ods rtf file="c:\temp\cellheight.rtf" style=seasideprinter SASDATE ;
proc print data=sashelp.class(obs=3) noobs
style(data)={cellheight=2in};
var name age height weight ;
Title "Data Listing";
run;
ods rtf close;
[/pre]
NWV
Calcite | Level 5 NWV
Calcite | Level 5
Thank you both for your answers. Cynthis--yours is what I was looking for--just couldn't get the syntax right. It seemed like there should be a way to make that simple change without going through proc template--and there is. It worked for me. Thank you!
Nicole

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
  • 3 replies
  • 1117 views
  • 0 likes
  • 3 in conversation