<?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: SUM FUNCTION in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83720#M4040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the code is setting all 13 files, group will equal a number between 1 and 13, indicating which file the record came from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 20:21:44 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-10-02T20:21:44Z</dc:date>
    <item>
      <title>SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83719#M4039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I read about this function in Pharma book to group datasets and then break them in the report.&lt;/P&gt;&lt;P&gt;I was wondering the necissity of a SUM&lt;/P&gt;&lt;P&gt;when we say&lt;/P&gt;&lt;P&gt;in1*1&lt;/P&gt;&lt;P&gt;in2*2&lt;/P&gt;&lt;P&gt;in3*3&lt;/P&gt;&lt;P&gt;That serves as putting 1 2 and 3 to all the observation sunder a particular variable.&lt;/P&gt;&lt;P&gt;Why do WE HAVE TO USE A SUM FUNCTION HERE??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FINAL(drop=percent rename=(percent1=Percent));&lt;/P&gt;&lt;P&gt; SET age_1(IN=in1) gender_2(IN=in2) BMI_2(IN=in3) Cap_2(IN=in4) Sr_2(IN=in5) &lt;/P&gt;&lt;P&gt; AS_2(IN=in6) Cm_2(IN=in7) Cmb_2(IN=in8) CmbC_2(IN=in9) Cnc_2(IN=in10) &lt;/P&gt;&lt;P&gt; TN_2(IN=in11) PD_2(IN=in12)Cp_2(IN=in13);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; percent1=put(percent,6.2) ||&amp;nbsp; '%';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group=sum(in1*1, in2*2, in3*3, in4*4, in5*5, in6*6 ,in7*7, in8*8, in9*9, in10*10, in11*11, in12*12,in13*13);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 20:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83719#M4039</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-02T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83720#M4040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the code is setting all 13 files, group will equal a number between 1 and 13, indicating which file the record came from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 20:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83720#M4040</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-02T20:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83721#M4041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arthur,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I was wondering the use of a SUM function when we are not doing any addition...u know what i mean?&lt;/P&gt;&lt;P&gt;i thought sum function is to add up two values.&lt;/P&gt;&lt;P&gt;Here sum function is not adding up any values.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 20:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83721#M4041</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-02T20:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83722#M4042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since all in-variables are zero except one, the SUM function performs exactly as a simple sum 1*in1+2*in2+3*in3..., thus it gives you a number from 1 to 13 identifying the dataset from which each observation in dataset FINAL comes from. You could achieve the same goal with simply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;DATA FINAL(drop=percent rename=(percent1=Percent));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;SET age_1 gender_2 BMI_2 Cap_2 Sr_2 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;AS_2 Cm_2 Cmb_2 CmbC_2 Cnc_2 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;TN_2 PD_2 Cp_2 / INDSNAME=group;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;percent1=put(percent,6.2) ||'%';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here GROUP would take the values "WORK.AGE_1", "WORK.GENDER_2", ... etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 20:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83722#M4042</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-10-02T20:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83723#M4043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI PG,&lt;/P&gt;&lt;P&gt;All in-variables are zero except one????&lt;/P&gt;&lt;P&gt;Could you please explain a lil bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 21:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83723#M4043</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-02T21:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83724#M4044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually SUM has much more functionallity than just adding. If one or more of the variables or expressions as arguments to SUM are missing it will return the total of the non-missing values. SUM will only return a missing value if all of the arguments are missing. A simple addition statement such as x= y + z; returns missing if either y or z are missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used a similar code construct where some of the values might be missing but I still wanted the indicator value when present.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 21:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83724#M4044</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-10-02T21:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83725#M4045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ballard,&lt;/P&gt;&lt;P&gt;Thanks for all the time for the detailed explanation. Maybe I am not able to ask the question properly.&lt;/P&gt;&lt;P&gt;I understand that in the code below all observation coming from age_1 dataset will all have a group=1&lt;/P&gt;&lt;P&gt;Likewise all observations from gendr_2 dataset will have a group=2&lt;/P&gt;&lt;P&gt;I thought it will be good enough to just write&lt;/P&gt;&lt;P&gt;group=in1*1, in2*2, in3*3, in4*4, in5*5, in6*6 ,in7*7, in8*8, in9*9, in10*10, in11*11, in12*12,in13*13;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;instead of&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;group=&lt;STRONG&gt;SUM&lt;/STRONG&gt;(in1*1, in2*2, in3*3, in4*4, in5*5, in6*6 ,in7*7, in8*8, in9*9, in10*10, in11*11, in12*12,in13*13);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FINAL(drop=percent rename=(percent1=Percent));&lt;/P&gt;&lt;P&gt; SET age_1(IN=in1) gender_2(IN=in2) BMI_2(IN=in3) Cap_2(IN=in4) Sr_2(IN=in5) &lt;/P&gt;&lt;P&gt; AS_2(IN=in6) Cm_2(IN=in7) Cmb_2(IN=in8) CmbC_2(IN=in9) Cnc_2(IN=in10) &lt;/P&gt;&lt;P&gt; TN_2(IN=in11) PD_2(IN=in12)Cp_2(IN=in13);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; percent1=put(percent,6.2) ||&amp;nbsp; '%';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group=sum(in1*1, in2*2, in3*3, in4*4, in5*5, in6*6 ,in7*7, in8*8, in9*9, in10*10, in11*11, in12*12,in13*13);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 21:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83725#M4045</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-02T21:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83726#M4046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your 13 variables are set with in= statements thus, by definition, are set to be either 1 or 0.&amp;nbsp; i.e., The in= variable will be set to 1 for the file being read, and 0 for the other 12 variables.&amp;nbsp; Since you are then multiplying those values by a number between 1 and 13, all of the ones with 0 will end up with 0, while the other will have a number between 1 and 13.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 21:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83726#M4046</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-02T21:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83727#M4047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur Excellent job as usual. I understand that part very clearly now. Even without the &lt;STRONG&gt;SUM&lt;/STRONG&gt; function the above explanation is still valid right?&lt;/P&gt;&lt;P&gt;Correct me if i am wrong??!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so then why do we need a SUM function!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Arthur as PG said earlier insted of Aliasing each and every datasets with in=option&amp;nbsp; its even simpler to use the option&amp;nbsp; INDSNAME=group once and acheive the same task????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 21:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83727#M4047</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-02T21:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83728#M4048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because listing them like you have without any function isn't valid code, SAS wouldn't know what to return. You could also use max as well instead of sum to get the same answer, it's a way of telling SAS what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't valid SAS code, doesn't return a number.&lt;/P&gt;&lt;P&gt;group=in1*1, in2*2, in3*3, in4*4, in5*5, in6*6 ,in7*7, in8*8, in9*9, in10*10, in11*11, in12*12,in13*13;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do this instead of INDSNAME? Because INDSNAME is a relatively new option, 9.2+ I believe and people have been needing it a lot longer. In fact the IN method only works in your case because your datasets are numbered. If they were named differently without numbers this method wouldn't work at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 22:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83728#M4048</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-10-02T22:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83729#M4049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thanks Reeza,&lt;/P&gt;&lt;P&gt;I learnt many things apart from my question. That is what I realizesd after following on the forum. Thanks so much to each and everyone of you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reeza,&lt;EM&gt;&amp;nbsp; I think it works even if the datasets arent numbered as well. (assuming that u meant age_1 gender_2) etc..&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In SAS programming for the pharamaceutical Industry by Jack Shostak &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Chapter4:Creating Tables and listing he has used it on ordinary datasets &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 22:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83729#M4049</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-02T22:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83730#M4050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with you, over Reeza, in this case.&amp;nbsp; You are simply arbitrarily assigning the numbers 1 thru 13.&amp;nbsp; The actual file names are irrelevant, other than they happen to co-incide with the file names in your example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 22:35:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83730#M4050</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-02T22:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83731#M4051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do not need to use a SUM() function, but you are are performing the sum of 13 numbers.&amp;nbsp; Perhaps you are confusing the SUM() function with the SUM aggregation function available in PROC SQL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you could replace SUM() with normal addition operators between each of the calculated values. The difference between SUM(A,B) and A+B is when A or B is missing. The addition operator will generate missing result if either value is missing, but SUM() ignores the missing values.&amp;nbsp; In this case since the only values included in your SUM() function call are 0/1 flag variables set by the IN= dataset options and constants there is no way that any of the values could be missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the SUM() function:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; group=sum(in1*1, in2*2, in3*3, in4*4, in5*5, in6*6 ,in7*7, in8*8, in9*9, in10*10, in11*11, in12*12,in13*13);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or simple addition:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;group=in1*1 + in2*2&amp;nbsp; + in3*3 + in4*4 + in5*5 + in6*6 + in7*7 + in8*8 + in9*9 + in10*10 + in11*11 + in12*12 + in13*13 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or logic branching such as IF/THEN or SELECT logic:&lt;/P&gt;&lt;P&gt; if in1 then group=1;&lt;/P&gt;&lt;P&gt; if in2 then group=2;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt; if in13 then group=13;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 23:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83731#M4051</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-02T23:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83732#M4052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want to change the correct Answer from Reeza's to TOM. It has very detailed information. Otherwise Could anyone help me to give credit to two people at a time???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 14:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83732#M4052</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-03T14:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83733#M4053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that depends on what 'group' variable is for Art, if its just to assign group that method is fine, if for some reason, ie tracking/auditing you need to identify the source data set that methodology will not work.&lt;/P&gt;&lt;P&gt;I didn't follow the original thread for this discussion so not sure. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 14:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83733#M4053</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-10-03T14:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83734#M4054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza for the reply. If not for this question Is there a way to put "2 correct answers" and more than 2 "helpful answers"???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 14:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83734#M4054</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-03T14:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83735#M4055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only one answer can be marked correct and I'm not sure if you are allowed 2 or 3 helpful responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If needed, feel free to unmark my response as being helpful and assign it to someone else.&amp;nbsp; I won't feel the least bit offended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 15:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83735#M4055</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-03T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83736#M4056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;There is an option only for a single correct answer and 2 helpful answers.&lt;/P&gt;&lt;P&gt;Well I will leave it as it is.......&lt;/P&gt;&lt;P&gt;I put a "LIKE" to TOM,s ANSWER........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 15:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83736#M4056</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-03T15:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83737#M4057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI PG,&lt;/P&gt;&lt;P&gt;I tried to solve this with the INDSNAME option. I get an error as shown below. Could you help me resolve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;216&amp;nbsp; DATA FINAL(drop=percent rename=(percent1=Percent));&lt;BR /&gt;217&amp;nbsp; SET age_1 gender_2 BMI_2 CapriniScr_2 SrgrDrTm_2&lt;BR /&gt;218&amp;nbsp; ASAscr_2 CmbDbt_2 CmbSmk1_2 CmbCAD_2 CmbCncx_2&lt;BR /&gt;219&amp;nbsp; CmbHTN_2 CmbCOPD_2 Flp_flxCp_2 Flp_Necrosis_2&lt;BR /&gt;220&amp;nbsp; Flp_Infx_2 Flp_Thrbx_2 Flp_Seroma_2 Flp_Hmtma_2&lt;BR /&gt;221&amp;nbsp; Flp_Pathgn_2 Flp_Atbx_2 / INDSNAME=Group;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;BR /&gt;ERROR 22-322: &lt;STRONG&gt;Syntax error, expecting one of the following: a name, a quoted string&lt;/STRONG&gt;, (, -, :, ;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END, INDSNAME, KEY, KEYS, NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.&lt;/P&gt;&lt;P&gt;ERROR 200-322: &lt;STRONG&gt;The symbol is not recognized and will be ignored.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;222&amp;nbsp; percent1=put(percent,6.2) ||&amp;nbsp; '%';&lt;BR /&gt;223&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 03:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83737#M4057</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-04T03:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: SUM FUNCTION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83738#M4058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of the sum function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group=sum(in1*1, in2*2, in3*3, in4*4, in5*5, in6*6 ,in7*7, in8*8, in9*9, in10*10, in11*11, in12*12,in13*13);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group=find(cats(of in1-in13),'1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would give the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 09:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SUM-FUNCTION/m-p/83738#M4058</guid>
      <dc:creator>Fraktalnisse</dc:creator>
      <dc:date>2012-10-04T09:00:27Z</dc:date>
    </item>
  </channel>
</rss>

