<?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 Re: How to assign target variable to link=&amp;quot;URL&amp;quot; option in note statement using PROC Gslide in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824828#M325777</link>
    <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38890"&gt;@cynthia&lt;/a&gt; for the solution. It works for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even I missed to remember this option. Thank you for the detailed explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 05:47:33 GMT</pubDate>
    <dc:creator>sathyarajamohan</dc:creator>
    <dc:date>2022-07-22T05:47:33Z</dc:date>
    <item>
      <title>How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824609#M325662</link>
      <description>&lt;P&gt;My requirement is when I click the link it should open in a new page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gslide border&lt;BR /&gt;cframe=green&lt;BR /&gt;wframe=3 ;&lt;/P&gt;&lt;P&gt;note move=(35,20)pct height=35 j=c color="black"&lt;BR /&gt;link="\\xyz\xxx.htm" "Click Here" ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below&lt;/P&gt;&lt;P&gt;link="\\xyz\xxx.htm" "Click Here" hreftarget="_blank";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It didn't work for me. Please help me with samples to use the links in proc gslide&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 12:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824609#M325662</guid>
      <dc:creator>sathyarajamohan</dc:creator>
      <dc:date>2022-07-21T12:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824633#M325671</link>
      <description>&lt;P&gt;When you use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;note move=(35,20)pct height=35 j=c color="black"
link="\\xyz\xxx.htm" "Click Here" ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does the link work?&amp;nbsp; If so, I would try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;note move=(35,20)pct height=35 j=c color="black"
link="\\xyz\xxx.htm" "Click Here" "target='_blank'";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But that's just a guess.&amp;nbsp; Since the NOTE statement is apparently making a link for you, you might need to look at the html it produces to see what is wrong about the link.&amp;nbsp; For example, if it is treating the entire string as a URL, you might not be be able to break out of it to add a target= option in the HTML, or you might need to add more quote marks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 13:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824633#M325671</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-07-21T13:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824654#M325680</link>
      <description>&lt;P&gt;Thank you for the quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The suggested solution didn't work for me.&lt;/P&gt;&lt;P&gt;Though the link works for me it still open in the current window only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 13:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824654#M325680</guid>
      <dc:creator>sathyarajamohan</dc:creator>
      <dc:date>2022-07-21T13:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824676#M325684</link>
      <description>&lt;P&gt;Can you post the HTML code that you are getting as output?&amp;nbsp; Just the section of the code that shows the &amp;lt;a href=...&amp;gt; ... &amp;lt;/a&amp;gt; definition?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 14:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824676#M325684</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-07-21T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824761#M325737</link>
      <description>&lt;P&gt;Hi my understanding of the LINK= option was that it needed to be a URL, which starts with HTTP:// or HTTPS:// your LINK= value looks like a network drive location, not a URL.&lt;BR /&gt;I find that if I use a modified version of your code with explicit ODS HTML statements and a valid URL for LINK= and then I open the created HTML file in a browser then the link on the GSLIDE works for me. Here's the code I tested. I changed the size of the HEIGHT= value because 35 was huge for me.&lt;BR /&gt;Cynthia&lt;BR /&gt;My test:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html path='c:\temp' (url=none) file='slidelink.html';
proc gslide border
cframe=green
wframe=3 ;

note move=(35,20)pct height=12pt j=c bold color="purple"
link="https://www.sas.com/en_us/home.html" "Click Here to visit SAS";

run;

quit;
ods html close;

** then open slidelink.html in a browser;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jul 2022 20:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824761#M325737</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-07-21T20:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824764#M325740</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;, thanks for jumping in.&amp;nbsp; I totally missed that the link in the OP's code wasn't a URL.&amp;nbsp; Looks like your code did not make it into your post.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 19:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824764#M325740</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-07-21T19:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824767#M325742</link>
      <description>I just added it! Thanks!</description>
      <pubDate>Thu, 21 Jul 2022 20:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824767#M325742</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-07-21T20:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824780#M325752</link>
      <description>&lt;P&gt;I played a bit to try to add target=_blank to Cynthia's code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below hack creates some ugly HTML, but it seems to work okay in chrome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html path='C:\junk' (url=none) file='slidelink2.html';
proc gslide border
cframe=green
wframe=3 ;

note move=(35,20)pct height=12pt j=c bold color="purple"
link="https://www.sas.com/en_us/home.html"" target='_blank'" "Click Here to visit SAS"; *this doesnt do what I had hope, but it seems to work in chrome at least;
run;

quit;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The html looks like:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;area shape="RECT" href="https://www.sas.com/en_us/home.html"" target='_blank'" coords="280,465,437,483"&amp;gt;&lt;/PRE&gt;
&lt;P&gt;So there is an extra pair of double quotes in the HTML, which is probably bad.&amp;nbsp; But chrome doesn't seem to worry about it.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 20:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824780#M325752</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-07-21T20:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824807#M325769</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;Hi: Interesting approach.&amp;nbsp; And thank you for jogging my memory. When I was testing I just right clicked and chose "Open in New tab" or "Open in new window" -- so the target=_blank in the OP's code didn't really register with me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I like how you did that. At first I thought about the HREFTARGET style atttibute, but GSLIDE doesn't use a STYLE template like a report procedure does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; However, dipping back into my ODS/HTML early days I thought I remembered something, so I started searching and:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods html path='c:\temp' (url=none) file='linkbase.html' headtext='&amp;lt;BASE target=_blank &amp;gt;';
proc gslide border
cframe=green
wframe=3 ;

note move=(35,20)pct height=12pt j=c bold color="purple"
link="https://www.sas.com/en_us/home.html" "Click Here to visit SAS";

run;

quit;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; I'd forgotten about this TS note &lt;A href="https://support.sas.com/kb/24/058.html" target="_blank"&gt;https://support.sas.com/kb/24/058.html&lt;/A&gt; but rediscovered it looking for HREFTARGET.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 23:59:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824807#M325769</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-07-21T23:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824828#M325777</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38890"&gt;@cynthia&lt;/a&gt; for the solution. It works for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even I missed to remember this option. Thank you for the detailed explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 05:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824828#M325777</guid>
      <dc:creator>sathyarajamohan</dc:creator>
      <dc:date>2022-07-22T05:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824830#M325779</link>
      <description>&lt;P&gt;Thank you Quentin for trying to solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The suggested way didn't work for me. Soon will come back with more questions.&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 05:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824830#M325779</guid>
      <dc:creator>sathyarajamohan</dc:creator>
      <dc:date>2022-07-22T05:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign target variable to link="URL" option in note statement using PROC Gslide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824873#M325799</link>
      <description>&lt;P&gt;Very cool, thanks Cynthia.&amp;nbsp; Not surprising at all that the Queen of ODS would come up with the proper way to do this, rather than my attempted hack.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 12:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-target-variable-to-link-quot-URL-quot-option-in/m-p/824873#M325799</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-07-22T12:45:08Z</dc:date>
    </item>
  </channel>
</rss>

