<?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 add a new sum column in proc print? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-new-sum-column-in-proc-print/m-p/252284#M56810</link>
    <description>&lt;P&gt;I found the solution myself.&lt;/P&gt;&lt;P&gt;Just add a new datastep and put newsum=A+b;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2016 03:54:39 GMT</pubDate>
    <dc:creator>imdickson</dc:creator>
    <dc:date>2016-02-25T03:54:39Z</dc:date>
    <item>
      <title>How to add a new sum column in proc print?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-new-sum-column-in-proc-print/m-p/252277#M56807</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im doing PROC PRINT using SAS EG. I got this result:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2042iFC5AA9C180E7E169/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="PRINT TRANSPOSED 25th-Feb-2016.jpg" title="PRINT TRANSPOSED 25th-Feb-2016.jpg" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, i can get the SUM of BONUS and SALARY.&lt;/P&gt;&lt;P&gt;What if i want to add a new column called "Individual Income" next to SALARy, how should i do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know in PROC REPORT that just have to define it as computed. But what about in Proc PRINT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, here is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC PRINT DATA=WORK.TRANSPOSED (DROP=CASE_RK _NAME_);
TITLE 'PRINT TRANSPOSED';
SUM X_AAG_BONUS X_AAG_SALARY;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Feb 2016 03:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-new-sum-column-in-proc-print/m-p/252277#M56807</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2016-02-25T03:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a new sum column in proc print?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-new-sum-column-in-proc-print/m-p/252284#M56810</link>
      <description>&lt;P&gt;I found the solution myself.&lt;/P&gt;&lt;P&gt;Just add a new datastep and put newsum=A+b;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 03:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-new-sum-column-in-proc-print/m-p/252284#M56810</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2016-02-25T03:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a new sum column in proc print?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-new-sum-column-in-proc-print/m-p/252339#M56823</link>
      <description>&lt;P&gt;Move to proc report, you can do things like this very simply.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 09:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-new-sum-column-in-proc-print/m-p/252339#M56823</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-25T09:14:14Z</dc:date>
    </item>
  </channel>
</rss>

