<?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 Proc report in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615678#M76986</link>
    <description>&lt;P&gt;Stage_transfer opening_stage closing_stage opening_balance closing_balance opening_period closing_period&lt;BR /&gt;Stage 1 to 1 1 1 37735.11 36092.9 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 1 to 2 1 2 55841.76 53787 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 1 to 3 1 3 17532.1 16256.83 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 2 to 1 2 1 17442.97 17115.08 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 2 to 2 2 2 64759.82 63959.25 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 2 to 3 2 3 35349.27 34116.02 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 3 to 1 3 1 6084.11 2227.07 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 3 to 2 3 2 57440.35 55322.16 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 3 to 3 3 3 16304.87 14736.68 31-Jan-19 31-Dec-19&lt;/P&gt;
&lt;P&gt;Balance business rules:&lt;BR /&gt;balance at 1 January 2019 stage 1 (in millions) sum up the opening_balance based on opening_stage 1 e.g., sum(37735.11+55841.76+17532.1)&lt;BR /&gt;similarly stage 2 (in millions) sum up the opening_balance based on opening_stage 2 e.g., sum(17442.97+64759.82+35349.27)&lt;BR /&gt;stage 3 (in millions) sum up the opening_balance based on opening stage 3 e.g., sum(6084.11+57440.35+16304.87)&lt;/P&gt;
&lt;P&gt;closing balance rules:&lt;BR /&gt;balance at 31 December 2019 stage 1(in millions) sum up the closing_balance based on closing_stage 1 e.g., sum(36092.9+17115.08+2227.07)&lt;BR /&gt;stage 2(in millions) sum up the closing_balance based on closing_stage 2 e.g., sum(53787+63959.25+55322.16)&lt;BR /&gt;stage 3(in millions) sum up the closing_balance based on closing_stage 3 e.g., sum(16256.83+34116.02+14736.68)&lt;/P&gt;
&lt;P&gt;stage transfer business rules:&lt;BR /&gt;transfer to stage 1: sum of closing_balance horizontal 1 to 1, 1 to 2, 1 to 3&lt;BR /&gt;2 to 1, 2 to 2, 2 to 3&lt;BR /&gt;3 to 1, 3 to 1, 3 to 3&lt;/P&gt;
&lt;P&gt;sample example is done in screenshot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected output:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samp.jpeg" style="width: 462px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35201i5467B028DA8A476D/image-size/large?v=v2&amp;amp;px=999" role="button" title="samp.jpeg" alt="samp.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2020 14:55:33 GMT</pubDate>
    <dc:creator>vnreddy</dc:creator>
    <dc:date>2020-01-07T14:55:33Z</dc:date>
    <item>
      <title>Proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615678#M76986</link>
      <description>&lt;P&gt;Stage_transfer opening_stage closing_stage opening_balance closing_balance opening_period closing_period&lt;BR /&gt;Stage 1 to 1 1 1 37735.11 36092.9 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 1 to 2 1 2 55841.76 53787 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 1 to 3 1 3 17532.1 16256.83 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 2 to 1 2 1 17442.97 17115.08 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 2 to 2 2 2 64759.82 63959.25 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 2 to 3 2 3 35349.27 34116.02 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 3 to 1 3 1 6084.11 2227.07 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 3 to 2 3 2 57440.35 55322.16 31-Jan-19 31-Dec-19&lt;BR /&gt;Stage 3 to 3 3 3 16304.87 14736.68 31-Jan-19 31-Dec-19&lt;/P&gt;
