<?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 sum the in the proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-sum-the-in-the-proc-report/m-p/839339#M331883</link>
    <description>&lt;P&gt;Please share your data as SAS data step code, and not in any other format. You can use &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;this macro&lt;/A&gt; to create such code from your SAS data set. Agreeing with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;, most of us will not download or try to use Excel files.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 11:23:45 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-10-19T11:23:45Z</dc:date>
    <item>
      <title>how to sum the in the proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-sum-the-in-the-proc-report/m-p/839011#M331733</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ANIRBAN2_0-1666021836918.png" style="width: 464px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76253i4B809E4865A12B53/image-dimensions/464x255?v=v2" width="464" height="255" role="button" title="ANIRBAN2_0-1666021836918.png" alt="ANIRBAN2_0-1666021836918.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1.The above picture show the datasets from here I need to create a report in excel where anything above B.cashoutflow will sum into A. cashinflow.&lt;/P&gt;&lt;P&gt;2.Anything above C.mismatch and below B.cashoutflow will sum into B.cashoutflow.&lt;/P&gt;&lt;P&gt;3.C.mismatch=Inflow=Outflow&lt;/P&gt;&lt;P&gt;The excel report i could generate is attached below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please ask if any ques.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also attaching the proc report codes&lt;/P&gt;&lt;P&gt;ods excel file="/home/u60099960/ALM_DER_REPORT/report_format.xlsx"&lt;BR /&gt;options (sheet_name="M_A1" embedded_titles="yes" embedded_footnotes='yes' sheet_interval="none");&lt;/P&gt;&lt;P&gt;ods escapechar="^";&lt;/P&gt;&lt;P&gt;title1 UNDERLIN=0 j=center height=10pt bold font="Arial Rounded MT Bold" color=black "A.1 Contractual Maturity Mismatch"&lt;BR /&gt;j=right color=black height=10pt font="Arial Rounded MT Bold" bold "SR 000's";&lt;BR /&gt;proc report data=post_trans2&lt;BR /&gt;style(report)=[ bordercolor=black borderwidth=2 cellspacing=0 bordertopwidth=1px&lt;BR /&gt;bordertopstyle=solid bordertopcolor=#000000 borderleftwidth=0px bordertopstyle=solid borderrightwidth=1px borderrightcolor=#000000&lt;BR /&gt;borderrightstyle=solid borderbottomwidth=1px borderbottomcolor=#000000 borderbottomstyle=solid]&lt;BR /&gt;style (column) =[foreground=black background=white vjust=bottom font_size=10pt bordertopwidth=1px&lt;BR /&gt;bordertopstyle=solid bordertopcolor=#000000 borderleftwidth=0px bordertopstyle=solid borderrightwidth=1px borderrightcolor=#000000&lt;BR /&gt;borderrightstyle=solid borderbottomwidth=1px borderbottomcolor=#000000 borderbottomstyle=solid]&lt;BR /&gt;style (header) =[foreground=black background=lightskyblue vjust=bottom font_size=10pt font_weight=bold&lt;BR /&gt;bordertopwidth=1px bordertopstyle=solid bordertopcolor=#000000 borderleftwidth=0px bordertopstyle=solid borderrightwidth=1px borderrightcolor=#000000&lt;BR /&gt;borderrightstyle=solid borderbottomwidth=1px borderbottomcolor=#000000 borderbottomstyle=solid];&lt;BR /&gt;&lt;BR /&gt;column level_02_desc&lt;BR /&gt;("BUCKET"(("DAY"(D01)) ("MONTH" (M2 M6 M9)) ("YEAR"(Y1 Y2 Y3 Y5 "Y5+"n)))) ;&lt;BR /&gt;define level_02_desc/ display "Select description for Drop Down provided below OR input Required Description. ";&lt;BR /&gt;define D01/display "1" analysis;&lt;BR /&gt;define M2 /display "2" analysis;&lt;BR /&gt;define M6 /display "6" analysis;&lt;BR /&gt;define M9/ display "9" analysis;&lt;BR /&gt;define Y1 /display "1" analysis;&lt;BR /&gt;define Y2/ display "2" analysis;&lt;BR /&gt;define Y3 /display "3" analysis;&lt;BR /&gt;define Y5/ display "5" analysis;&lt;BR /&gt;define "Y5+"n/ display "&amp;gt; 5" analysis;&lt;BR /&gt;define sr/group;&lt;/P&gt;&lt;P&gt;Run;&lt;BR /&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 16:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-sum-the-in-the-proc-report/m-p/839011#M331733</guid>
      <dc:creator>ANIRBAN2</dc:creator>
      <dc:date>2022-10-17T16:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum the in the proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-sum-the-in-the-proc-report/m-p/839312#M331865</link>
      <description>&lt;P&gt;You need to provide data in an useable and secure format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in rectangular format because what you share is the desired report alike outcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Beware of sharing excel files. many helping hands here won't open it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When working with proc report you come from a rectangular data format and you can shape it according to your needs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and use the code window for posting code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 08:37:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-sum-the-in-the-proc-report/m-p/839312#M331865</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-10-19T08:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum the in the proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-sum-the-in-the-proc-report/m-p/839339#M331883</link>
      <description>&lt;P&gt;Please share your data as SAS data step code, and not in any other format. You can use &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;this macro&lt;/A&gt; to create such code from your SAS data set. Agreeing with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;, most of us will not download or try to use Excel files.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 11:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-sum-the-in-the-proc-report/m-p/839339#M331883</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-19T11:23:45Z</dc:date>
    </item>
  </channel>
</rss>

