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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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