<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to insert indentation inside the category rows in ods rtf file? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/910020#M26464</link>
    <description>&lt;P&gt;you can follow what's in this paper. they have examples of AE tables.&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings20/4936-2020.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings20/4936-2020.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 00:57:02 GMT</pubDate>
    <dc:creator>tarheel13</dc:creator>
    <dc:date>2024-01-02T00:57:02Z</dc:date>
    <item>
      <title>How to insert indentation inside the category rows in ods rtf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/898718#M26398</link>
      <description>&lt;P&gt;I want to display the categories (At Least One Event, Hypertension, Palpitation...) inside the row headers (Cardiac Disorders, Infections and Infestations...) in my ods rtf output as it looks in the following image:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88881iA6E7C9BF0CAA909B/image-size/large?v=v2&amp;amp;px=999" role="button" title="a.jpg" alt="a.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my code is giving me output in the following format:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="b.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88882iD5F1A9124EC93963/image-size/large?v=v2&amp;amp;px=999" role="button" title="b.png" alt="b.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea would be heartily appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 09:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/898718#M26398</guid>
      <dc:creator>diwashsapkota</dc:creator>
      <dc:date>2023-10-16T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert indentation inside the category rows in ods rtf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/898818#M26405</link>
      <description>&lt;P&gt;Please include the code you are currently using including any ODS destination, RTF PDF or other, options. That way we at least have some chance of knowing where changes might be applicable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possible likely changes might include adding some leading spaces to the values that need to Indent and using the Style option ASIS=On&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 15:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/898818#M26405</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-16T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert indentation inside the category rows in ods rtf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900182#M26416</link>
      <description>&lt;P&gt;Did you try to add a LINE statement in COMPUTE block?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your data has multiple groups, and in your screenshot each group is separated by an empty line (row). If this is what you want, add an extra LINE statement in your compute block.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the example below;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length groups 4 disease total $15; 
input groups disease total;
cards;
1 hypertension 100
1 palpitation 200
2 infection 110
2 infestation 210
;

proc report data=have;
	column groups disease total;
	define groups/order noprint;
	define disease/ display;
	define total/ display;
	compute before groups;
		line '';
		line @1 text $100.;
		length text $100;
		if groups=1 then text= 'Cardiac disorders';
		else if groups=2 then text='Infections and Infestations';
	endcomp; 
run; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 17:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900182#M26416</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2023-10-26T17:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert indentation inside the category rows in ods rtf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900614#M26421</link>
      <description>&lt;P&gt;Sure, here is my code for the report:&lt;/P&gt;&lt;PRE&gt;options papersize='LETTER' orientation=landscape topmargin='2.54cm' 
	bottommargin='2.54cm' leftmargin='2.54cm' rightmargin='2.54cm' nodate nonumber 
	missing=' ';
%** Create template for TLFs **;

proc template;
	%** Courier 9pt **;
	define style styles.ods_9pt;
		parent=styles.rtf;
		replace fonts/ 'TitleFont2'=("Courier New", 9pt) 'TitleFont'=("Courier New", 
			9pt) 'FootnoteFont'=("Courier New", 9pt) 'StrongFont'=("Courier New", 9pt) 
			'EmphasisFont'=("Courier New", 9pt) 'FixedEmphasisFont'=("Courier New", 9pt) 
			'FixedStrongFont'=("Courier New", 9pt) 'FixedHeadingFont'=("Courier New", 
			9pt) 'BatchFixedFont'=("Courier New", 9pt) 'FixedFont'=("Courier New", 9pt) 
			'headingEmphasisFont'=("Courier New", 9pt) 'headingFont'=("Courier New", 
			9pt) 'docFont'=("Courier New", 9pt);
		replace document from container / asis=on protectspecialchars=off;
		replace SystemFooter from TitlesAndFooters / asis=on protectspecialchars=on 
			font=Fonts('FootnoteFont');
		replace systemtitle from titlesandfooters/ asis=on protectspecialchars=off;
		replace body from document / asis=on;
		replace color_list "Colors used in the default style" / 'link'=blue 
			'bgH'=white 'fg'=black 'bg'=white;
		replace Table from output / Background=_UNDEF_ cellpadding=0pt Rules=groups 
			Frame=hsides;
		style Header from Header / Background=_undef_;
		style Rowheader from Rowheader / Background=_undef_;
		replace pageno from titlesandfooters/ Foreground=white;
	end;
run;

ods rtf file='/home/u63366981/01_adam/results/tableae.rtf' style=styles.ods_9pt;
ods rtf startpage=now;
ods escapechar='#';

