<?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: Proc Template to Justify by Variable Type in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-to-Justify-by-Variable-Type/m-p/46588#M6085</link>
    <description>In 9.2 there is the capability of aligning columns based on their data type.  There is a table template called Base.Template.Table that all table templates inherit from.  If you define that table template as follows, it should do what you want.&lt;BR /&gt;
&lt;BR /&gt;
    proc template;&lt;BR /&gt;
    define table base.template.table;&lt;BR /&gt;
        cellstyle _datatype_ = 'num' as {just=d};&lt;BR /&gt;
    end;&lt;BR /&gt;
    run;&lt;BR /&gt;
&lt;BR /&gt;
This doesn't apply to Proc Tabulate, Proc Report, or Proc Print though because they do not use table templates.</description>
    <pubDate>Tue, 16 Sep 2008 19:09:26 GMT</pubDate>
    <dc:creator>Kevin_SAS</dc:creator>
    <dc:date>2008-09-16T19:09:26Z</dc:date>
    <item>
      <title>Proc Template to Justify by Variable Type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-to-Justify-by-Variable-Type/m-p/46587#M6084</link>
      <description>Is there a way, within a template, to specify ODS to justify character data differently from numeric data?  If left to default, character is left and numeric is right.  However, since justify=on for most destinations, my decimals are not lined up.  I would like to specify all numeric data to be just=d without affecting my character variables.  Setting &lt;BR /&gt;
&lt;BR /&gt;
parent = styles.printer;&lt;BR /&gt;
replace Data from Cell "Default style for data cells in columns." /&lt;BR /&gt;
    just       = d;&lt;BR /&gt;
&lt;BR /&gt;
causes my character data to all be right justified.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Tue, 16 Sep 2008 14:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-to-Justify-by-Variable-Type/m-p/46587#M6084</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2008-09-16T14:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template to Justify by Variable Type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-to-Justify-by-Variable-Type/m-p/46588#M6085</link>
      <description>In 9.2 there is the capability of aligning columns based on their data type.  There is a table template called Base.Template.Table that all table templates inherit from.  If you define that table template as follows, it should do what you want.&lt;BR /&gt;
&lt;BR /&gt;
    proc template;&lt;BR /&gt;
    define table base.template.table;&lt;BR /&gt;
        cellstyle _datatype_ = 'num' as {just=d};&lt;BR /&gt;
    end;&lt;BR /&gt;
    run;&lt;BR /&gt;
&lt;BR /&gt;
This doesn't apply to Proc Tabulate, Proc Report, or Proc Print though because they do not use table templates.</description>
      <pubDate>Tue, 16 Sep 2008 19:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-to-Justify-by-Variable-Type/m-p/46588#M6085</guid>
      <dc:creator>Kevin_SAS</dc:creator>
      <dc:date>2008-09-16T19:09:26Z</dc:date>
    </item>
  </channel>
</rss>

