<?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 SAS Product Function in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Product-Function/m-p/73485#M21295</link>
    <description>I need calculate the product of a series of variables, for instance: var1 var2 ... var100, I need the product of var1-var100, instead of var1*var2*...*var100, is there a simple way to calculate that result?&lt;BR /&gt;
&lt;BR /&gt;
I assume there should be some fuction to do that, just like the sum of var1-var100 could be done by sum(of var1-var100). I check function product but it doesn't seem the right way.&lt;BR /&gt;
&lt;BR /&gt;
Greatly appreciate any suggestions and help!</description>
    <pubDate>Mon, 05 Apr 2010 19:46:17 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-04-05T19:46:17Z</dc:date>
    <item>
      <title>SAS Product Function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Product-Function/m-p/73485#M21295</link>
      <description>I need calculate the product of a series of variables, for instance: var1 var2 ... var100, I need the product of var1-var100, instead of var1*var2*...*var100, is there a simple way to calculate that result?&lt;BR /&gt;
&lt;BR /&gt;
I assume there should be some fuction to do that, just like the sum of var1-var100 could be done by sum(of var1-var100). I check function product but it doesn't seem the right way.&lt;BR /&gt;
&lt;BR /&gt;
Greatly appreciate any suggestions and help!</description>
      <pubDate>Mon, 05 Apr 2010 19:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Product-Function/m-p/73485#M21295</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-05T19:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Product Function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Product-Function/m-p/73486#M21296</link>
      <description>There is no product function as much as I know.&lt;BR /&gt;
&lt;BR /&gt;
Some code like below might help:&lt;BR /&gt;
&lt;BR /&gt;
data have;&lt;BR /&gt;
  var1=5; var2=3;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%let prodlist=;&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
  select name into :ProdList separated by '*'&lt;BR /&gt;
    from dictionary.columns&lt;BR /&gt;
      where libname='WORK' and memname='TEST' and upcase(name) like 'VAR%'&lt;BR /&gt;
  ;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
data want;&lt;BR /&gt;
  set have;&lt;BR /&gt;
  product=&amp;amp;prodlist;&lt;BR /&gt;
  put product=;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 06 Apr 2010 10:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Product-Function/m-p/73486#M21296</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-04-06T10:08:12Z</dc:date>
    </item>
  </channel>
</rss>

