<?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: Title Statement with Proc Freq in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Title-Statement-with-Proc-Freq/m-p/600960#M76353</link>
    <description>&lt;P&gt;TITLE statements are&amp;nbsp;&lt;EM&gt;global&lt;/EM&gt; statemenst that are executed as soon as they are encountered during code fetch, so your code (title statements corrected) is equivalent to this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title1 "Table 1";
title2 "Table 2";
title3 "Table 3";
title4 "Table 4";
proc freq data=thesis.a;
tables DataA*(Datab Datac Datad Datae Dataf)/chisq;
tables (rDatab Datac Datad Datae Dataf);
tables DataA*(Datag Datah Datai Dataj Datak)/chisq;
tables compfood*(DataL DataM DataN DataO DataP)/chisq;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Nov 2019 13:21:32 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-11-01T13:21:32Z</dc:date>
    <item>
      <title>Title Statement with Proc Freq</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Title-Statement-with-Proc-Freq/m-p/600938#M76349</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having difficulty getting my code to run proc freq with title statements. I initially had each table with its own proc freq statement but I condensed it to this, and it still seems to not work. No matter where I put the title, I get this error in my log:&amp;nbsp;&lt;SPAN&gt;Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=thesis.a;&lt;BR /&gt;title1="Table 1";&lt;BR /&gt;tables DataA*(Datab Datac Datad Datae Dataf)/chisq;&lt;BR /&gt;title2="Table 2";&lt;BR /&gt;table (rDatab Datac Datad Datae Dataf);&lt;BR /&gt;title3="Table 3";&lt;BR /&gt;tables DataA*(Datag Datah Datai Dataj Datak)/chisq;&lt;BR /&gt;title4="Table 4";&lt;BR /&gt;tables compfood*(DataL DataM DataN DataO DataP)/chisq;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 12:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Title-Statement-with-Proc-Freq/m-p/600938#M76349</guid>
      <dc:creator>Cindarellie</dc:creator>
      <dc:date>2019-11-01T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Title Statement with Proc Freq</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Title-Statement-with-Proc-Freq/m-p/600940#M76350</link>
      <description>&lt;P&gt;The correct syntax is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title1 "Table 1";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note there is no equal sign.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, putting multiple title statements within one PROC will put all the titles (title1 through title4 in this case) above all of the tables. The only way to get separate titles over each table is to run multiple PROC FREQs each with its own title.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 12:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Title-Statement-with-Proc-Freq/m-p/600940#M76350</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-01T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Title Statement with Proc Freq</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Title-Statement-with-Proc-Freq/m-p/600960#M76353</link>
      <description>&lt;P&gt;TITLE statements are&amp;nbsp;&lt;EM&gt;global&lt;/EM&gt; statemenst that are executed as soon as they are encountered during code fetch, so your code (title statements corrected) is equivalent to this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title1 "Table 1";
title2 "Table 2";
title3 "Table 3";
title4 "Table 4";
proc freq data=thesis.a;
tables DataA*(Datab Datac Datad Datae Dataf)/chisq;
tables (rDatab Datac Datad Datae Dataf);
tables DataA*(Datag Datah Datai Dataj Datak)/chisq;
tables compfood*(DataL DataM DataN DataO DataP)/chisq;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Nov 2019 13:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Title-Statement-with-Proc-Freq/m-p/600960#M76353</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-01T13:21:32Z</dc:date>
    </item>
  </channel>
</rss>

