Date: Thu, 25 Aug 2011 07:35:11 -0700
Reply-To: "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Subject: Re: Warning Message when use HREF to link External file
Content-Type: text/plain; charset="us-ascii"
A couple of minor things. As you have already
done, the entire string is wrapped with a single
doublequote at each end so that the macro variable
can be resolved. When you need an embedded doublequote
inside the string merely put two of them and the
compiler will know that the first of these is not the
closing doublequote for the entire string but is seen
as two in a row which the compiler will then resolve
down to just one but leave it in the string. Drop the
pair of doublequotes between the anchor tags. Then you
could get the html in the footnote to work. You have
an <a> and </a> tag around the first half of your
string for the prompt text portion(macro variable) and
it really is not another anchor tag but does work.
However, even though this works at this point, not
knowing what would be more proper can eventually get
you into a failing error condition again and until you
learn what is needed, it can be very difficult to
i.e. sometimes html code in a TITLE or FOOTNOTE will
work if you intermix html code and non-html code, and
sometimes it will not work, especially if you start
with non-html code. The trick is to let the compiler
know right up front when it starts processing the
string. If you put a Paragraph Tag <p> at the front
of the string as the first thing the compiler finds
and a closing Paragraph Tag </p> at the end, then you
can intermix html code and text that you want. You
can substitute <div> </div> tags for the paragraph
tags if you want, just as long as you provide the
beginning tag FIRST in the string and best to close
with the appropriate closing tag.
You can get the text to show in <a></a> anchor link
tags but may confuse somebody else reading this code.
Using the tags as shown below clearly tells the reader
what your original intention was.
So again, the trick to putting any html you want into
a TITLE or FOOTNOTE string is to wrap the string with
a pair of html tags (such as <p> or <div>).
footnote Font=Arial "<p>&footnote:<a href=""High_Risk.xls"">Export to XLS</a></p>";
Basically, you can think of it from the compiler's
perspective, if the compiler "starts" seeing text,
then the compiler treats the entire string as text.
If the compiler first "starts" seeing an hmtl tag
then the compiler treats the entire string as html
code syntax. And just in case your title or footnote
gets interleaved with other html code then to formally
close your string with the appropriate closing tag
will keep the runtime and browser from getting confused.
You can test this yourself by making the first opening
tag NOT the first thing in the string:
footnote Font=Arial "XYZ<div>&footnote:<a href=""High_Risk.xls"">Export to XLS</a></div>";
Hope this is helpful.
Investment Business Intelligence
Investment Management & Research
Global Leaders in Multi-Manager Investing
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Ajay
Sent: Thursday, August 25, 2011 2:42 AM
Subject: Warning Message when use HREF to link External file
When I am trying to Link external file from HTML report by using below
statement i am getting warning message like below. Please look into the
below statement and hlep me to resolve the same.
footnote Font= Arial "<a> &footnote.:</a>""<a href="High_Risk.xls">Export
WARNING: The FOOTNOTE statement is ambiguous due to invalid options or