<?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: How to choose By/class in any proc step. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199896#M37348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in proc means&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2015 13:23:20 GMT</pubDate>
    <dc:creator>Chikku</dc:creator>
    <dc:date>2015-04-20T13:23:20Z</dc:date>
    <item>
      <title>How to choose By/class in any proc step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199893#M37345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can one of you explain me in which situation we should choose:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)By instead of&amp;nbsp; class&lt;/P&gt;&lt;P&gt;2)Class instead of By&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a proc step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know your thoughts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 10:12:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199893#M37345</guid>
      <dc:creator>Chikku</dc:creator>
      <dc:date>2015-04-20T10:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose By/class in any proc step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199894#M37346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;class: the dataset does not need to be sorted; SAS creates a structure in memory to hold the necessary sums/counters for each class value&lt;/P&gt;&lt;P&gt;by: dataset needs to be sorted (unless you use the "notsorted" option, which may create multiple stats for the same value if it repeats with other values interspersed), and only the values for the current by group are kept in memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bottom line: few distinct values are better handled with class, many distinct values (memory consumption!) will require sorting and "by" processing; by processing will scale "indefinitely".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 11:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199894#M37346</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-04-20T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose By/class in any proc step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199895#M37347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What proc are you talking about . If it was some statistical proc like proc glm proc logistic ,that would be whole different concept .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 12:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199895#M37347</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-20T12:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose By/class in any proc step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199896#M37348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in proc means&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199896#M37348</guid>
      <dc:creator>Chikku</dc:creator>
      <dc:date>2015-04-20T13:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose By/class in any proc step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199897#M37349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kurt gave you a good explanation . One more thing is BY is more fast than CLASS .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199897#M37349</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-20T13:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose By/class in any proc step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199898#M37350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output, either the dataset or the displayed output using the CLASS and BY statement differ if you have multiple variables as well. Sometimes one is preferable over the other. Note how there are different combinations of the variables when using the CLASS statement vs the BY statement - i.e. the dataset size differs out_class has 100 rows, out_by has 55 rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=sashelp.class out=class; &lt;/P&gt;&lt;P&gt;by sex age; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=class;&lt;/P&gt;&lt;P&gt;class sex age;&lt;/P&gt;&lt;P&gt;output out=out_class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=class;&lt;/P&gt;&lt;P&gt;by sex age;&lt;/P&gt;&lt;P&gt;output out=out_by;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=out_class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=out_by;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-choose-By-class-in-any-proc-step/m-p/199898#M37350</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-20T14:28:01Z</dc:date>
    </item>
  </channel>
</rss>

