ODS and Base Reporting

Build reports by using ODS to create HTML, PDF, RTF, Excel, text reports and more!
BookmarkSubscribeRSS Feed
tburus
Obsidian | Level 7

I am writing a document in SAS and would like to double space my text. I am using PROC ODSTEXT to allow me more control of other elements. Is there anyway to set this as a feature of the output without having to manually identify line wraps and put in something like the following:

p " ";

or any other tedious hardcoding what I want?

 

An example of my code is below:

proc odstext pagebreak=no;
	h "{\scaps Note}" / style={fontfamily='Arial' fontweight=bold font_size=12pt just=c};
	p "";
	p "The analyses presented here provide only a brief summary of collected data, with the feasibility
 of a more detailed presentation limited by the extensive breadth and detail contained in the
 dataset. The principal investigator, Dr. X, is happy to provide further
 information or to discuss research partnership opportunities upon request.";
run;
5 REPLIES 5
ballardw
Super User

Double space between paragraphs or lines within a paragraph?

 

BTW

p;

will place an empty paragraph. The literal text of " " you have been using isn't needed.

tburus
Obsidian | Level 7
Within a paragraph. Thanks for the note on the other matter.
ghosh
Barite | Level 11
/* Create an rtf file and edit in Word*/ods _all_ close;
ods rtf file="~/img/test.rtf" ;
proc odstext;
p "{\pard \sl480\slmult1 The analyses presented here provide only a brief summary of collected data, with the feasibility
 of a more detailed presentation limited by the extensive breadth and detail contained in the
 dataset. The principal investigator, Dr. X, is happy to provide further
 information or to discuss research partnership opportunities upon request. \par}"
/style=[fontsize=12pt fontfamily="Arial"];
run;
ods rtf close;

Untitled.png

tburus
Obsidian | Level 7
Thanks. Is there anyway to set this option so that it double spaces the whole document without having to do this to each p statement manually?
ghosh
Barite | Level 11

I am afraid not.   you can search and replace the odstext p statement with the formatting text.  Perhaps write SAS code to insert the codes

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1962 views
  • 0 likes
  • 3 in conversation