%let current_date = %sysfunc(date(), yymmdd10.);
%let current_time = %sysfunc(time(), time5.);

title1 color="black" justify=left "Protocol:CDISCPILOT01" justify=right 'Page #{thispage} of #{lastpage}';
title2 color="black" justify=left "Population:Safety" justify=right "Date: &amp;amp;current_date. &amp;amp;current_time.";
title3 color="black" justify=center bold "Template 13";
title4 color="black" justify=center 
	"Incident of Treatment Emergent Adverse Events by Treatment Group";
options center number;

proc report data=final2 nowindows nowd headline headskip split='*' 
		out=finalreport;
	column (aeterm ("Placebo (N=&amp;amp;bign1.)" trt1 tot1) 
		("Xanomeline High*Dose (N=&amp;amp;bign2.)" trt2 tot2) 
		("Xanomeline Low*Dose (N=&amp;amp;bign3.)" trt3 tot3) (z1) (z2));
	define aeterm/'System Organ Class * PREFERRED TERM' left;
	define trt1/'n (%)' style(column)=[cellwidth=1in] left;
	define tot1/'Total*Events' center;
	define trt2/'n (%)' style(column)=[cellwidth=1in] left;
	define tot2/'Total*Events' center;
	define trt3/'n (%)' style(column)=[cellwidth=1in] left;
	define tot3/'Total*Events' center;
	define z1/'Placebo vs. Xan. Low Dose p-value' style(column)=[cellwidth=0.5in]
		center;
	define z2/'Placebo vs. Xan. High Dose p-value' style(column)=[cellwidth=0.5in] center;

	footnote1 justify=left "Treatment emergent events are defined as events which start or worsen or recur on or after the start of treatment.";
	footnote2 justify=left "Adverse events are coded using MedDRA.";
	footnote3 justify=left "Percentages are based on the number of subjects in the safety population within each treatment group.";
	footnote4 justify=left "P-values are based on Fisher's Exact test for the comparison of placebo versus each active treatment group.";
	footnote5 justify=left "Total Events represent the total number of times an event was recorded within each treatment group.";
run;

ods rtf close;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Oct 2023 09:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900614#M26421</guid>
      <dc:creator>diwashsapkota</dc:creator>
      <dc:date>2023-10-30T09:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert indentation inside the category rows in ods rtf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900615#M26422</link>
      <description>Sorry, I could not understand it clearly. Is there any resource you'd recommend me to go through on creating tables from the data?</description>
      <pubDate>Mon, 30 Oct 2023 09:52:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900615#M26422</guid>
      <dc:creator>diwashsapkota</dc:creator>
      <dc:date>2023-10-30T09:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert indentation inside the category rows in ods rtf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900658#M26424</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Please search in the forums for examples of using INDENT= and LEFTMARGIN= as style overrides. There have been more than a few postings, with example code of how to perform indentation on a demographic report like this. Here are a few of them:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Indent-different-rows-of-a-column-in-RTF/m-p/215812#M14158" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Indent-different-rows-of-a-column-in-RTF/m-p/215812#M14158&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Compute-block-indent-left-margin-only-working-for-the-first-line/m-p/795753" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Compute-block-indent-left-margin-only-working-for-the-first-line/m-p/795753&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Shift-within-one-column-in-Proc-Report/m-p/405131" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Shift-within-one-column-in-Proc-Report/m-p/405131&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In addition, I recommend that you look at your TEMPLATE code. The REPLACE statement was deprecated starting in SAS 9.2, so you may or may not be getting the results you expect with the current template code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In addition, options like HEADLINE and HEADSKIP are LISTING only options and not used in ODS RTF. Also, keep in mind that when you do accomplish the indenting you want, it will NOT be saved into your OUT= data file. There are not any styles applied to SAS data sets, only to the ODS RTF result file.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900658#M26424</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-10-30T12:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert indentation inside the category rows in ods rtf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900666#M26425</link>
      <description>&lt;P&gt;A quick google search gave me this&lt;A href="https://www.lexjansen.com/pharmasug/2004/TechnicalTechniques/TT02.pdf" target="_self"&gt; paper&lt;/A&gt;.&amp;nbsp; Check the use of COMPUTE blocks there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 13:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/900666#M26425</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2023-10-30T13:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert indentation inside the category rows in ods rtf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/910020#M26464</link>
      <description>&lt;P&gt;you can follow what's in this paper. they have examples of AE tables.&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings20/4936-2020.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings20/4936-2020.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 00:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-insert-indentation-inside-the-category-rows-in-ods-rtf/m-p/910020#M26464</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2024-01-02T00:57:02Z</dc:date>
    </item>
  </channel>
</rss>

