<?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: Basophils (10^9/L) is displaying Basophils (10/L) in rtf output using proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/905562#M357667</link>
    <description>Thanks a lot Tom ! Indeed I was using ^ as the ODS escape character and when I changed it, it worked ok.</description>
    <pubDate>Fri, 01 Dec 2023 11:34:50 GMT</pubDate>
    <dc:creator>Amine_Khemiri</dc:creator>
    <dc:date>2023-12-01T11:34:50Z</dc:date>
    <item>
      <title>Basophils (10^9/L) is displaying Basophils (10/L) in rtf output using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/904164#M357232</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a variable text that contains some parameters like&amp;nbsp;Basophils (10^9/L) and it is displaying correctly when I open the SAS dataset but when I run proc freq or I use proc report it becomes&amp;nbsp;Basophils (10/L).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the proc report code I'm using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;proc report data=reportDSN missing nowindows split='@'&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; style(header)=[rules=group frame=above verticalalign=top background=white font_size=9pt]&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; style(report)=[outputwidth=100% rules=group frame=hsides background=white font_size=9pt]&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; style(column)=[rules=group font_size=9pt] spanrows;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;columns pagebreak param_new text visn ord2 stat ("&amp;amp;trt1.^S={borderbottomcolor=black borderbottomwidth=2} " aval1 chg1)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;("&amp;amp;trt2.^S={borderbottomcolor=black borderbottomwidth=2} " aval2 chg2)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;("&amp;amp;trt3.^S={borderbottomcolor=black borderbottomwidth=2} " aval3 chg3);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define&amp;nbsp; pagebreak / order order=data noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define&amp;nbsp; param_new / order order=data noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define&amp;nbsp; text / order order=data noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define&amp;nbsp; ord2 / order order=data noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define&amp;nbsp; visn / order order=data noprint;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define stat / display style(column)=[width= 2.0cm asis=on just=l] style(hdr)=[asis=on just=l] "Parameter (unit)^n ^_^_Time Point^n ^_^_^_^_Statistic";&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define aval1&amp;nbsp; &amp;nbsp;/ display style(column)=[width= 1.5cm asis=on just=c] style(hdr)=[asis=on just=c] "Value";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define chg1&amp;nbsp; &amp;nbsp; / display style(column)=[width= 1.5cm asis=on just=c] style(hdr)=[asis=on just=c] "Change from^nBaseline";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define aval2&amp;nbsp; &amp;nbsp;/ display style(column)=[width= 1.5cm asis=on just=c] style(hdr)=[asis=on just=c] "Value";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define chg2&amp;nbsp; &amp;nbsp; / display style(column)=[width= 1.5cm asis=on just=c] style(hdr)=[asis=on just=c] "Change from^nBaseline";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define aval3&amp;nbsp; &amp;nbsp;/ display style(column)=[width= 1.5cm asis=on just=c] style(hdr)=[asis=on just=c] "Value";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;define chg3&amp;nbsp; &amp;nbsp; / display style(column)=[width= 1.5cm asis=on just=c] style(hdr)=[asis=on just=c] "Change from^nBaseline";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;break after pagebreak /page;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compute before text / style=[font_face="Courier New" font_style=Roman];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;line @1 text $200.;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;endcomp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compute before visn / style=[font_face="Courier New" font_style=Roman];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;line @1 visn vis.;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;endcomp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compute after visn;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;line " ";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;endcomp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Nov 2023 22:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/904164#M357232</guid>
      <dc:creator>Amine_Khemiri</dc:creator>
      <dc:date>2023-11-21T22:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Basophils (10^9/L) is displaying Basophils (10/L) in rtf output using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/904166#M357234</link>
      <description>&lt;P&gt;What does the&amp;nbsp;&lt;SPAN&gt;^S= in your code mean?&amp;nbsp; Did you define ^ as the ODS escape character?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could that have an impact on the Basophil units?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want someone to test please provide a sample version of&amp;nbsp;reportDSN&amp;nbsp;(in the form of a data step that can be run to create it) that demonstrates the issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 23:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/904166#M357234</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-21T23:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Basophils (10^9/L) is displaying Basophils (10/L) in rtf output using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/904176#M357239</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; is exactly correct. You are using an ESCAPECHAR defined character for both style overrides and for variable values. This will not work as you envision. Here's code that proves that the Character value for ESCAPECHAR cannot be the same as what you use in data values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fakedata;
  length text $50;
  infile datalines dlm=',' dsd;
  input roword text $;
datalines;
1,Some text with ~ (tilde)
2,Some text with # (pound)
3,Some text with ^ (caret)
;
run;

ods escapechar = '~';
ods rtf file='c:\temp\try_tilde.rtf';
proc report data=fakedata;
  define roword / order;
  define text / display '~{style[color=purple] The Text}';
  title '1) Escapechar is tilde ';
run;
ods rtf close;

ods escapechar = '#';
ods rtf file='c:\temp\try_pound.rtf';
proc report data=fakedata;
  define roword / order;
  define text / display '#{style[color=purple] The Text}';
  title '2) Escapechar is pound';
run;
ods rtf close;

ods escapechar = '^';
ods rtf file='c:\temp\try_caret.rtf';
proc report data=fakedata;
  define roword / order;
  define text / display '^{style[color=purple] The Text}';
  title '3) Escapechar is caret';
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you run that code, you'll see that what is visible in the data can be impacted by the value you set for ODS ESCAPECHAR.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 02:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/904176#M357239</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-11-22T02:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Basophils (10^9/L) is displaying Basophils (10/L) in rtf output using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/905562#M357667</link>
      <description>Thanks a lot Tom ! Indeed I was using ^ as the ODS escape character and when I changed it, it worked ok.</description>
      <pubDate>Fri, 01 Dec 2023 11:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/905562#M357667</guid>
      <dc:creator>Amine_Khemiri</dc:creator>
      <dc:date>2023-12-01T11:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Basophils (10^9/L) is displaying Basophils (10/L) in rtf output using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/905563#M357668</link>
      <description>Thanks a lot Cynthia ! The issue is resolved indeed.</description>
      <pubDate>Fri, 01 Dec 2023 11:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basophils-10-9-L-is-displaying-Basophils-10-L-in-rtf-output/m-p/905563#M357668</guid>
      <dc:creator>Amine_Khemiri</dc:creator>
      <dc:date>2023-12-01T11:36:05Z</dc:date>
    </item>
  </channel>
</rss>

