<?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 help in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/351937#M18371</link>
    <description>Hi:&lt;BR /&gt;  SPLIT= is designed only for header text, as a way to split the header value into multiple lines. SPLIT= is NOT designed for data values.&lt;BR /&gt;&lt;BR /&gt;  If you want to insert the equivalent of a carriage return or a line feed into a data cell, the easiest way is to use ODS ESCAPECHAR. There have been many previous posts about using ODS ESCAPECHAR...here's one &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Adding-a-line-feed-character-when-joining-two-columns-into-one/td-p/69419" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Adding-a-line-feed-character-when-joining-two-columns-into-one/td-p/69419&lt;/A&gt; and here's another: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Indent-different-rows-of-a-column-in-RTF/td-p/215812" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Indent-different-rows-of-a-column-in-RTF/td-p/215812&lt;/A&gt; and here's a third: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Re-Splitting-Word-in-Output/m-p/215009/highlight/true#M14135" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Re-Splitting-Word-in-Output/m-p/215009/highlight/true#M14135&lt;/A&gt; and here: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-creating-variable-number-of-line-statements-for-a/m-p/15506/highlight/true#M3366" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-creating-variable-number-of-line-statements-for-a/m-p/15506/highlight/true#M3366&lt;/A&gt; and last, but not least, this one has your exact question: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Split-ODS-RTF-doesn-t-work/m-p/24831/highlight/true#M4143" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Split-ODS-RTF-doesn-t-work/m-p/24831/highlight/true#M4143&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Thu, 20 Apr 2017 22:20:59 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-04-20T22:20:59Z</dc:date>
    <item>
      <title>Proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/351897#M18370</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help in generating a listing report . I am attaching a screen shot of ouput needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With my code I am not seeing all the variables in my output. &amp;nbsp;Also, I need help on &amp;nbsp;splitting the variable values . The split='/' in the program is working on variable labels, not on variable values. Please help. Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data one;
input var1$ var2$ var3$ var4$ var5$ var6$ var7$ var8$ var9$;
datalines;
xxxx-xxxx/xx/F/W/xx/xxx xxxxxxxxxx/xxxxxxxxxxxxxxx/xxxxxxxxxxx yyyy-mm-dd(-xx)/yyyy-mm-dd(xx)/Y TI xxxx YES S:MildD:NotRelatedP:Related A:NoneOA:xxxxO:Recovered/ResolvedA:Other:xxxx F:xxxxx
;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods rtf file="C:\\one.rtf" style=journal;
proc report data=adae1 nowd  CENTER style(header)=[just=center BORDERTOPWIDTH=2 BORDERBOTTOMWIDTH=2] 
		style(report)=[asis=on protectspecialchars=off Just=left outputwidth=9.25 in ]
		missing headline headskip nowd split='/' spacing=1;

column   var:;

define var1/order=internal width=8left "Subject ID/ Age/Gender/ Race/Region/Country";
define var2/order=internal width=8left "System Organ Class/
Preferred Term/
Verbatim Term 
" ;
define var3/order=internal width=8left "Start Date (Study Day)/
End date (Study Day)/TEAE  
" ;
define var4/order=internal width=8left "Onset Phase";
define var5/order=internal width=8left "Dose Level (mg)";
define var6/order=internal width=8left "SAE/
SAE Criteria 
";
define var7/order=internal width=8left "S: Severity
D: Relation to 
Study drug
P: Relation to Study Procedure
" ;
define var8/order=internal width=8left "A: Action Taken with Study Drug
OA: Other Action
O: Outcome 
" ;
define var9/order=internal width=8left "F:Frequency";
run;
ods rtf close;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 20:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/351897#M18370</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2017-04-20T20:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/351937#M18371</link>
      <description>Hi:&lt;BR /&gt;  SPLIT= is designed only for header text, as a way to split the header value into multiple lines. SPLIT= is NOT designed for data values.&lt;BR /&gt;&lt;BR /&gt;  If you want to insert the equivalent of a carriage return or a line feed into a data cell, the easiest way is to use ODS ESCAPECHAR. There have been many previous posts about using ODS ESCAPECHAR...here's one &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Adding-a-line-feed-character-when-joining-two-columns-into-one/td-p/69419" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Adding-a-line-feed-character-when-joining-two-columns-into-one/td-p/69419&lt;/A&gt; and here's another: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Indent-different-rows-of-a-column-in-RTF/td-p/215812" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Indent-different-rows-of-a-column-in-RTF/td-p/215812&lt;/A&gt; and here's a third: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Re-Splitting-Word-in-Output/m-p/215009/highlight/true#M14135" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Re-Splitting-Word-in-Output/m-p/215009/highlight/true#M14135&lt;/A&gt; and here: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-creating-variable-number-of-line-statements-for-a/m-p/15506/highlight/true#M3366" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-creating-variable-number-of-line-statements-for-a/m-p/15506/highlight/true#M3366&lt;/A&gt; and last, but not least, this one has your exact question: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Split-ODS-RTF-doesn-t-work/m-p/24831/highlight/true#M4143" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Split-ODS-RTF-doesn-t-work/m-p/24831/highlight/true#M4143&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 20 Apr 2017 22:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/351937#M18371</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-04-20T22:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/358016#M18593</link>
      <description>&lt;P&gt;Agree with Cynthia that the split= option only affect the header. But in proc report, you can use "flow" in the define statement to force the data value to wrap in the column&amp;nbsp;when the splitor you defined in the proc report statement is met. Because flow option honors the split= option. Hope it helps.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/358016#M18593</guid>
      <dc:creator>hyquid</dc:creator>
      <dc:date>2017-05-11T18:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/358072#M18594</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Just a minor clarification. When you use FLOW with the SPLIT character the ONLY place it is respected in a DATA cell is in the LISTING destination. ODS destinations that use style (ODS HTML, for example) will NOT use the split character and FLOW.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's what I mean. This program uses / in the data cell for name and you can compare the results below the program:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8834i84AEC2507452D9C4/image-size/original?v=1.0&amp;amp;px=-1" alt="does_flow_work_ODS.png" title="does_flow_work_ODS.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; On the other hand, this program illustrates the use of ODS ESCAPECHAR to achieve the same result in ODS destinations that you can achieve in LISTING with FLOW.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8835i784E676FAEABF1DA/image-size/original?v=1.0&amp;amp;px=-1" alt="ods_escapechar_used_in_HTML_not_LISTING.png" title="ods_escapechar_used_in_HTML_not_LISTING.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FLOW, like, like HEADLINE, SKIP, HEADSKIP, DOL, DUL, etc is one of the LISTING only options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 00:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/358072#M18594</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-05-12T00:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/358318#M18605</link>
      <description>&lt;P&gt;Thank you, Cynthia, for such a detailed clarification by comparing the two different approaches! Yes, I wasn't aware of the destination issue in the op. I'm also new to SAS and currently use proc report a lot to generate listing reports. Nice to know this and I will keep it in mind!&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 18:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-help/m-p/358318#M18605</guid>
      <dc:creator>hyquid</dc:creator>
      <dc:date>2017-05-12T18:45:35Z</dc:date>
    </item>
  </channel>
</rss>

