Qin,

Like you say, if the addresses are relative to defined paths, only the file name is needed.  I was referring to external locations.  When I tested, 'www.sas.com' never worked (I got 'The page cannot be displayed ...') but 'http://www.sas.com' always did.  I guess I don't need to know why, I accept it :-)

Ray

 

At 11:45 AM 08/15/2002 -0400, qjiang wrote:
Ray,
 
Not necessarily to use http:// all the time.
If you have a file under you specified PATH , you can only put the file name there.
 
For instance if you already have a file named 'index1.html'  under the directory 'C:\temp' (where the output file's location), the following can be used to link with index1.html:

call define('name',"STYLE","STYLE=[hreftarget='_blank' URL='index1.html']");

Or when the linked file is located in different path:

call define('name',"STYLE","STYLE=[hreftarget='_blank' URL='file:\\D:\temp\facility-110010\facility-110010.html']");

It is similar to the hyperlink reference in HTML.

Qin
-----Original Message-----
From: Ray Pass [mailto:raypass@ATT.NET]
Sent: Thursday, August 15, 2002 11:04 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: Proc Report, ODS HTML, and Call Define, Repeated

SWEET!  Now all ya gotta do is add some code to the COMPUTE block to define the URL based on the value of FMTLINK.  I tested it and it works, but ya gotta remember to add the http:\\ to the address.

compute fmtlink;
   if fmtlink ne '' then do;
      %let address = 'something based on the current value of FMTLINK';
      call define('format',"STYLE","STYLE=[hreftarget='_blank' URL=&address]");
   end;
endcomp;

Ray





At 10:39 AM 08/15/2002 -0400, qjiang wrote:
"urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags">
Hi, John ,
 
Check this out:
 
ODS html file='C:\temp\test.html' ;
proc report data= sashelp.class nowd;
    column name sex ;
    compute sex; if sex ne 'M' then
        call define('name',"STYLE","STYLE=[hreftarget='_blank' URL='http://www.sas.com']");
    endcomp;
run;
ODS html close;
HTH
Qin *------------------------------------------------*

| Ray Pass, Ph.D.         voice: (914) 693-5553  |
| Ray Pass Consulting      eFax: (914) 206-3780  |
| 5 Sinclair Place         cell: (914) 450-0555  |
| Hartsdale, NY 10530    e-mail: raypass@att.net |
*------------------------------------------------*