<?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 put text when a variable CONTinues on the next page in proc report in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74961#M1683</link>
    <description>Hi:  &lt;BR /&gt;
    Starting in SAS 9.2, the TAGSETS.RTF destination will automatically place the string "continued" at the bottom of the output when the output splits across pages.&lt;BR /&gt;
 &lt;BR /&gt;
  This doesn't help with LISTING output. the only way to do this for LISTING output may be to post-process the output file. You might search the PharmaSUG archive site, &lt;A href="http://www.lexjansen.com" target="_blank"&gt;www.lexjansen.com&lt;/A&gt; for some more examples.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 23 Feb 2009 03:56:40 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-02-23T03:56:40Z</dc:date>
    <item>
      <title>how to put text when a variable CONTinues on the next page in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74958#M1680</link>
      <description>Hello folks,&lt;BR /&gt;
&lt;BR /&gt;
I have 2 variables, a class term, and a specific term such that for 1 class term value there are many specific term values.&lt;BR /&gt;
&lt;BR /&gt;
In proc report I have the class term listed before the specific term in the column statement. In the define statement for the class term I specify sort and noprint and I have a compute block where I specify for this variable to print only the first occurance. &lt;BR /&gt;
&lt;BR /&gt;
The report lists the specific terms indented under the class terms, but if a class term continues on to the next page, you don't see the class term, while you see the rest of the specific terms.&lt;BR /&gt;
&lt;BR /&gt;
What I want to know is how can I print the class term on the next page, in proc report, if the class term repeats on the next page? I'm looking for an easy solution in proc report. I've tried a number of things in proc report with no luck. I would like to hear from you if you have done this.&lt;BR /&gt;
&lt;BR /&gt;
thank you,&lt;BR /&gt;
&lt;BR /&gt;
Anthony</description>
      <pubDate>Fri, 20 Feb 2009 18:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74958#M1680</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-20T18:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to put text when a variable CONTinues on the next page in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74959#M1681</link>
      <description>Hi:&lt;BR /&gt;
  When I run this report (below) I get the "classterm" repeated at the top of the page in the LISTING and RTF destinations in SAS 9.1.3. HTML, of course, has no page breaks, so COMPUTE BEFORE _PAGE_ only appears at the top of each value for CLASSTERM variable. In SAS 9.1.3, the PDF file only uses the COMPUTE BEFORE _PAGE_ at the beginning of each CLASSTERM. However, in SAS 9.2, PDF and RTF outputs both have the same behavior (with the text string at the top of each page).&lt;BR /&gt;
&lt;BR /&gt;
  I'm not exactly sure of what you're trying to do, but if this program doesn't help you, then you might consider contacting Tech Support for more help.&lt;BR /&gt;
           &lt;BR /&gt;
cynthia&lt;BR /&gt;
                &lt;BR /&gt;
[pre]&lt;BR /&gt;
** make some data;&lt;BR /&gt;
data examp;&lt;BR /&gt;
length classterm $16 specific $16;&lt;BR /&gt;
  set sashelp.class;&lt;BR /&gt;
  classterm='First';&lt;BR /&gt;
  specific = catt('aaa',name);;&lt;BR /&gt;
  output;&lt;BR /&gt;
  specific = catt('bbb',name);&lt;BR /&gt;
  output;&lt;BR /&gt;
  specific = catt('ccc',name);&lt;BR /&gt;
  output;&lt;BR /&gt;
                         &lt;BR /&gt;
  classterm='Second';&lt;BR /&gt;
  specific = catt('xxx',name);&lt;BR /&gt;
  output; &lt;BR /&gt;
  specific = catt('yyy',name);&lt;BR /&gt;
  output; &lt;BR /&gt;
  specific = catt('zzz',name);&lt;BR /&gt;
  output;&lt;BR /&gt;
                  &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
                    &lt;BR /&gt;
options nodate number pageno=1 ls=80 ps=50;&lt;BR /&gt;
title; footnote;&lt;BR /&gt;
                  &lt;BR /&gt;
ods listing;&lt;BR /&gt;
ods html file='comp_before_page.html' style=sasweb;&lt;BR /&gt;
ods rtf file='comp_before_page.rtf' ;&lt;BR /&gt;
ods pdf file='comp_before_page.pdf';&lt;BR /&gt;
proc report data=examp nowd;&lt;BR /&gt;
  title 'Use Compute Before Page and Compare Different Destinations';&lt;BR /&gt;
  column classterm specific height;&lt;BR /&gt;
  define classterm / order noprint;&lt;BR /&gt;
  define specific / order;&lt;BR /&gt;
  define height / sum;&lt;BR /&gt;
  break after classterm / summarize page;&lt;BR /&gt;
  compute before classterm;&lt;BR /&gt;
     holdterm = classterm;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute before _page_;&lt;BR /&gt;
    line 'Term: ' holdterm $16.;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
  &lt;BR /&gt;
                     &lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 20 Feb 2009 22:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74959#M1681</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-02-20T22:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to put text when a variable CONTinues on the next page in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74960#M1682</link>
      <description>Hello Cynthia&lt;BR /&gt;
&lt;BR /&gt;
Thank you for the response. I will try this when I get the chance. My output is lst so I don't know if this will work.&lt;BR /&gt;
&lt;BR /&gt;
This is for doing adverse events incidence tables. Each system class terms has many preferred terms and many times an organ class's preferred term continue on the next page. proc report does not repeat the class term on the next page when the preferred term is indented under the class term, but we want to do it and add the text "(CONT.)" at the end of class term. Some persons developed very complex programming involving pre-processing to do it. I'm searching for an easier way. &lt;BR /&gt;
&lt;BR /&gt;
Anthony</description>
      <pubDate>Sun, 22 Feb 2009 06:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74960#M1682</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-22T06:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to put text when a variable CONTinues on the next page in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74961#M1683</link>
      <description>Hi:  &lt;BR /&gt;
    Starting in SAS 9.2, the TAGSETS.RTF destination will automatically place the string "continued" at the bottom of the output when the output splits across pages.&lt;BR /&gt;
 &lt;BR /&gt;
  This doesn't help with LISTING output. the only way to do this for LISTING output may be to post-process the output file. You might search the PharmaSUG archive site, &lt;A href="http://www.lexjansen.com" target="_blank"&gt;www.lexjansen.com&lt;/A&gt; for some more examples.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 23 Feb 2009 03:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74961#M1683</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-02-23T03:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to put text when a variable CONTinues on the next page in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74962#M1684</link>
      <description>Anthony,&lt;BR /&gt;
&lt;BR /&gt;
The only way I've found of doing what you're requesting is the pre-processing route.&lt;BR /&gt;
&lt;BR /&gt;
Cynthia's solution is very elegant but unfortunately isn't really what is needed for AE tables.&lt;BR /&gt;
&lt;BR /&gt;
What I do is create page breaks (i.e. a paging variable) based on the number of available lines for my table. Make sure that you take into account skips and continued class headings.&lt;BR /&gt;
&lt;BR /&gt;
I then run a 2nd data step to add an extra line where a class page breaks in the middle of the class. This is where I add the "(Cont.)".&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
Lawrence</description>
      <pubDate>Tue, 24 Mar 2009 14:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-put-text-when-a-variable-CONTinues-on-the-next-page-in/m-p/74962#M1684</guid>
      <dc:creator>LawrenceHW</dc:creator>
      <dc:date>2009-03-24T14:52:39Z</dc:date>
    </item>
  </channel>
</rss>

