<?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: ods escapechar makes the data disappear in a HTML report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-escapechar-makes-the-data-disappear-in-a-HTML-report/m-p/5881#M2382</link>
    <description>Hi, Olivier:&lt;BR /&gt;
  I have seen this issue sporadically. Try ODS HTML3/ODS HTML3 CLOSE instead of ODS HTML and I think it'll work OK.&lt;BR /&gt;
 &lt;BR /&gt;
  Also, PROC REPORT doesn't seem to have the problem with ODS HTML that PROC PRINT has, I'm not sure why. The equivalent code in PROC REPORT land is:&lt;BR /&gt;
[pre]&lt;BR /&gt;
** generate HTML 3.2 tags -- should work OK;&lt;BR /&gt;
     &lt;BR /&gt;
ODS html3 FILE = "c:\temp\special3.htm" ;&lt;BR /&gt;
ODS ESCAPECHAR = "^" ;&lt;BR /&gt;
FOOTNOTE1 "^{super 1}in inches ; ^{super 2}in pounds" ;&lt;BR /&gt;
   &lt;BR /&gt;
title 'proc sql and HTML 3';&lt;BR /&gt;
PROC SQL ;&lt;BR /&gt;
	SELECT name, age,&lt;BR /&gt;
		   height LABEL = "Height^{super 1}",&lt;BR /&gt;
		   weight LABEL = "Weight^{super 2}"&lt;BR /&gt;
	FROM sashelp.class ;&lt;BR /&gt;
QUIT ;&lt;BR /&gt;
    &lt;BR /&gt;
PROC PRINT DATA = sashelp.class LABEL NOOBS; &lt;BR /&gt;
title 'proc print and HTML 3';&lt;BR /&gt;
	VAR name age height weight ;&lt;BR /&gt;
	LABEL height = "Height^{super 1}" &lt;BR /&gt;
          weight = "Weight^{super 2}" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
    &lt;BR /&gt;
PROC report DATA = sashelp.class nowd; &lt;BR /&gt;
title 'proc report and HTML 3';&lt;BR /&gt;
	column name age height weight ;&lt;BR /&gt;
	LABEL height = "Height^{super 1}" &lt;BR /&gt;
          weight = "Weight^{super 2}" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
   &lt;BR /&gt;
title;&lt;BR /&gt;
FOOTNOTE ;&lt;BR /&gt;
ODS html3 CLOSE ;&lt;BR /&gt;
    &lt;BR /&gt;
&lt;BR /&gt;
** generate HTML 4.0 tags -- no problem with PROC REPORT;&lt;BR /&gt;
  &lt;BR /&gt;
ODS html FILE = "c:\temp\special4.htm" ;&lt;BR /&gt;
ODS ESCAPECHAR = "^" ;&lt;BR /&gt;
FOOTNOTE1 "^{super 1}in inches ; ^{super 2}in pounds" ;&lt;BR /&gt;
      &lt;BR /&gt;
PROC report DATA = sashelp.class nowd; &lt;BR /&gt;
title 'proc report and HTML 4';&lt;BR /&gt;
	column name age height weight ;&lt;BR /&gt;
	LABEL height = "Height^{super 1}" &lt;BR /&gt;
          weight = "Weight^{super 2}" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
title;&lt;BR /&gt;
FOOTNOTE ;&lt;BR /&gt;
ODS html CLOSE ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
    &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 12 Dec 2007 20:20:06 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-12-12T20:20:06Z</dc:date>
    <item>
      <title>ods escapechar makes the data disappear in a HTML report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-escapechar-makes-the-data-disappear-in-a-HTML-report/m-p/5880#M2381</link>
      <description>Hi all.&lt;BR /&gt;
Here is the problem I am facing : I try to add some superscript numbers in labels on a listing, to send the reader to a note included in a footnote. When I do that in a Print or Sql procedure to produce my report, the data disappears from my report, leaving just a blank column -- the label disappears as well in Print, but not in Sql.&lt;BR /&gt;
Here is my sample code : any ideas why this happens, and what lesson should be learn from that, such as "Thou shalt not include superscript escapechar in HTML reports" ?&lt;BR /&gt;
[pre]&lt;BR /&gt;
ODS HTML FILE = "c:\temp\special.htm" ;&lt;BR /&gt;
ODS ESCAPECHAR = "^" ;&lt;BR /&gt;
FOOTNOTE1 "^{super 1}in inches ; ^{super 2}in pounds" ;&lt;BR /&gt;
PROC SQL ;&lt;BR /&gt;
	SELECT name, age,&lt;BR /&gt;
		   height LABEL = "Height^{super 1}",&lt;BR /&gt;
		   weight LABEL = "Weight^{super 2}"&lt;BR /&gt;
	FROM sashelp.class ;&lt;BR /&gt;
