BookmarkSubscribeRSS Feed
Defense
Obsidian | Level 7

Hi,

I am creating report (tableX. Rtf) using proc report. We expected the line of footnote 2a, 2b align 2-3 space away from the margin relative to footnote 1 and 2(expected output). However, my output only aligns all footnote left (my output). Please see detail in attached file.

 

I have reference several papers( such as Advanced RTF layout with SAS; COMPUTE Block and Conditional Footnote). But it doesn’t work out. Could anyone help me?

 

Thanks

1 REPLY 1
sabisw
SAS Employee

Hi there,

Here is the code that I used to create the output that you desire.

data have;
	length male $8;
	male="male";
	arma=18;
	armb=16;
run;
ods rtf file='c:\sasuser\tryindent2.rtf';
proc report data=have NOWD
	style(lines)={leftmargin=.25in just=left protectspecialchars=off};
	title1 "Table X Count of male subjects by arm";
	column Male Arma armb;
	define Male/display " Male" style=[cellwidth=4 just=c];
	define ArmA /display " Arm A /(N)"  style=[cellwidth=2 just=c];
	define armb/display "Arm B/(N)" style=[cellwidth=2 just=c];

	compute after;
		line "1 Count of male subjects by arm.";
		line "2 Arm is assigned at week 2 after study initiated:"; 
		line "\tab {2a Arm A: Control.}";
		line "\tab {2b Arm B: Test.}";
	endcomp;
RUN;
ods rtf close;

Please keep in mind that \tab will not work in PDF or HTML, but in RTF only. I'm attaching the output that I got using the code above.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 1280 views
  • 0 likes
  • 2 in conversation