<?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: merging text in one row over 2 columns proc report ods rtf in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429218#M20202</link>
    <description>&lt;P&gt;Thank you! This works. However,&amp;nbsp;if there are muliple sections, would it be possible to have different text? So say in between group 2 and 3 there is different text.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2018 18:01:34 GMT</pubDate>
    <dc:creator>nirali514</dc:creator>
    <dc:date>2018-01-19T18:01:34Z</dc:date>
    <item>
      <title>merging text in one row over 2 columns proc report ods rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/428935#M20191</link>
      <description>&lt;P&gt;Hello! Is there a way to merge text in cells in a proc report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;col1&amp;nbsp;&amp;nbsp; &amp;nbsp; col2&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.5&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.5&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.5&lt;/P&gt;&lt;P&gt;I'd like the text to&lt;/P&gt;&lt;P&gt;span across like this&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;4.5&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 21:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/428935#M20191</guid>
      <dc:creator>nirali514</dc:creator>
      <dc:date>2018-01-18T21:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: merging text in one row over 2 columns proc report ods rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/428950#M20192</link>
      <description>&lt;P&gt;What have you tried so far?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way I can think of is to add variable to group your responses but don't display it. The you can use break or rbreak. But where does that text come from? Is it going to change for each group? Is it in a variable in the data set?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 22:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/428950#M20192</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-18T22:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: merging text in one row over 2 columns proc report ods rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429110#M20195</link>
      <description>&lt;P&gt;Here is an example .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input group  col1     col2;
cards;
1 1          1.5
1 2          2.5
1 3          3.5
2 4          4.5
2 5          5.5
;
run;

ods escapechar='~';
proc report data=have nowd;
column group col1 col2;
define group/group noprint;
define col1/display;
compute after group;
if group=2 then len=0;
 else len=100;
temp="I'd like the text to ~n span across like this" ;
line @1 temp $varying200. len;
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="x.png" style="width: 150px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17971i2B11E5415E1E8B80/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 13:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429110#M20195</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-19T13:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: merging text in one row over 2 columns proc report ods rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429218#M20202</link>
      <description>&lt;P&gt;Thank you! This works. However,&amp;nbsp;if there are muliple sections, would it be possible to have different text? So say in between group 2 and 3 there is different text.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 18:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429218#M20202</guid>
      <dc:creator>nirali514</dc:creator>
      <dc:date>2018-01-19T18:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: merging text in one row over 2 columns proc report ods rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429270#M20203</link>
      <description>&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any other ideas on how to add a second temp variable&amp;nbsp;after group 2?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 20:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429270#M20203</guid>
      <dc:creator>nirali514</dc:creator>
      <dc:date>2018-01-19T20:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: merging text in one row over 2 columns proc report ods rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429363#M20206</link>
      <description>&lt;P&gt;Can you post an example ?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2018 09:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429363#M20206</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-20T09:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: merging text in one row over 2 columns proc report ods rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429364#M20207</link>
      <description>&lt;P&gt;If I understood what you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input group  col1     col2;
cards;
1 1          1.5
1 2          2.5
1 3          3.5
2 4          4.5
2 5          5.5
;
run;

ods escapechar='~';
proc report data=have nowd;
column group col1 col2;
define group/group noprint;
define col1/display;
compute after group;
if group=1 then temp="I'd like the text to ~n span across like this" ;
 else if group=2 then  temp="Another Line ~n span across like this" ;
len=100;
line @1 temp $varying200. len;
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Jan 2018 09:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429364#M20207</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-20T09:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: merging text in one row over 2 columns proc report ods rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429405#M20208</link>
      <description>&lt;P&gt;Thanks you! This works, however is there a way to have longer text? Suppose the text is longer than 262 characters. All the characters don't seem to show with $varying200.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2018 20:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429405#M20208</guid>
      <dc:creator>nirali514</dc:creator>
      <dc:date>2018-01-20T20:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: merging text in one row over 2 columns proc report ods rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429407#M20209</link>
      <description>&lt;P&gt;Then make it varying300. or use a LENGTH variable, as shown in Ksharp's original program.&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;len = length(temp);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;line temp $varying. len;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;(the @1 is for the LISTING output and you don't need the 200 or even 300 if you find the correct length of the TEMP variable)&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2018 20:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/merging-text-in-one-row-over-2-columns-proc-report-ods-rtf/m-p/429407#M20209</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-01-20T20:45:13Z</dc:date>
    </item>
  </channel>
</rss>

