<?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 Three-way tables in Proc Freq not producing &amp;quot;Controlling for ...&amp;quot; text in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Three-way-tables-in-Proc-Freq-not-producing-quot-Controlling-for/m-p/421724#M67977</link>
    <description>&lt;P&gt;When I request submit PROC FREQ code that requests a three-way table, each formatted level of the first named variable produces a separate two-way table of the last two variables named on the Tables statement.&amp;nbsp; In order for the output to be useful, the formatted value of the first named variable SHOULD BE printed above each constructed table.&amp;nbsp; I used to get a line saying "Controlling for ..." to indicate what value(s) of the first named variable produced a specified cross-tabulation.&amp;nbsp; I no longer get the "Controlling for ..." message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I presume that there is some sort of option or environmental variable that is causing the "Controlling for ..." statement to be suppressed.&amp;nbsp; Any idea what that option/environmental variable might be?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, if I have three variables, A, B, and C with A taking on values 1, 2, and 3, and I submit the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=mydata;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; tables a*b*c;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should get three tables of B*C for each of the three levels of A.&amp;nbsp; The first table should be preceded by the text "Controlling for A=1", the second preceded by "Controlling for A=2", and similarly for the third table.&amp;nbsp; I do not get such text now.&amp;nbsp; How do I restore such text?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2017 22:44:25 GMT</pubDate>
    <dc:creator>Dale</dc:creator>
    <dc:date>2017-12-15T22:44:25Z</dc:date>
    <item>
      <title>Three-way tables in Proc Freq not producing "Controlling for ..." text</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Three-way-tables-in-Proc-Freq-not-producing-quot-Controlling-for/m-p/421724#M67977</link>
      <description>&lt;P&gt;When I request submit PROC FREQ code that requests a three-way table, each formatted level of the first named variable produces a separate two-way table of the last two variables named on the Tables statement.&amp;nbsp; In order for the output to be useful, the formatted value of the first named variable SHOULD BE printed above each constructed table.&amp;nbsp; I used to get a line saying "Controlling for ..." to indicate what value(s) of the first named variable produced a specified cross-tabulation.&amp;nbsp; I no longer get the "Controlling for ..." message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I presume that there is some sort of option or environmental variable that is causing the "Controlling for ..." statement to be suppressed.&amp;nbsp; Any idea what that option/environmental variable might be?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, if I have three variables, A, B, and C with A taking on values 1, 2, and 3, and I submit the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=mydata;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; tables a*b*c;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should get three tables of B*C for each of the three levels of A.&amp;nbsp; The first table should be preceded by the text "Controlling for A=1", the second preceded by "Controlling for A=2", and similarly for the third table.&amp;nbsp; I do not get such text now.&amp;nbsp; How do I restore such text?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 22:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Three-way-tables-in-Proc-Freq-not-producing-quot-Controlling-for/m-p/421724#M67977</guid>
      <dc:creator>Dale</dc:creator>
      <dc:date>2017-12-15T22:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Three-way tables in Proc Freq not producing "Controlling for ..." text</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Three-way-tables-in-Proc-Freq-not-producing-quot-Controlling-for/m-p/422174#M68013</link>
      <description>&lt;P&gt;Have you are anyone modified the templates use by Proc Freq for tables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have an entry for CROSSTABFREQS in any template path other than in&amp;nbsp;SASHELP.Tmplbase?&lt;/P&gt;
&lt;P&gt;In the results window right click on Results and select Templates from the menu. Do you have anything that starts with a name other than SASHELP? If that template repository, likely SASUSER.TMPLAT contains a CROSSTABFREQS&amp;nbsp;that is a likely culprit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or run this code:&lt;/P&gt;
&lt;PRE&gt;proc template;
   path show;
run;&lt;/PRE&gt;
&lt;P&gt;The default result in the log would look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1. SASUSER.TEMPLAT(UPDATE)
2. SASHELP.TMPLMST(READ)
&lt;/PRE&gt;
&lt;P&gt;If you have another path, especially if it has a lower number than SASHELP.TMPLMST, that may have another CROSSTABFREQS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set your system to ignore templates not created by SAS by using either&lt;/P&gt;
&lt;PRE&gt;proc template;
   path verify;
run;&lt;/PRE&gt;
&lt;P&gt;Or if you find the modified template ensure that it has this code in the template:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;      define ControllingFor;                                                  
         dynamic StratNum StrataVariableNames StrataVariableLabels;           
         text "Controlling for" StrataVariableNames / StratNum&amp;gt;0;             
      end;  
&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Dec 2017 00:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Three-way-tables-in-Proc-Freq-not-producing-quot-Controlling-for/m-p/422174#M68013</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-19T00:28:35Z</dc:date>
    </item>
  </channel>
</rss>

