<?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 How insert text in table using proc report in PDF output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-insert-text-in-table-using-proc-report-in-PDF-output/m-p/874300#M345414</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
term='all';
output;
term='par';
output;
term='';
a1='1';b1='2';c1='3';a2='4';b2='5';c2='6';
output;
run;
%let N=10;
%let year=20;
proc report data=have headline headskip nowd split='|' spacing=0;
column (term) ( "therapy" a1 b1 c1) ( "Compare" a2 b2 c2) ;

define term/display '|Term' left width=40 flow;
define a1/display '       n' center width=23;
define b1/display 'Number' center width=15;
define c1/display 'rate' center width=18;
define a2/display '       n' center width=20;
define b2/display 'Number' center width=15;
define c2/display 'rate' center width=18;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Dear&lt;/P&gt;
&lt;P&gt;in my report output i need to insert below text&amp;nbsp; under both therapy and compare section when term='par'. thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;N=&amp;amp;N.&lt;/P&gt;
&lt;P&gt;Total years=&amp;amp;year.&lt;/P&gt;</description>
    <pubDate>Sun, 07 May 2023 01:25:22 GMT</pubDate>
    <dc:creator>knveraraju91</dc:creator>
    <dc:date>2023-05-07T01:25:22Z</dc:date>
    <item>
      <title>How insert text in table using proc report in PDF output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-insert-text-in-table-using-proc-report-in-PDF-output/m-p/874300#M345414</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
term='all';
output;
term='par';
output;
term='';
a1='1';b1='2';c1='3';a2='4';b2='5';c2='6';
output;
run;
%let N=10;
%let year=20;
proc report data=have headline headskip nowd split='|' spacing=0;
column (term) ( "therapy" a1 b1 c1) ( "Compare" a2 b2 c2) ;

define term/display '|Term' left width=40 flow;
define a1/display '       n' center width=23;
define b1/display 'Number' center width=15;
define c1/display 'rate' center width=18;
define a2/display '       n' center width=20;
define b2/display 'Number' center width=15;
define c2/display 'rate' center width=18;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Dear&lt;/P&gt;
&lt;P&gt;in my report output i need to insert below text&amp;nbsp; under both therapy and compare section when term='par'. thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;N=&amp;amp;N.&lt;/P&gt;
&lt;P&gt;Total years=&amp;amp;year.&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 01:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-insert-text-in-table-using-proc-report-in-PDF-output/m-p/874300#M345414</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2023-05-07T01:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: How insert text in table using proc report in PDF output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-insert-text-in-table-using-proc-report-in-PDF-output/m-p/874305#M345417</link>
      <description>&lt;P&gt;I think you many need to create a table in a word processor and show what you want and share that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;" under both therapy and compare section" leads to questions such as "where under"? Part of the heading "Therapy" text displayed in the same cell? In a different cell under Therapy? Under each of the headings for A1 B1 and C1? Under some value of A1? Under B1? Under C1? At the bottom of the report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the bit that your two values for Term have nothing in the rest of the table raises why are they even in your code or example.&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 02:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-insert-text-in-table-using-proc-report-in-PDF-output/m-p/874305#M345417</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-07T02:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: How insert text in table using proc report in PDF output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-insert-text-in-table-using-proc-report-in-PDF-output/m-p/874307#M345419</link>
      <description>&lt;P&gt;Thank you very much. I need to populate in the highlighted area in the attachemnt spanning all three columns. Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 03:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-insert-text-in-table-using-proc-report-in-PDF-output/m-p/874307#M345419</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2023-05-07T03:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How insert text in table using proc report in PDF output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-insert-text-in-table-using-proc-report-in-PDF-output/m-p/874345#M345441</link>
      <description>&lt;P&gt;Must it be in a separate cell? Or can it be in the same cell but a second line? This later is relatively easy and your code already included one of the options to do it. My example only shows for therapy the same use of | and other text with Compare would work. I show the N and Years on separate lines as it isn't exactly clear which is your intent because your &lt;BR /&gt;document only shows 2 dashes, not an example of the actual text you requested or where it goes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc report data=have headline headskip nowd split='|' spacing=0;
column (term) ( "therapy|N=&amp;amp;n|Total years=&amp;amp;year" a1 b1 c1) ( "Compare" a2 b2 c2) ;

define term/display '|Term' left width=40 flow;
define a1/display '       n' center width=23;
define b1/display 'Number' center width=15;
define c1/display 'rate' center width=18;
define a2/display '       n' center width=20;
define b2/display 'Number' center width=15;
define c2/display 'rate' center width=18;

run;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 May 2023 16:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-insert-text-in-table-using-proc-report-in-PDF-output/m-p/874345#M345441</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-07T16:58:46Z</dc:date>
    </item>
  </channel>
</rss>

