<?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: PROC REPORT: Repeat group/order variable value at the beginning of each page in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Repeat-group-order-variable-value-at-the-beginning/m-p/814905#M25807</link>
    <description>&lt;P&gt;First, example data would help. I realize this may be sensitive so replace sensitive values with dummy things like XXX and YYY for different levels so that we don't see any of the sensitive values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should include your ODS destination code as well. I say this because HTML, the default has no real concept of "page" and would not have any such break to deal with. So you must have something that uses "page". Each destination that has pages may have different requirements to accomplish what you state.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might help to draw a table, such as in a word processing program to demonstrate exactly what you expect the result to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 16:14:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-05-24T16:14:06Z</dc:date>
    <item>
      <title>PROC REPORT: Repeat group/order variable value at the beginning of each page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Repeat-group-order-variable-value-at-the-beginning/m-p/814892#M25806</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of adverse event characteristics by patient ID and I have defined the patient ID variable as a &lt;STRONG&gt;order&lt;/STRONG&gt; variable (its value only appears at the first line of the group of registers belonging to that patient). As the information for each patient can go through several pages I would like to facilitate the listing review by including again the patient ID &lt;U&gt;at the same column&lt;/U&gt; at beginning of each page (not as an external thing to the table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried defining the variable as &lt;STRONG&gt;group&lt;/STRONG&gt;, &lt;STRONG&gt;id&lt;/STRONG&gt;, including the &lt;STRONG&gt;spanrows&lt;/STRONG&gt; option in the procedure, a &lt;STRONG&gt;break before&lt;/STRONG&gt; the variable and a &lt;STRONG&gt;by&lt;/STRONG&gt; variable after the column statement and nothing is working. I'm sure it has to be something to get this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me show you my basic code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods rtf style=customtemplate path=&amp;amp;outputs&lt;BR /&gt;file="Listing 16.3.1 TEAEs (Safety Population) (&amp;amp;sysdate).doc";&lt;BR /&gt;title3 "Listing 16.3.1 TEAEs (Safety Population)";&lt;BR /&gt;&lt;BR /&gt;proc report data=teaes nowd headline headskip spacing=2 split='|' style(report)={width=100% cellpadding=0.05} missing span;	
  	column ('Subject ID' subjidchar) ('Site' site) ('AE term/SOC/PT' aeterm2report) ('Grd' aetoxgr) ('Ser?' aeser) ('AE Dates' astdt aendt) ('Related?' relgr1n relgr2n) ('Action Taken' aeacn aeacnp) ('Outcome' aeoutrep);

	define subjidchar / display order order=data flow left '' style(column)={width=5%};
	define site / display flow left '' order style(column)={width=7%};
	define aeterm2report / display left flow '' style(column)={width=21%};
	define aetoxgr / display center flow '' style(column)={width=3%};
	define aeser / display center flow '' style(column)={width=3%};
	define astdt / display center flow 'Start' style(column)={width=6%}; 	
	define aendt / display center flow 'End' style(column)={width=6%};
	define relgr1n / f=yn. display center flow 'Drug 1' style(column)={width=4%};
	define relgr2n / f=yn. display center flow 'Drug 2' style(column)={width=4%};
	define aeacn / display center flow 'Drug 1' style(column)={width=7%};
	define aeacnp / display center flow 'Drug 2' style(column)={width=7%};
	define aeoutrep / display center flow '' style(column)={width=7%};
run;&lt;BR /&gt;&lt;BR /&gt;ods rtf close;&lt;/PRE&gt;&lt;P&gt;I hope this screenshot helps understand what I would like to achieve (I have highlighted in yellow the new features I need):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="emera86_0-1653410333144.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71743i3B1D9E41702B3B66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="emera86_0-1653410333144.png" alt="emera86_0-1653410333144.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any tips you may have on this topic!&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Repeat-group-order-variable-value-at-the-beginning/m-p/814892#M25806</guid>
      <dc:creator>emera86</dc:creator>
      <dc:date>2022-05-24T16:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Repeat group/order variable value at the beginning of each page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Repeat-group-order-variable-value-at-the-beginning/m-p/814905#M25807</link>
      <description>&lt;P&gt;First, example data would help. I realize this may be sensitive so replace sensitive values with dummy things like XXX and YYY for different levels so that we don't see any of the sensitive values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should include your ODS destination code as well. I say this because HTML, the default has no real concept of "page" and would not have any such break to deal with. So you must have something that uses "page". Each destination that has pages may have different requirements to accomplish what you state.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might help to draw a table, such as in a word processing program to demonstrate exactly what you expect the result to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Repeat-group-order-variable-value-at-the-beginning/m-p/814905#M25807</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-05-24T16:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Repeat group/order variable value at the beginning of each page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Repeat-group-order-variable-value-at-the-beginning/m-p/814907#M25808</link>
      <description>Thank you for your quick answer! I'll see what I can do to provide an example of what I have and what I need.</description>
      <pubDate>Tue, 24 May 2022 16:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Repeat-group-order-variable-value-at-the-beginning/m-p/814907#M25808</guid>
      <dc:creator>emera86</dc:creator>
      <dc:date>2022-05-24T16:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Repeat group/order variable value at the beginning of each page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Repeat-group-order-variable-value-at-the-beginning/m-p/814940#M25809</link>
      <description>&lt;P&gt;I think that you may have missed this part of the SPANROWS documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV class="xis-procStatement"&gt;
&lt;DIV class="xis-procStatementSyntax"&gt;
&lt;DIV class="xis-syntaxDescription"&gt;
&lt;DIV class="xis-optionalArgGroup"&gt;
&lt;DIV id="n0zy22i47d61srn1jv4j0iu2y9ti" class="xis-argDescriptionPair"&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimple"&gt;The SPANROWS option also allows GROUP and ORDER variables values to repeat when the values break across pages. Only the PDF, PS, and TAGSETS.RTF destinations support this part of the feature.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So try your SPANROWS attempt but use use ODS TAGSETS.RTF instead of ODS RTF. You don't appear to be using any of the options that RTF does differently than TAGSETS.RTF would.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 19:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Repeat-group-order-variable-value-at-the-beginning/m-p/814940#M25809</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-05-24T19:03:15Z</dc:date>
    </item>
  </channel>
</rss>

