<?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 use proc report to provide row based descriptions? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553603#M74637</link>
    <description>&lt;P&gt;yes thats it&lt;/P&gt;&lt;P&gt;. so normally if i give a proc report say&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=have;&lt;/P&gt;&lt;P&gt;column ('This is a test' col1 col2);&lt;/P&gt;&lt;P&gt;define col1 / display 'Column 1' center style(column)=[vjust=m just=l];&lt;/P&gt;&lt;P&gt;define col2 / display 'Column 2' center style(column)=[vjust=m just=l];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would give me the outcome like&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;This is a test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Col 1&lt;/TD&gt;&lt;TD&gt;Col 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;c&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would need the "This is a Test line" to span across rows and not across columns.&lt;/P&gt;&lt;P&gt;Please advice&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help in advance!!&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2019 12:39:49 GMT</pubDate>
    <dc:creator>rohitdante16</dc:creator>
    <dc:date>2019-04-24T12:39:49Z</dc:date>
    <item>
      <title>How to use proc report to provide row based descriptions?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553585#M74635</link>
      <description>&lt;P&gt;using proc report i am trying to achive transposing the column description into a row grouped description&lt;/P&gt;&lt;P&gt;ie from&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;This is a test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Col 1&lt;/TD&gt;&lt;TD&gt;Col 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;c&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;This is a Test&lt;/TD&gt;&lt;TD&gt;Col 1&lt;/TD&gt;&lt;TD&gt;Col 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;c&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible as even if i define a dummy column the result is not as expected above.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 11:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553585#M74635</guid>
      <dc:creator>rohitdante16</dc:creator>
      <dc:date>2019-04-24T11:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report to provide row based descriptions?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553590#M74636</link>
      <description>&lt;P&gt;Would you please post your source dataset in a data step with datalines?&lt;/P&gt;
&lt;P&gt;Like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input col1 $ col2;
datalines;
a 1
b 2
c 3
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so we have a clear picture what you're working with.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 11:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553590#M74636</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-24T11:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report to provide row based descriptions?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553603#M74637</link>
      <description>&lt;P&gt;yes thats it&lt;/P&gt;&lt;P&gt;. so normally if i give a proc report say&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=have;&lt;/P&gt;&lt;P&gt;column ('This is a test' col1 col2);&lt;/P&gt;&lt;P&gt;define col1 / display 'Column 1' center style(column)=[vjust=m just=l];&lt;/P&gt;&lt;P&gt;define col2 / display 'Column 2' center style(column)=[vjust=m just=l];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would give me the outcome like&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;This is a test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Col 1&lt;/TD&gt;&lt;TD&gt;Col 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;c&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would need the "This is a Test line" to span across rows and not across columns.&lt;/P&gt;&lt;P&gt;Please advice&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help in advance!!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 12:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553603#M74637</guid>
      <dc:creator>rohitdante16</dc:creator>
      <dc:date>2019-04-24T12:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report to provide row based descriptions?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553611#M74638</link>
      <description>&lt;P&gt;Create an empty column for your label?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input col1 $ col2;
datalines;
a 1
b 2
c 3
;
run;

proc report data=have;
column empty col1 col2;
define empty / computed 'This is a test';
define col1 / display 'Column 1' center style(column)=[vjust=m just=l];
define col2 / display 'Column 2' center style(column)=[vjust=m just=l];
compute empty /character;
empty = " ";
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Apr 2019 12:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553611#M74638</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-24T12:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report to provide row based descriptions?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553617#M74639</link>
      <description>&lt;P&gt;yes that would only add it as a new column but i would like for it be as a lable for the entire table&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;a1This is a test Column 1 Column 2 &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not as above but as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;a1&amp;nbsp; Column 1 Column 2 &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;This is a test&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a merged single column for the entire table description&lt;/P&gt;&lt;P&gt;more like a book mark for the table hanging out&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553617#M74639</guid>
      <dc:creator>rohitdante16</dc:creator>
      <dc:date>2019-04-24T13:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report to provide row based descriptions?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553618#M74640</link>
      <description>&lt;P&gt;Or this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input test &amp;amp;$16. col1 $ col2;
datalines;
this is a test  a 1
this is a test  b 2
this is a test  c 3
;
run;

proc report data=have;
column test col1 col2;
define test / group format=$16. ' ';
define col1 / display 'Column 1' center style(column)=[vjust=m just=l];
define col2 / display 'Column 2' center style(column)=[vjust=m just=l];
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course, there isn't (as far as I know) a way in PROC REPORT to truly merge the cells (as there would be in Excel) to have the text "This is a text" span the three rows.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553618#M74640</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-24T13:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report to provide row based descriptions?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553624#M74641</link>
      <description>&lt;P&gt;Thanks team much need confirmation as well, since i tried using Spanrows and every possible permutation and combination in the SAS book for this confirmation , let me justify the same to my business.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:13:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553624#M74641</guid>
      <dc:creator>rohitdante16</dc:creator>
      <dc:date>2019-04-24T13:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report to provide row based descriptions?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553645#M74642</link>
      <description>&lt;P&gt;I don't catch your Q well .&lt;/P&gt;
&lt;P&gt;This is you want ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=have nowd spanrows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553645#M74642</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-24T13:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report to provide row based descriptions?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553647#M74643</link>
      <description>&lt;P&gt;I think this is what you want to do.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=have spanrows;
column group col1 col2;
define group /  group ' ';
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: 239px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28982iAB1521E778B7DBE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If so you need to add the variable to the data BEFORE the proc report step.&lt;/P&gt;
&lt;P&gt;You could use a view if you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input col1 $ col2;
datalines;
a 1
b 2
c 3
;
run;

data for_report / view=for_report ;
  set have;
  group='This is a test';
run;
proc report data=for_report spanrows;
  column group col1 col2;
  define _all_ / display;
  define group /  order ' ';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-to-provide-row-based-descriptions/m-p/553647#M74643</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-04-24T13:53:50Z</dc:date>
    </item>
  </channel>
</rss>

