<?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 Using of GROUP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/353997#M82716</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS, Please hlp me in resoving a sample business problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have sample records below .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="webkit-fake-url://5835D016-6B58-46A7-8703-A64F4CB47942/SAS-dataset.png" border="0" alt="SAS-dataset.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find the total usage of each customer for Home and roaming circle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2017 07:16:28 GMT</pubDate>
    <dc:creator>vishyy</dc:creator>
    <dc:date>2017-04-27T07:16:28Z</dc:date>
    <item>
      <title>Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/353997#M82716</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS, Please hlp me in resoving a sample business problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have sample records below .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="webkit-fake-url://5835D016-6B58-46A7-8703-A64F4CB47942/SAS-dataset.png" border="0" alt="SAS-dataset.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find the total usage of each customer for Home and roaming circle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 07:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/353997#M82716</guid>
      <dc:creator>vishyy</dc:creator>
      <dc:date>2017-04-27T07:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/353998#M82717</link>
      <description>&lt;P&gt;Sample Dataset is attached.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13760i8CB7E592B4409985/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2017-04-27 at 12.54.15 PM.png" title="Screen Shot 2017-04-27 at 12.54.15 PM.png" /&gt;</description>
      <pubDate>Thu, 27 Apr 2017 07:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/353998#M82717</guid>
      <dc:creator>vishyy</dc:creator>
      <dc:date>2017-04-27T07:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/353999#M82718</link>
      <description>&lt;P&gt;Please post your data in the form of a datastep, mush easier to help that way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not tested but you are probably looking for something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	create table want as
	select circle
	      ,sum(minutes)
	from have
	group by circle;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Apr 2017 07:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/353999#M82718</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-04-27T07:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354000#M82719</link>
      <description>&lt;P&gt;A macro for semi-automatic conversion of a dataset to a data step can be found &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 07:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354000#M82719</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-27T07:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354011#M82727</link>
      <description>&lt;P&gt;I dont want to use proc sql.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 08:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354011#M82727</guid>
      <dc:creator>vishyy</dc:creator>
      <dc:date>2017-04-27T08:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354013#M82729</link>
      <description>&lt;P&gt;Use proc means with a by group then. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n0k7qr5c2ah3stn10g1lr5oytz57.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n0k7qr5c2ah3stn10g1lr5oytz57.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, try not to limit yourself with what tools you can and can't use, they are all useful.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 08:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354013#M82729</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-27T08:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354014#M82730</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/136265"&gt;@vishyy&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I dont want to use proc sql.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why?&lt;/P&gt;
&lt;P&gt;See Maxim 14.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 08:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354014#M82730</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-27T08:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354016#M82732</link>
      <description>&lt;P&gt;Gotta say, not very clear from your subject line "Using of Group".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a datastep solution, again, not tested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = have;
	by circle;
run;

data want;
	set have;
	by circle;
	sum = sum + minutes;
	if last.circle then output;
	retain sum 0;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Apr 2017 08:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354016#M82732</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-04-27T08:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354017#M82733</link>
      <description>&lt;P&gt;I am new and learning SAS, i just want to do in that way nothing else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 08:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354017#M82733</guid>
      <dc:creator>vishyy</dc:creator>
      <dc:date>2017-04-27T08:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354018#M82734</link>
      <description>&lt;P&gt;I am new and learning SAS, i just want to do in that way nothing else.&lt;/P&gt;&lt;P&gt;Thanks for nudging.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 08:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354018#M82734</guid>
      <dc:creator>vishyy</dc:creator>
      <dc:date>2017-04-27T08:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354020#M82736</link>
      <description>&lt;P&gt;In what way, please be specific. &amp;nbsp;You have said GROUP which indicates SQL, then you say you don't want to use that. &amp;nbsp;So the next option is using a procedure designed to create means output - proc means, however this also doesn't seem to fit what you want. &amp;nbsp;So please be clear in your posts exactly what it is you want so we don't go through these loops of trying to figure it out. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 09:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354020#M82736</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-27T09:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using of GROUP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354021#M82737</link>
      <description>&lt;P&gt;And you still have not provided example data in a usable form.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 09:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-of-GROUP/m-p/354021#M82737</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-27T09:11:28Z</dc:date>
    </item>
  </channel>
</rss>