&lt;P&gt;Balance business rules:&lt;BR /&gt;balance at 1 January 2019 stage 1 (in millions) sum up the opening_balance based on opening_stage 1 e.g., sum(37735.11+55841.76+17532.1)&lt;BR /&gt;similarly stage 2 (in millions) sum up the opening_balance based on opening_stage 2 e.g., sum(17442.97+64759.82+35349.27)&lt;BR /&gt;stage 3 (in millions) sum up the opening_balance based on opening stage 3 e.g., sum(6084.11+57440.35+16304.87)&lt;/P&gt;
&lt;P&gt;closing balance rules:&lt;BR /&gt;balance at 31 December 2019 stage 1(in millions) sum up the closing_balance based on closing_stage 1 e.g., sum(36092.9+17115.08+2227.07)&lt;BR /&gt;stage 2(in millions) sum up the closing_balance based on closing_stage 2 e.g., sum(53787+63959.25+55322.16)&lt;BR /&gt;stage 3(in millions) sum up the closing_balance based on closing_stage 3 e.g., sum(16256.83+34116.02+14736.68)&lt;/P&gt;
&lt;P&gt;stage transfer business rules:&lt;BR /&gt;transfer to stage 1: sum of closing_balance horizontal 1 to 1, 1 to 2, 1 to 3&lt;BR /&gt;2 to 1, 2 to 2, 2 to 3&lt;BR /&gt;3 to 1, 3 to 1, 3 to 3&lt;/P&gt;
&lt;P&gt;sample example is done in screenshot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected output:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samp.jpeg" style="width: 462px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35201i5467B028DA8A476D/image-size/large?v=v2&amp;amp;px=999" role="button" title="samp.jpeg" alt="samp.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615678#M76986</guid>
      <dc:creator>vnreddy</dc:creator>
      <dc:date>2020-01-07T14:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615698#M76990</link>
      <description>&lt;P&gt;Please provide your data as SAS data step code, following &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_self"&gt;these instructions&lt;/A&gt;, so we can actually work with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 15:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615698#M76990</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-07T15:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615701#M76992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry for that, actually i am looking for some thing like the attached image (previous post) output format.&lt;/P&gt;
&lt;P&gt;I have attached the sample data as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA WORK.NEMO_IMPAIRMENT_TESTING_0000;
28             LENGTH
29                 Stage            $ 12
30                 opening_stage      8
31                 closing_stage      8
32                 opening_balance    8
33                 closing_balance    8
34                 opening_period     8
35                 closing_period     8 ;
36             FORMAT
37                 Stage            $CHAR12.
38                 opening_stage    BEST12.
39                 closing_stage    BEST12.
40                 opening_balance  BEST12.
41                 closing_balance  BEST12.
42                 opening_period   DATE9.
43                 closing_period   DATE9. ;
44             INFORMAT
45                 Stage            $CHAR12.
46                 opening_stage    BEST12.
47                 closing_stage    BEST12.
48                 opening_balance  BEST12.
49                 closing_balance  BEST12.
50                 opening_period   DATE9.
51                 closing_period   DATE9. ;
52             INFILE 'M:\SASWORK\_TD14660_PBS-SAS-CP01_\#LN00138'
53                 LRECL=46
54                 ENCODING="WLATIN1"
55                 TERMSTR=CRLF
56                 DLM='7F'x
57                 MISSOVER
58                 DSD ;
2                                                          The SAS System                             09:21 Tuesday, January 7, 2020

59             INPUT
60                 Stage            : $CHAR12.
61                 opening_stage    : BEST32.
62                 closing_stage    : BEST32.
63                 opening_balance  : BEST32.
64                 closing_balance  : BEST32.
65                 opening_period   : BEST32.
66                 closing_period   : BEST32. ;
67         RUN;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jan 2020 15:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615701#M76992</guid>
      <dc:creator>vnreddy</dc:creator>
      <dc:date>2020-01-07T15:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615753#M76997</link>
      <description>Hi,&lt;BR /&gt;Can someone please help me with above requirement</description>
      <pubDate>Tue, 07 Jan 2020 18:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615753#M76997</guid>
      <dc:creator>vnreddy</dc:creator>
      <dc:date>2020-01-07T18:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615756#M76998</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Please provide your data as SAS data step code, following&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_self"&gt;these instructions&lt;/A&gt;&lt;SPAN&gt;, so we can actually work with it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 19:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/615756#M76998</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-07T19:03:45Z</dc:date>
    </item>
  </channel>
</rss>

