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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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