<?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 How can I add a target parameter to a PROC REPORT CALL DEFINE URL? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863758#M341168</link>
    <description>&lt;P&gt;I am trying to add a TARGET= to a URL generated in a PROC REPORT with CALL DEFINE so that the generated hyperlink works correctly in a framed environment.&amp;nbsp; There does not appear to be documented way to do this that I have found.&amp;nbsp; I have seen some references to modifying the style template but have not found any working examples.&amp;nbsp; I tried fooling the system by including double quotes in my CALL DEFINE to extend the generated HREF which almost worked, but the actual html converted the buried double quotes to &amp;amp;quot; which did not work when displaying the page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compute link; &lt;BR /&gt;&amp;nbsp; href=cat("&amp;amp;htmlbody..html#",trim(scan(path,-1,'\')),'" target="body'); &lt;BR /&gt;&amp;nbsp; call define(_col_,'URL',href); &lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Results in this HTML:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;tr&amp;gt; &lt;BR /&gt;&amp;lt;td class="l data" style=" border-width: 0px;"&amp;gt;&amp;lt;a href="BODY.html#Report#16&amp;amp;quot; target=&amp;amp;quot;body"&amp;gt;Messages by Severity&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt; &lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which does not work properly.&amp;nbsp; Any suggestions on how I can generate a proper target="body" with CALL DEFINE?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 11:20:02 GMT</pubDate>
    <dc:creator>eshupp</dc:creator>
    <dc:date>2023-03-13T11:20:02Z</dc:date>
    <item>
      <title>How can I add a target parameter to a PROC REPORT CALL DEFINE URL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863758#M341168</link>
      <description>&lt;P&gt;I am trying to add a TARGET= to a URL generated in a PROC REPORT with CALL DEFINE so that the generated hyperlink works correctly in a framed environment.&amp;nbsp; There does not appear to be documented way to do this that I have found.&amp;nbsp; I have seen some references to modifying the style template but have not found any working examples.&amp;nbsp; I tried fooling the system by including double quotes in my CALL DEFINE to extend the generated HREF which almost worked, but the actual html converted the buried double quotes to &amp;amp;quot; which did not work when displaying the page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compute link; &lt;BR /&gt;&amp;nbsp; href=cat("&amp;amp;htmlbody..html#",trim(scan(path,-1,'\')),'" target="body'); &lt;BR /&gt;&amp;nbsp; call define(_col_,'URL',href); &lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Results in this HTML:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;tr&amp;gt; &lt;BR /&gt;&amp;lt;td class="l data" style=" border-width: 0px;"&amp;gt;&amp;lt;a href="BODY.html#Report#16&amp;amp;quot; target=&amp;amp;quot;body"&amp;gt;Messages by Severity&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt; &lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which does not work properly.&amp;nbsp; Any suggestions on how I can generate a proper target="body" with CALL DEFINE?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 11:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863758#M341168</guid>
      <dc:creator>eshupp</dc:creator>
      <dc:date>2023-03-13T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a target parameter to a PROC REPORT CALL DEFINE URL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863759#M341169</link>
      <description>&lt;P&gt;I would suggest showing an example with no macro variables or function calls needed: i.e. a fixed URL before attempting to get a more complex example working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what you show for the resolved path I strongly suspect that your macro variables aren't what you want.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 11:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863759#M341169</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-13T11:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a target parameter to a PROC REPORT CALL DEFINE URL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863763#M341172</link>
      <description>&lt;P&gt;Thanks for your comment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can tell that the macro variables are resolving properly from the generated HTML in the post.&amp;nbsp; Also, when I edit the generated HTML output file and change all &amp;amp;quot; strings to " (double quotes) the page works properly.&amp;nbsp; My assumption is that this can be solved with a PROC TEMPLATE alteration of the style, or an additional CALL DEFINE to reset a style parameter.&amp;nbsp; I just don't know which parameter to override.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 11:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863763#M341172</guid>
      <dc:creator>eshupp</dc:creator>
      <dc:date>2023-03-13T11:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a target parameter to a PROC REPORT CALL DEFINE URL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863796#M341176</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/29730"&gt;@eshupp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for your comment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can tell that the macro variables are resolving properly from the generated HTML in the post.&amp;nbsp; Also, when I edit the generated HTML output file and change all &amp;amp;quot; strings to " (double quotes) the page works properly.&amp;nbsp; My assumption is that this can be solved with a PROC TEMPLATE alteration of the style, or an additional CALL DEFINE to reset a style parameter.&amp;nbsp; I just don't know which parameter to override.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Huh?&amp;nbsp; Why did you output &amp;amp;quot; if you wanted " ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 14:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863796#M341176</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-13T14:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a target parameter to a PROC REPORT CALL DEFINE URL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863798#M341177</link>
      <description>I did not, ODS converted my " to &amp;amp;quot; when it generated the HTML.</description>
      <pubDate>Mon, 13 Mar 2023 14:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863798#M341177</guid>
      <dc:creator>eshupp</dc:creator>
      <dc:date>2023-03-13T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a target parameter to a PROC REPORT CALL DEFINE URL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863800#M341178</link>
      <description>&lt;P&gt;Because it is interpreting ' target="body"' as part the URL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are passing just the content of the HREF= option of the &amp;lt;a&amp;gt; tag.&amp;nbsp; I do not see any method to modify the value of the target= option of the &amp;lt;a&amp;gt; tag.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/863800#M341178</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-13T15:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a target parameter to a PROC REPORT CALL DEFINE URL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/864048#M341245</link>
      <description>&lt;P&gt;Thanks to Chevell at SAS support the solution to this is adding HREFTARGET= to the PROC REPORT STYLE(COLUMN) parameter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=reportdata&lt;BR /&gt;style(report)={just=c frame=box} &lt;BR /&gt;style(header)={frame=void} &lt;BR /&gt;&lt;FONT color="#FF0000"&gt;style(column)={frame=void hreftarget="_blank"}&lt;/FONT&gt;&lt;BR /&gt;nowd;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;href=catt("c:\output\body.html#",name); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; call define(_col_,'URL',href); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;endcomp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This added the target="_blank" to the generated anchor.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-add-a-target-parameter-to-a-PROC-REPORT-CALL-DEFINE/m-p/864048#M341245</guid>
      <dc:creator>eshupp</dc:creator>
      <dc:date>2023-03-14T13:16:24Z</dc:date>
    </item>
  </channel>
</rss>

