<?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: Aligning text print output in statistical table in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85598#M24476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am outputting to HTML and PDF. Both destinations have misaligned listings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, I would like to align the list on the vertical axis that can be drawn between the last digit of the mean and the first star.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Ian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 19:59:00 GMT</pubDate>
    <dc:creator>iank131</dc:creator>
    <dc:date>2012-11-29T19:59:00Z</dc:date>
    <item>
      <title>Aligning text print output in statistical table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85594#M24472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to produce a table of mean abnormal returns where each mean has an associated p-value. Instead of printing two columns, one for the mean and the other for the p-value, I just want to add stars to the mean estimate to indicate the level of significance where H0=0 (a "classical" table of statistics). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am getting is output similar to col2 below, but I want to get is col3 where the juncture between the number and the stars for each observation line up. How can I do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid #000000; width: 592px; height: 147px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: rgb(102, 144, 188); color: rgb(255, 255, 255); padding: 2px;" valign="middle"&gt;evttime&lt;/TH&gt;&lt;TH style="text-align: center; background-color: rgb(102, 144, 188); color: rgb(255, 255, 255); padding: 2px;" valign="middle"&gt;ar1_txt&lt;/TH&gt;&lt;TH style="text-align: center; background-color: rgb(102, 144, 188); color: rgb(255, 255, 255); padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ar1_txt (DESIRED)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;-30&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;0.0101 **&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: right;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;0.0101**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;-29&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-0.0211&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: right;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-0.0211&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-28&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-0.1112 *&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: right;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-0.1112*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-27&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;0.0113&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: right;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;0.0113&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-26&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-0.0001 ***&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: right;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-0.0001***&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; * = p&amp;lt;.1&amp;nbsp; ; ** = p&amp;lt;.05&amp;nbsp; ; *** = p&amp;lt;.01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact code that I am using and output is below. ar1m is a mean estimation of the abnormal return and pat_ar1_p is the p-value. How can I change the code to get the desired output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data pres_tb (keep=evttime ar1_txt); &lt;/P&gt;&lt;P&gt;&amp;nbsp; set mm_evtwin; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if pat_ar1_p&amp;lt;.01&amp;nbsp; then ar1_txt=cat( put(ar1m,7.4), ' *** ');&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if pat_ar1_p&amp;lt;.05 then ar1_txt=cat( put(ar1m,7.4), ' **&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if pat_ar1_p&amp;lt;.1&amp;nbsp; then ar1_txt=cat( put(ar1m,7.4), ' *&amp;nbsp;&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;&amp;nbsp; else&amp;nbsp;&amp;nbsp; ar1_txt=cat( put(ar1m,7.4), '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if abret1_mean&amp;gt;0 then ar1_txt=cat( '&amp;nbsp;&amp;nbsp;&amp;nbsp; ', ar1_txt );&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=pres_tb noobs label;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var evttime / style={textalign=center font_weight=bold};&lt;/P&gt;&lt;P&gt;&amp;nbsp; var ar1_txt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact output I get is this where the negative signs:&lt;/P&gt;&lt;TABLE cellpadding="3" cellspacing="0" class="Table" summary="Procedure Print: Data Set WORK.PRES_TB"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-30&lt;/TD&gt;&lt;TD class="l Data" nowrap="nowrap"&gt;-0.0331&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-29&lt;/TD&gt;&lt;TD class="l Data"&gt;0.0097&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-28&lt;/TD&gt;&lt;TD class="l Data"&gt;0.0036&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-27&lt;/TD&gt;&lt;TD class="l Data" nowrap="nowrap"&gt;-0.0704 **&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-26&lt;/TD&gt;&lt;TD class="l Data" nowrap="nowrap"&gt;-0.0568&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-25&lt;/TD&gt;&lt;TD class="l Data"&gt;0.0417&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-24&lt;/TD&gt;&lt;TD class="l Data" nowrap="nowrap"&gt;-0.0167&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-23&lt;/TD&gt;&lt;TD class="l Data"&gt;0.0091 *&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-22&lt;/TD&gt;&lt;TD class="l Data" nowrap="nowrap"&gt;-0.0078&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-21&lt;/TD&gt;&lt;TD class="l Data" nowrap="nowrap"&gt;-0.0197&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-20&lt;/TD&gt;&lt;TD class="l Data" nowrap="nowrap"&gt;-0.0711 **&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-19&lt;/TD&gt;&lt;TD class="l Data" nowrap="nowrap"&gt;-0.0757&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="c Data" nowrap="nowrap" style="font-weight: bold;"&gt;-18&lt;/TD&gt;&lt;TD class="l Data"&gt;0.0750&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 16:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85594#M24472</guid>
      <dc:creator>iank131</dc:creator>
      <dc:date>2012-11-29T16:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning text print output in statistical table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85595#M24473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following works for me. You may want to double check your boundary conditions, ie should it be &amp;lt; or &amp;lt;=?&lt;/P&gt;&lt;P&gt;Note how the space is added in as a leading blank for numbers with a mean &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may or may not work depending on your output destination which you haven't specified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input evttime mean p_value;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;-30&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0331 0.23&lt;/P&gt;&lt;P&gt;-29&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0097 0.23&lt;/P&gt;&lt;P&gt;-28&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0036 0.23&lt;/P&gt;&lt;P&gt;-27&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0704 0.03&lt;/P&gt;&lt;P&gt;-26&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0568 0.01&lt;/P&gt;&lt;P&gt;-25&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0417 0.001&lt;/P&gt;&lt;P&gt;-24&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0167 0.001&lt;/P&gt;&lt;P&gt;-23&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0091 0.23&lt;/P&gt;&lt;P&gt;-22&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0078 0.014&lt;/P&gt;&lt;P&gt;-21&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0197 0.05&lt;/P&gt;&lt;P&gt;-20&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0711 0.04&lt;/P&gt;&lt;P&gt;-19&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0757 0.01&lt;/P&gt;&lt;P&gt;-18&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0750 0.45&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data pres_tb;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length ar1_txt $15.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format ar1_txt $char15.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if p_value&amp;lt;.01&amp;nbsp; then ar1_txt=catx( "",put(mean,7.4), '***');&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if p_value&amp;lt;.05 then ar1_txt=catx( "", put(mean,7.4), '**');&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if p_value&amp;lt;.1&amp;nbsp; then ar1_txt=catx( "", put(mean,7.4), '*');&lt;/P&gt;&lt;P&gt;&amp;nbsp; else&amp;nbsp; ar1_txt=catx("", put(mean,7.4), '&amp;nbsp;&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if mean &amp;gt; 0 then ar1_txt=" "||trim(ar1_txt);*The space in this line is achieved by type ALT+255 on the keyboard instead of a space using the spacebar;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 18:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85595#M24473</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-11-29T18:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning text print output in statistical table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85596#M24474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for writing the code and also the headsup on the boundary conditions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your code, I am able to get the table, when seen in the VIEWTABLE screen, to look the way I want. However, the problem is when using PROC PRINT, all the work of adding leading spaces comes undone. What code can I use to make the data come out "lined up correctly"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your time!&lt;/P&gt;&lt;P&gt;Ian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 19:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85596#M24474</guid>
      <dc:creator>iank131</dc:creator>
      <dc:date>2012-11-29T19:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning text print output in statistical table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85597#M24475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What destination are you outputting to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RTF, PDF, Excel, HTML?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It come up fine in the listing for me, but I haven't tried other destinations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 19:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85597#M24475</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-11-29T19:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning text print output in statistical table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85598#M24476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am outputting to HTML and PDF. Both destinations have misaligned listings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, I would like to align the list on the vertical axis that can be drawn between the last digit of the mean and the first star.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Ian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 19:59:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85598#M24476</guid>
      <dc:creator>iank131</dc:creator>
      <dc:date>2012-11-29T19:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning text print output in statistical table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85599#M24477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think that JUST=D will work for ODS PDF.&amp;nbsp; Since AR1_TXT has the **, you can use a STYLE= override. But I think that JUST=D will only work for ODS PDF or RTF -- not HTML.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods pdf file='c:\temp\lineup.pdf';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=pres_tb noobs label;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; var evttime / style={textalign=center font_weight=bold};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; var ar1_txt / style={just=d};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11005i206921E75436FA11/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="just_d_pdf.png" title="just_d_pdf.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 01:25:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85599#M24477</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-11-30T01:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning text print output in statistical table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85600#M24478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you Cynthia. It works with both ODS PDF and RTF, and not HTML as you said.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 09:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85600#M24478</guid>
      <dc:creator>iank131</dc:creator>
      <dc:date>2012-11-30T09:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning text print output in statistical table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85601#M24479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use escape character to instead of a blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input evttime mean p_value;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;-30&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0331 0.23&lt;/P&gt;&lt;P&gt;-29&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0097 0.23&lt;/P&gt;&lt;P&gt;-28&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0036 0.23&lt;/P&gt;&lt;P&gt;-27&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0704 0.03&lt;/P&gt;&lt;P&gt;-26&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0568 0.01&lt;/P&gt;&lt;P&gt;-25&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0417 0.001&lt;/P&gt;&lt;P&gt;-24&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0167 0.001&lt;/P&gt;&lt;P&gt;-23&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0091 0.23&lt;/P&gt;&lt;P&gt;-22&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0078 0.014&lt;/P&gt;&lt;P&gt;-21&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0197 0.05&lt;/P&gt;&lt;P&gt;-20&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0711 0.04&lt;/P&gt;&lt;P&gt;-19&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0757 0.01&lt;/P&gt;&lt;P&gt;-18&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0750 0.45&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data pres_tb;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length ar1_txt $15.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format ar1_txt $char15.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if p_value&amp;lt;.01&amp;nbsp; then ar1_txt=catx( "",put(mean,7.4), '***');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if p_value&amp;lt;.05 then ar1_txt=catx( "", put(mean,7.4), '**');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if p_value&amp;lt;.1&amp;nbsp; then ar1_txt=catx( "", put(mean,7.4), '*');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else&amp;nbsp; ar1_txt=catx("", put(mean,7.4), '&amp;nbsp;&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if mean &amp;gt; 0 then ar1_txt="~_"||trim(ar1_txt);*The space in this line is achieved by type ALT+255 on the keyboard instead of a space using the spacebar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods html file='c:\temp\lineup.htm';&lt;/P&gt;&lt;P&gt;ods escapechar='~';&lt;/P&gt;&lt;P&gt;proc print data=pres_tb noobs label;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var evttime / style={textalign=center font_weight=bold};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var ar1_txt / style={just=l};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/2790_pastedImage_0.png" style="width: 179px; height: 488px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 03:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85601#M24479</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-12-03T03:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning text print output in statistical table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85602#M24480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Ksharp. A very helpful answer! Now I am able to get ODS output in PDF, RTF, and HTML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 12:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aligning-text-print-output-in-statistical-table/m-p/85602#M24480</guid>
      <dc:creator>iank131</dc:creator>
      <dc:date>2012-12-04T12:43:53Z</dc:date>
    </item>
  </channel>
</rss>

