<?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: ODS and Reporting options in SAS ODA in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970855#M26911</link>
    <description>Thank you.&lt;BR /&gt;I understood mistakes i made and corrected them.</description>
    <pubDate>Wed, 16 Jul 2025 09:32:48 GMT</pubDate>
    <dc:creator>sas_user</dc:creator>
    <dc:date>2025-07-16T09:32:48Z</dc:date>
    <item>
      <title>ODS and Reporting options in SAS ODA</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970660#M26902</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to SAS ODA. I am trying to create a RTF report using ODS and PROC REPORT Procedure. Report is being created however some options are not working from below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;DIV&gt;/* Reporting */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ODS listing close;&lt;/DIV&gt;&lt;DIV&gt;ODS RTF body = "xxx.rtf";&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc report data = tab_all1 headline headskip nowd &lt;FONT color="#FFFF00"&gt;&lt;EM&gt;&lt;STRONG&gt;center&lt;/STRONG&gt; &lt;/EM&gt;&lt;/FONT&gt;split = "^";&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;column mainord seq label trt1 trt2 trt3 trt99;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define mainord / order order = data noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define seq / order order = data noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define &lt;FONT color="#3366FF"&gt;label &lt;/FONT&gt;/ width = 5 "Characteristics" ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define trt1 /&amp;nbsp; width = 2 &lt;STRONG&gt;&lt;EM&gt;&lt;FONT color="#FFFF00"&gt;center&lt;/FONT&gt; &lt;/EM&gt;&lt;/STRONG&gt;"Xanomeline Low Dose^(N=XX)^n (%)" ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define trt2 /&amp;nbsp; width = 2 &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FFFF00"&gt;center&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/EM&gt;"Xanomeline High Dose^(N=XX)^n (%)" ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define trt3 /&amp;nbsp; width = 2 &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FFFF00"&gt;center&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; "Placebo^(N=XX)^n (%)" ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define trt99 /&amp;nbsp; width = 2 &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FFFF00"&gt;center&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/EM&gt;"Total Population^(N=XX)^n (%)" ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;break after mainord/skip;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ODS RTF close;&lt;/DIV&gt;&lt;DIV&gt;ODS listing;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas_user_0-1752402147018.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108316i48C6C78EB8BA37FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sas_user_0-1752402147018.png" alt="sas_user_0-1752402147018.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Issue 1.&amp;nbsp; Break after statement does not produce break, neither is SAS result window output nor in RTF file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue 2. Input dataset has some Label variable values with 2 leading spaces as highlighted in blue, but those spaces are striped in output window and RTF both.&lt;/P&gt;&lt;P&gt;Issue 3. I am giving CENTER option for center justification in PROC REPORT statement. But all variables are left aligned. When i explicitly define CENTER justification in each define statement , then it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware SAS ODA has some limitations, are these issues because of that, or am i making some mistake in syntax?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 10:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970660#M26902</guid>
      <dc:creator>sas_user</dc:creator>
      <dc:date>2025-07-13T10:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: ODS and Reporting options in SAS ODA</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970666#M26903</link>
      <description>&lt;P&gt;It is best practice to provide example data when wanting to get specific output. Sometimes the data needs to change and without an example data set is hard to tell what may be needed. Best is to provide a data step to create such data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The stripping of leading spaces is default behavior in almost all output. You can try using the style override of ASIS to prevent that.&lt;/P&gt;
&lt;PRE&gt;data example;
 text = '  sometext';
run;

/* default behavior*/
proc report data=example;
   columns text;
   define text/order;
run;
/* override the default behavior with the style setting ASIS*/
proc report data=example;
   columns text;
   define text/order style=[asis=on];
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't test the behavior of BREAK without data. Note that the SKIP option of Break only applies in the ODS LISTING destination an will have no effect in another destinations. The default output window is likely to be ODS HTML and will not show such. Also ODS RTF will not as it is not the LISTING (which means very plain text) either.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't show any code for how you attempted to center the results but since you show WIDTH option I suspect that you attempted the CENTER option. Both of those option also only apply to the ODS LISTING destination.&lt;/P&gt;
&lt;P&gt;In other than LISTING style elements are used to control such things as width of cells or other properties. To create a 2 inch wide box and center the output&lt;/P&gt;
&lt;PRE&gt;proc report data=example;
   columns text;
   define text/order style=[cellwidth=2in just=c];
run;&lt;/PRE&gt;
&lt;P&gt;Just stands for justification.&lt;/P&gt;
&lt;P&gt;The online help for Proc Report has several examples of using ODS style settings as well as responses to questions on this forum.&lt;/P&gt;
&lt;P&gt;The style settings let you control things like the background color, font properties like family, size, color, borders of the cells, space around the displayed values and many other things.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 17:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970666#M26903</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-07-13T17:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS and Reporting options in SAS ODA</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970669#M26904</link>
      <description>Hi:&lt;BR /&gt;As previously mentioned, some of the options specified in your code are LISTING only options and are ignored by ODS RTF and other ODS destinations. (HEADLINE, HEADSKIP, SKIP, etc -- all these and others are well documented) . To impact the RTF output, the best option is to use STYLE= overrides that are supported by ODS RTF, ODS PDF and ODS HTML. There have been many previous posts about using STYLE= overrides. And, as previously explained, without data, no one can test or tweak your code.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 13 Jul 2025 20:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970669#M26904</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2025-07-13T20:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODS and Reporting options in SAS ODA</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970855#M26911</link>
      <description>Thank you.&lt;BR /&gt;I understood mistakes i made and corrected them.</description>
      <pubDate>Wed, 16 Jul 2025 09:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970855#M26911</guid>
      <dc:creator>sas_user</dc:creator>
      <dc:date>2025-07-16T09:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS and Reporting options in SAS ODA</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970856#M26912</link>
      <description>Thank you.&lt;BR /&gt;I understood the mistakes i made and corrected them.</description>
      <pubDate>Wed, 16 Jul 2025 09:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-Reporting-options-in-SAS-ODA/m-p/970856#M26912</guid>
      <dc:creator>sas_user</dc:creator>
      <dc:date>2025-07-16T09:33:57Z</dc:date>
    </item>
  </channel>
</rss>

