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
Diamond | Level 26
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
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
  • 2073 views
  • 0 likes
  • 3 in conversation