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;
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.
/* 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;
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
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!
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.