<?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 amounts in line instaed of column in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-amounts-in-line-instaed-of-column/m-p/406932#M67027</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REPORT DATA = work.T5 nowd ;
	column  GENERATION periode_month , (mnt_1 mnt_2)     ;
	define GENERATION / group  ; 
	define periode_month / across ''  ;
	define mnt_1  /  'indic1' f=12.2 ;
	define mnt_2/ 'indic2  f=12.2  ;
	title ;
  	RUN ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by launching this code, in the output result the 2 indicators are in columns like photo1&lt;/P&gt;&lt;P&gt;I would like indicators on two lines like photo2&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo1.PNG" style="width: 541px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16182iEB2877C34CED3D4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo1.PNG" alt="photo1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo2.PNG" style="width: 432px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16181i362A1CDFA59A841D/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo2.PNG" alt="photo2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot in advance for your help&lt;/P&gt;&lt;P&gt;regard,&lt;/P&gt;&lt;P&gt;Nasser&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 13:29:56 GMT</pubDate>
    <dc:creator>Nasser_DRMCP</dc:creator>
    <dc:date>2017-10-24T13:29:56Z</dc:date>
    <item>
      <title>proc report amounts in line instaed of column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-amounts-in-line-instaed-of-column/m-p/406932#M67027</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REPORT DATA = work.T5 nowd ;
	column  GENERATION periode_month , (mnt_1 mnt_2)     ;
	define GENERATION / group  ; 
	define periode_month / across ''  ;
	define mnt_1  /  'indic1' f=12.2 ;
	define mnt_2/ 'indic2  f=12.2  ;
	title ;
  	RUN ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by launching this code, in the output result the 2 indicators are in columns like photo1&lt;/P&gt;&lt;P&gt;I would like indicators on two lines like photo2&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo1.PNG" style="width: 541px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16182iEB2877C34CED3D4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo1.PNG" alt="photo1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo2.PNG" style="width: 432px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16181i362A1CDFA59A841D/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo2.PNG" alt="photo2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot in advance for your help&lt;/P&gt;&lt;P&gt;regard,&lt;/P&gt;&lt;P&gt;Nasser&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 13:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-amounts-in-line-instaed-of-column/m-p/406932#M67027</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-10-24T13:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc report amounts in line instaed of column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-amounts-in-line-instaed-of-column/m-p/406948#M67029</link>
      <description>&lt;P&gt;Do your calculation in a simple datastep before the proc report, then proc report your data.&amp;nbsp; Proc report, whilst having some functionality regarding sums isn't the best tool for the job.&amp;nbsp; As for exact code, no idea what the data originally looks like so cant really say.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 14:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-amounts-in-line-instaed-of-column/m-p/406948#M67029</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-24T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc report amounts in line instaed of column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-amounts-in-line-instaed-of-column/m-p/407274#M67045</link>
      <description>&lt;PRE&gt;
Better post some data to test code. and Better post it at REPORT forum. @Cynthia is there.


&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-amounts-in-line-instaed-of-column/m-p/407274#M67045</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-10-25T13:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc report amounts in line instaed of column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-amounts-in-line-instaed-of-column/m-p/407321#M67046</link>
      <description>&lt;P&gt;Looks like you need to convert your data into multiple rows instead of multiple columns.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
  do generation=2008,2009;
    do month='201601','201602';
      do indication='indict1','indict2';
      input amount @@;
      output;
      end;
    end;
  end;
cards;
3687 345 3590 4058 4681 637 455 4118
;

proc report ;
  column generation indication amount,month ;
  define generation / group ;
  define indication / group ;
  define month / across ;
  define amount / sum ' ' ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 268px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16214i0D6043FC171A1C49/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 15:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-amounts-in-line-instaed-of-column/m-p/407321#M67046</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-10-25T15:09:25Z</dc:date>
    </item>
  </channel>
</rss>