QUIT ;&lt;BR /&gt;
PROC PRINT DATA = sashelp.class LABEL NOOBS ;&lt;BR /&gt;
	VAR name age height weight ;&lt;BR /&gt;
	LABEL height = "Height^{super 1}" weight = "Weight^{super 2}" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
FOOTNOTE ;&lt;BR /&gt;
ODS HTML CLOSE ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
Olivier</description>
      <pubDate>Wed, 12 Dec 2007 18:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-escapechar-makes-the-data-disappear-in-a-HTML-report/m-p/5880#M2381</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-12-12T18:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: ods escapechar makes the data disappear in a HTML report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-escapechar-makes-the-data-disappear-in-a-HTML-report/m-p/5881#M2382</link>
      <description>Hi, Olivier:&lt;BR /&gt;
  I have seen this issue sporadically. Try ODS HTML3/ODS HTML3 CLOSE instead of ODS HTML and I think it'll work OK.&lt;BR /&gt;
 &lt;BR /&gt;
  Also, PROC REPORT doesn't seem to have the problem with ODS HTML that PROC PRINT has, I'm not sure why. The equivalent code in PROC REPORT land is:&lt;BR /&gt;
[pre]&lt;BR /&gt;
** generate HTML 3.2 tags -- should work OK;&lt;BR /&gt;
     &lt;BR /&gt;
ODS html3 FILE = "c:\temp\special3.htm" ;&lt;BR /&gt;
ODS ESCAPECHAR = "^" ;&lt;BR /&gt;
FOOTNOTE1 "^{super 1}in inches ; ^{super 2}in pounds" ;&lt;BR /&gt;
   &lt;BR /&gt;
title 'proc sql and HTML 3';&lt;BR /&gt;
PROC SQL ;&lt;BR /&gt;
	SELECT name, age,&lt;BR /&gt;
		   height LABEL = "Height^{super 1}",&lt;BR /&gt;
		   weight LABEL = "Weight^{super 2}"&lt;BR /&gt;
	FROM sashelp.class ;&lt;BR /&gt;
QUIT ;&lt;BR /&gt;
    &lt;BR /&gt;
PROC PRINT DATA = sashelp.class LABEL NOOBS; &lt;BR /&gt;
title 'proc print and HTML 3';&lt;BR /&gt;
	VAR name age height weight ;&lt;BR /&gt;
	LABEL height = "Height^{super 1}" &lt;BR /&gt;
          weight = "Weight^{super 2}" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
    &lt;BR /&gt;
PROC report DATA = sashelp.class nowd; &lt;BR /&gt;
title 'proc report and HTML 3';&lt;BR /&gt;
	column name age height weight ;&lt;BR /&gt;
	LABEL height = "Height^{super 1}" &lt;BR /&gt;
          weight = "Weight^{super 2}" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
   &lt;BR /&gt;
title;&lt;BR /&gt;
FOOTNOTE ;&lt;BR /&gt;
ODS html3 CLOSE ;&lt;BR /&gt;
    &lt;BR /&gt;
&lt;BR /&gt;
** generate HTML 4.0 tags -- no problem with PROC REPORT;&lt;BR /&gt;
  &lt;BR /&gt;
ODS html FILE = "c:\temp\special4.htm" ;&lt;BR /&gt;
ODS ESCAPECHAR = "^" ;&lt;BR /&gt;
FOOTNOTE1 "^{super 1}in inches ; ^{super 2}in pounds" ;&lt;BR /&gt;
      &lt;BR /&gt;
PROC report DATA = sashelp.class nowd; &lt;BR /&gt;
title 'proc report and HTML 4';&lt;BR /&gt;
	column name age height weight ;&lt;BR /&gt;
	LABEL height = "Height^{super 1}" &lt;BR /&gt;
          weight = "Weight^{super 2}" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
title;&lt;BR /&gt;
FOOTNOTE ;&lt;BR /&gt;
ODS html CLOSE ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
    &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 12 Dec 2007 20:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-escapechar-makes-the-data-disappear-in-a-HTML-report/m-p/5881#M2382</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-12-12T20:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: ods escapechar makes the data disappear in a HTML report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-escapechar-makes-the-data-disappear-in-a-HTML-report/m-p/5882#M2383</link>
      <description>Thank you Cynthia : it does work fine with HTML3.&lt;BR /&gt;
I was sure when I posted this question that you will answer saying that proc Report does the job perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; So I didn't even bother to test the Report solution, being sure you would do it for me...&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot. I'm waiting for an update in the HTML4 tagset to solve the problem...&lt;BR /&gt;
&lt;BR /&gt;
Olivier</description>
      <pubDate>Fri, 14 Dec 2007 09:40:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-escapechar-makes-the-data-disappear-in-a-HTML-report/m-p/5882#M2383</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-12-14T09:40:59Z</dc:date>
    </item>
  </channel>
</rss>

