<?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 FREQ in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54704#M15173</link>
    <description>Hey..&lt;BR /&gt;
&lt;BR /&gt;
Both the solutions worked .. Thank you very much</description>
    <pubDate>Mon, 20 Oct 2008 07:48:19 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-20T07:48:19Z</dc:date>
    <item>
      <title>PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54701#M15170</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am very new to SAS&lt;BR /&gt;
&lt;BR /&gt;
I want to get the number of transactions that happened in a particular hour of the day. I have a log database which has transaction details and time occurred. I run a frequency on the Hour to get number of transactions happened in an hour. If there is no txns happen in a particular hour I want it to be displayed as frequency 0. Is there any way customize PROC FREQ for this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance</description>
      <pubDate>Thu, 16 Oct 2008 11:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54701#M15170</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-16T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54702#M15171</link>
      <description>One way is to modify your table of transactions before your run PROC FREQ so that every hour of the day is represented by a dummy transaction, and there is a weight variable which takes on a value of 0 for those dummy transactions. Real transactions have a weight of 1.&lt;BR /&gt;
&lt;BR /&gt;
Then in PROC FREQ, use the WEIGHT weightvar /ZEROS; command</description>
      <pubDate>Thu, 16 Oct 2008 12:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54702#M15171</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2008-10-16T12:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54703#M15172</link>
      <description>try PROC MEANS, which has at least two options that meet what you seek. Copied from the online-doc :&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;COMPLETETYPES &lt;/B&gt;&lt;BR /&gt;
 Create all possible combinations of class variable values &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;CLASSDATA= &lt;/B&gt;&lt;BR /&gt;
Specify a secondary data set that contains the combinations of class variables to analyze &lt;BR /&gt;
&lt;BR /&gt;
In that secondary data set you would place the time points at which you want summary.&lt;BR /&gt;
Perhaps you should follow the examples&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/proc.hlp/a000357025.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/proc.hlp/a000357025.htm&lt;/A&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Another way to make PROC MEANS do what you need might be to use the "PRELOADFMT" feature described in the doccumentation and demonstrated at the example &lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/proc.hlp/a000353486.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/proc.hlp/a000353486.htm&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
just remember to use a format for the datetime value that gives you the hour of the day ( even if you have to create it ~~&amp;gt; with PROC FORMAT &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
all good solutions&lt;BR /&gt;
&lt;BR /&gt;
good luck &lt;BR /&gt;
PeterC</description>
      <pubDate>Thu, 16 Oct 2008 19:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54703#M15172</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2008-10-16T19:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54704#M15173</link>
      <description>Hey..&lt;BR /&gt;
&lt;BR /&gt;
Both the solutions worked .. Thank you very much</description>
      <pubDate>Mon, 20 Oct 2008 07:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54704#M15173</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-20T07:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54705#M15174</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
In PROC FREQ how to remove the proc titles &lt;BR /&gt;
&lt;BR /&gt;
The FREQ Procedure &amp;amp; &lt;BR /&gt;
Table of X by Y.&lt;BR /&gt;
&lt;BR /&gt;
I searched for it and sow that NOHEADER or NOTITLE will do that. I am using SAS 9 on Z/OS .. I tried giving options=notitle;. but its giving some error. Can any one help. Again I am very new to SAS.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Arun</description>
      <pubDate>Mon, 20 Oct 2008 14:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54705#M15174</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-20T14:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54706#M15175</link>
      <description>Hi:&lt;BR /&gt;
  The procedure title "The FREQ Procedure" can be removed with the statement:&lt;BR /&gt;
[pre]ods noptitle;[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
  This is a global statement and will turn off ALL procedure titles until you turn it back on in this session or start a new SAS session. to turn procedure titles back on:&lt;BR /&gt;
[pre]ods ptitle;[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 20 Oct 2008 14:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54706#M15175</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-10-20T14:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54707#M15176</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
This wont remove the title Table of X by Y right?. I read in some website that there is an option NOTITLE to remove both the titles and its not working for me. Also I read that this option was available from sas 8.2 onwards and they removed it from SAS 9 onwards. Any body have any idea on this?&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Arun</description>
      <pubDate>Tue, 21 Oct 2008 06:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ/m-p/54707#M15176</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-21T06:18:10Z</dc:date>
    </item>
  </channel>
</rss>

