<?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 Cumulative Sum of all variables, data to sum is in rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774979#M246350</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to figure out how to do a cumulative sum of all variables by row. Proc Means will sum each variable (column) but for all rows. I need to sum all columns (variables) by row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I understand how to use BY or CLASS to group my output, but how do I sum all variables? I have a preset dataset, and I need to read from that and create a dataset that sums all variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 19:22:23 GMT</pubDate>
    <dc:creator>Julia10</dc:creator>
    <dc:date>2021-10-18T19:22:23Z</dc:date>
    <item>
      <title>Cumulative Sum of all variables, data to sum is in rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774979#M246350</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to figure out how to do a cumulative sum of all variables by row. Proc Means will sum each variable (column) but for all rows. I need to sum all columns (variables) by row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I understand how to use BY or CLASS to group my output, but how do I sum all variables? I have a preset dataset, and I need to read from that and create a dataset that sums all variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 19:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774979#M246350</guid>
      <dc:creator>Julia10</dc:creator>
      <dc:date>2021-10-18T19:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum of all variables, data to sum is in rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774981#M246352</link>
      <description>Please show a fully worked example with say 5 to 10 rows and 5 variables.</description>
      <pubDate>Mon, 18 Oct 2021 19:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774981#M246352</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-18T19:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum of all variables, data to sum is in rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774982#M246353</link>
      <description>&lt;P&gt;Can you create a small example and show us what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that the wording you used "&lt;SPAN&gt;how to do a cumulative sum of all variables by row"&lt;/SPAN&gt; can be interpreted in two ways&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 19:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774982#M246353</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-18T19:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum of all variables, data to sum is in rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774985#M246354</link>
      <description>&lt;P&gt;Sure, ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a survey by participant (100 participants) which are my observation data (rows). Each survey has 20 questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some participant background info and 20 survey questions q1-q20. I need to add all the numbers that each participant gave for each question to create a score. If I were using excel, it would be SUM(B2:U2), with the next column storing the resulting total.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format is basically:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ParticipantID&amp;nbsp; &amp;nbsp; Q1&amp;nbsp; Q2&amp;nbsp; &amp;nbsp;Q3&amp;nbsp; &amp;nbsp;Q4&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The totals I need are by adding all question data per participant, or by row. Hence, participant 1 total would = 11 and participant 2 would = 5 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 19:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774985#M246354</guid>
      <dc:creator>Julia10</dc:creator>
      <dc:date>2021-10-18T19:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum of all variables, data to sum is in rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774987#M246355</link>
      <description>TOTAL_SCORE = sum(of Q1-Q4);</description>
      <pubDate>Mon, 18 Oct 2021 19:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774987#M246355</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-18T19:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum of all variables, data to sum is in rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774992#M246356</link>
      <description>Thank you!!</description>
      <pubDate>Mon, 18 Oct 2021 20:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cumulative-Sum-of-all-variables-data-to-sum-is-in-rows/m-p/774992#M246356</guid>
      <dc:creator>Julia10</dc:creator>
      <dc:date>2021-10-18T20:22:05Z</dc:date>
    </item>
  </channel>
</rss>

