LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2011, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Ajay <sas.buds@GMAIL.COM>
In-Reply-To:  <201108250942.p7ONONMG004738@waikiki.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"

Hi Ajay,

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 figure out.

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.

Mark Terjeson Investment Business Intelligence Investment Management & Research Russell Investments 206-505-2367

Russell Global Leaders in Multi-Manager Investing

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Ajay Sent: Thursday, August 25, 2011 2:42 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Warning Message when use HREF to link External file

Hi ,

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 to XLS</a>";

WARNING: The FOOTNOTE statement is ambiguous due to invalid options or unquoted text.

Thanks&Regards, Ajay.


Back to: Top of message | Previous page | Main SAS-L page