Hi:
Angela's example shows explicitly coding target="new"
[pre]
<a href="http://www.google.com" target=new>test</a>
[/pre]
Otherwise, the default URL/HREF that PROC REPORT builds is:
[pre]
<a href="http://www.google.com">test</a>
[/pre]
I believe the default TARGET behavior is the browser setting, which is, I think to reuse the same window -- and probably WRS is not happy about that -- the Portal doesn't care -- it allows you to use browser windows as you want.
As far as I know, the only way to get TARGET= into the URL created with ODS is to change the STYLE template attribute HREFTARGET. However, the downside of this is that WRS -generally- does not use any style template that you specify. So, for example, if you specified this in a stored process:
[pre]
%let _ODSSTYLE=sasweb;
*ProcessBody;
%stpbegin;
...rest of code;
%stpend;
[/pre]
Many of the Enterprise Intelligence Platform client applications (like the Portal or EG) would use the SASWEB style template to apply style when the output was rendered. However, WRS does -not- use the SAS style template specified in _ODSSTYLE -- it uses the styles as defined in the XML behind the scenes with WRS -- since the any output type that you specify is SASReport XML by the time the report gets to WRS. Even if you explicitly do this:
[pre]
%let _ODSSTYLE=sasweb;
%let _ODSDEST=HTML;
*ProcessBody;
%stpbegin;
...rest of code;
%stpend;
[/pre]
and indicate that you want HTML results, only client apps that can -receive- HTML results will use the _ODSDEST parameter. For example, EG, the Portal, the SAS Add-in for Microsoft Office (Word and Excel) will all receive HTML results. However, PowerPoint and Web Report Studio will ONLY receive SASReport XML results --- which are NOT the same as HTML. So these 2 client apps change or ignore your _ODSDEST override and use SASReport XML to create the report. The reason you need to test your stored process in all the client apps that will be invoking the stored process is for just this reason -- a stored process might not look or work the same way in PowerPoint or WRS as it works in EG or the Portal.
So, in building your URL, you have several issues at work:
1) TARGET=NEW might work in WRS
2) WRS is receiving and rendering SASReport XML -- not HTML
3) if you change your style template to alter the HREFTARGET attribute, WRS does not use style templates -- so you'd have to change the CSS information in the XML that runs rendering in WRS.
4) there was a Tech Support note about HREFTARGET not working in CSS:
http://support.sas.com/kb/9/313.html (supposedly this was fixed in SAS 9.1, so you'd have to check with Tech Support whether HREFTARGET in CSS will work now and with the WRS CSS).
5) SASReport XML is not the same as HTML -- so you might need to code hyperlinks differently for SASReport XML (such as used in WRS) than for HTML results (such as used in other client apps).
Angela has pointed you to some examples sites in her post and if you can't get what you need by looking at the examples, then, you might wish to open a track with Tech Support.
cynthia