<?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: To display Text Value across columns using proc report in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629507#M20754</link>
    <description>&lt;P&gt;Without the basic Proc Report code I would not even attempt to answer this question.&lt;/P&gt;
&lt;P&gt;The specific Roles that you assign variables plus any appearance options used might conflict with a given attempted solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Better would be to provide an example data set, in the form of data step code plus the Proc Report code, OR use Proc report with a SAS supplied data set like SASHELP.CLASS or similar to create similar report.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 17:31:57 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-03-04T17:31:57Z</dc:date>
    <item>
      <title>To display Text Value across columns using proc report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629471#M20746</link>
      <description>&lt;P&gt;Dear All, I am looking for solution to display Value across column inside the report (like Merge&amp;amp;center functionality in excel) using proc report . Please find attached file. I would like to display "Total" text across the columns. Any inputs will be appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629471#M20746</guid>
      <dc:creator>Pankp</dc:creator>
      <dc:date>2020-03-04T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: To display Text Value across columns using proc report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629474#M20747</link>
      <description>&lt;P&gt;Please show us a portion of the report you asked for via screen capture. Many of us will not download attachments.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629474#M20747</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-04T16:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: To display Text Value across columns using proc report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629477#M20748</link>
      <description>Col1 Col2 Result1 Result2 Total&lt;BR /&gt;A C xx xx xx&lt;BR /&gt;B A xx xx xx&lt;BR /&gt;C B xx xx xx&lt;BR /&gt;Total xx xx xx&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629477#M20748</guid>
      <dc:creator>Pankp</dc:creator>
      <dc:date>2020-03-04T16:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: To display Text Value across columns using proc report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629480#M20749</link>
      <description>Unfortunately, I could not replicate here but attachment should work to understand the exact need. Thanks</description>
      <pubDate>Wed, 04 Mar 2020 16:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629480#M20749</guid>
      <dc:creator>Pankp</dc:creator>
      <dc:date>2020-03-04T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: To display Text Value across columns using proc report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629507#M20754</link>
      <description>&lt;P&gt;Without the basic Proc Report code I would not even attempt to answer this question.&lt;/P&gt;
&lt;P&gt;The specific Roles that you assign variables plus any appearance options used might conflict with a given attempted solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Better would be to provide an example data set, in the form of data step code plus the Proc Report code, OR use Proc report with a SAS supplied data set like SASHELP.CLASS or similar to create similar report.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 17:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629507#M20754</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-04T17:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: To display Text Value across columns using proc report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629508#M20755</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/179962"&gt;@Pankp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As far as I know, I don't think you can merge cells in the summarize line in PROC REPORT like in Excel for example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;However, you can enhance the report output by computing blocks and use a call define statement to alter&amp;nbsp;the cell values and appearances.&lt;/P&gt;
&lt;P&gt;E.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input Col1 $ Col2 $ Result1 Result2;
	datalines;
A C 1 2
B A 1 2
C B 1 2
;
run;

proc report data=have;
	columns Col1 Col2 Result1 Result2 total;
	
	define Col1 / group;
	define Col2 / group;
	define Result1 / sum;
	define Result2 / sum;
	define total / computed 'Total';
	rbreak after / summarize;
	
	compute total;
		total = Result1.sum + Result2.sum;
	endcomp;
	
	compute Col1;
		if Col1 = "" then do;
			Col1 = "Total";
			call define (1, 'style', 'style=[borderrightcolor=white]');
		end;
	endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture d’écran 2020-03-04 à 18.31.45.png" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36592i2CE34CFAB3AB16D6/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture d’écran 2020-03-04 à 18.31.45.png" alt="Capture d’écran 2020-03-04 à 18.31.45.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 17:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/To-display-Text-Value-across-columns-using-proc-report/m-p/629508#M20755</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-03-04T17:33:17Z</dc:date>
    </item>
  </channel>
</rss>

