<?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 Proc Tabulate ODS Control in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21239#M3870</link>
    <description>Have this bit of code and I can't figure out how to have control over the "By Category" and "By Location" labels in the table statement.&lt;BR /&gt;
&lt;BR /&gt;
Help would be greatly appreciated - thanks&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=SlabIm2 format=comma6.0 style=[font_face=helvetica fore_ground=green font_size=7pt];&lt;BR /&gt;
  class SLAB_GRD_FAM_NAME &lt;BR /&gt;
        SLAB_SOURCE_DIM_CD &lt;BR /&gt;
        PROD_GRP_DIM_CD &lt;BR /&gt;
        SLAB_LOC_DIM_CD; &lt;BR /&gt;
&lt;BR /&gt;
  classlev SLAB_GRD_FAM_NAME &lt;BR /&gt;
           SLAB_SOURCE_DIM_CD &lt;BR /&gt;
           PROD_GRP_DIM_CD &lt;BR /&gt;
           SLAB_LOC_DIM_CD/&lt;BR /&gt;
             style=[foreground=red font_face=helvetica font_size=7pt];&lt;BR /&gt;
&lt;BR /&gt;
  var SLAB_TON/style=[foreground=blue font_face=helvetica font_size=6pt];&lt;BR /&gt;
 &lt;BR /&gt;
  table SLAB_SOURCE_DIM_CD=' '*&lt;BR /&gt;
        (SLAB_GRD_FAM_NAME=' ' all) all,&lt;BR /&gt;
        (PROD_GRP_DIM_CD='By Category' all SLAB_LOC_DIM_CD='By Location')&lt;BR /&gt;
        *SLAB_TON='Tons'*sum=' '*&lt;BR /&gt;
        [style=[foreground=green font_face=helvetica font_size=8pt]]&lt;BR /&gt;
        /misstext=' '&lt;BR /&gt;
         box=[label="All Slab Inventory"&lt;BR /&gt;
         style=[foreground=orange font_face=helvetica font_size=8pt]]&lt;BR /&gt;
         ;&lt;BR /&gt;
run;</description>
    <pubDate>Mon, 26 May 2008 19:15:30 GMT</pubDate>
    <dc:creator>Bill</dc:creator>
    <dc:date>2008-05-26T19:15:30Z</dc:date>
    <item>
      <title>Proc Tabulate ODS Control</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21239#M3870</link>
      <description>Have this bit of code and I can't figure out how to have control over the "By Category" and "By Location" labels in the table statement.&lt;BR /&gt;
&lt;BR /&gt;
Help would be greatly appreciated - thanks&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=SlabIm2 format=comma6.0 style=[font_face=helvetica fore_ground=green font_size=7pt];&lt;BR /&gt;
  class SLAB_GRD_FAM_NAME &lt;BR /&gt;
        SLAB_SOURCE_DIM_CD &lt;BR /&gt;
        PROD_GRP_DIM_CD &lt;BR /&gt;
        SLAB_LOC_DIM_CD; &lt;BR /&gt;
&lt;BR /&gt;
  classlev SLAB_GRD_FAM_NAME &lt;BR /&gt;
           SLAB_SOURCE_DIM_CD &lt;BR /&gt;
           PROD_GRP_DIM_CD &lt;BR /&gt;
           SLAB_LOC_DIM_CD/&lt;BR /&gt;
             style=[foreground=red font_face=helvetica font_size=7pt];&lt;BR /&gt;
&lt;BR /&gt;
  var SLAB_TON/style=[foreground=blue font_face=helvetica font_size=6pt];&lt;BR /&gt;
 &lt;BR /&gt;
  table SLAB_SOURCE_DIM_CD=' '*&lt;BR /&gt;
        (SLAB_GRD_FAM_NAME=' ' all) all,&lt;BR /&gt;
        (PROD_GRP_DIM_CD='By Category' all SLAB_LOC_DIM_CD='By Location')&lt;BR /&gt;
        *SLAB_TON='Tons'*sum=' '*&lt;BR /&gt;
        [style=[foreground=green font_face=helvetica font_size=8pt]]&lt;BR /&gt;
        /misstext=' '&lt;BR /&gt;
         box=[label="All Slab Inventory"&lt;BR /&gt;
         style=[foreground=orange font_face=helvetica font_size=8pt]]&lt;BR /&gt;
         ;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 26 May 2008 19:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21239#M3870</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-05-26T19:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate ODS Control</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21240#M3871</link>
      <description>Hi, Bill:&lt;BR /&gt;
  The STYLE= option when used on the CLASS statement controls the headers for the CLASS variables. Your code is using a style= option on the CLASSLEV statement == this controls the VALUES for the CLASS variables.&lt;BR /&gt;
