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