&lt;BR /&gt;
  So, depending on what you want, you can either use a STYLE= override to apply to ALL the CLASS variables (same as your CLASSLEV statement)&lt;BR /&gt;
[pre]&lt;BR /&gt;
class SLAB_GRD_FAM_NAME &lt;BR /&gt;
      SLAB_SOURCE_DIM_CD &lt;BR /&gt;
      PROD_GRP_DIM_CD &lt;BR /&gt;
      SLAB_LOC_DIM_CD / style=[background=yellow foreground=black]; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
 or you can have multiple CLASS statements:&lt;BR /&gt;
[pre]&lt;BR /&gt;
class SLAB_GRD_FAM_NAME &lt;BR /&gt;
      SLAB_SOURCE_DIM_CD  / [background=yellow foreground=black]; &lt;BR /&gt;
CLASS PROD_GRP_DIM_CD&lt;BR /&gt;
       / style=[background=pink foreground=black];&lt;BR /&gt;
CLASS SLAB_LOC_DIM_CD&lt;BR /&gt;
       / style=[background=cyan foreground=black];&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Proc TABULATE has very specific places that the STYLE= override affects -- so, for example, the style= override in your TABULATE statement affects the data cells (the style attribute is foreground...not fore_ground). What is specified in the TABLE statement affects the whole table. What is specified in the VAR statement affects the headers for the Analysis variables. What is specified in the CLASS statement affects the Class variable headers. If you look up the TABULATE documentation, there is an example of using STYLE= with Proc TABULATE.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 26 May 2008 21:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21240#M3871</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-05-26T21:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate ODS Control</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21241#M3872</link>
      <description>Thanks Cynthia for your help.&lt;BR /&gt;
&lt;BR /&gt;
I'm not familiar with the pre /pre syntax.  Could you explain its relevance please - &amp;amp; thanks.&lt;BR /&gt;
&lt;BR /&gt;
wd</description>
      <pubDate>Tue, 27 May 2008 13:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21241#M3872</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-05-27T13:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate ODS Control</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21242#M3873</link>
      <description>Hi, Bill:&lt;BR /&gt;
  I'm not exactly sure what you mean. I like my SAS code to look like code and maintain my indentations when I paste the code into a forum posting. In regular HTML-land, the &amp;lt;pre&amp;gt; and &amp;lt;/pre&amp;gt; tags are used to prevent the browser from tampering with the way something has been typed into an HTML page.&lt;BR /&gt;
 &lt;BR /&gt;
  In the forum posting, the use of &amp;lt;pre&amp;gt; is not supported -- since the forum itself lives in HTML-land. So the way to paste code and have the indentation maintained in the forum is with [ pre ] and [ /pre ] surrounding the code (but without spaces before and after the [ ]  square brackets.&lt;BR /&gt;
 &lt;BR /&gt;
  Is that what you meant, or did you mean something else? [ pre ] does NOT go into your SAS code window. I'm surprised you can see it at all. It generally disappears from the forum postings.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 27 May 2008 16:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21242#M3873</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-05-27T16:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate ODS Control</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21243#M3874</link>
      <description>Thanks for the pre /pre explanation.  You are correct, I don't see it on the forum, but I could see it in the "watch" email that was sent to me.&lt;BR /&gt;
&lt;BR /&gt;
And now another question - how do I gain control over the "All" part of the table, both the data and the "All" label?&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
wd</description>
      <pubDate>Tue, 27 May 2008 16:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21243#M3874</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-05-27T16:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate ODS Control</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21244#M3875</link>
      <description>Hi:&lt;BR /&gt;
  If you look in the doc for the explanation of CLASSLEV, you should also see an explanation of the KEYWORD statement. Like CLASSLEV, the KEYWORD statement gives you control over the style of headers for the keyword statistics (just as CLASSLEV gives you control over the style of headers for the levels of the CLASS variables).&lt;BR /&gt;
&lt;BR /&gt;
  For controlling the data cells created by the use of ALL, you can use the "crossing" method in the TABLE statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
TABLE .....,&lt;BR /&gt;
      .....  ALL*{s={foreground=black background=yellow}} ... &lt;BR /&gt;
   /box=.....;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
You can use either curly braces {} or square brackets [] around your style=specification. Note that, in the TABLE statement, the -ENTIRE- style= override is surrounded by an extra set of curly braces or square brackets.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 27 May 2008 18:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-ODS-Control/m-p/21244#M3875</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-05-27T18:04:02Z</dc:date>
    </item>
  </channel>
</rss>

