<?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: Can you create a hyperlinklink in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-you-create-a-hyperlinklink-in-SAS/m-p/895707#M353894</link>
    <description>&lt;P&gt;I'm confused.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your SAS code running as a stored process on a SAS 9 BI server or some other similar environment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you are creating a link that points to a .sas file. Why would that be useful?&amp;nbsp; Do you want the user to be able to display sas code in a browser window? Or do you want that SAS code to be executed when they click the link?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a stored process setting, you can use SAS to return an HTML page which has links to other stored processes that run more SAS code.&amp;nbsp; So "chaining" stored processes.&amp;nbsp; But that link would point to a stored process stored on the metadata server, not a .sas file.&amp;nbsp; On my server, the links look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://servername.com/SASStoredProcess/do?&amp;amp;_program=/MetadataPath/StoredProcessName&lt;/PRE&gt;
&lt;P&gt;Big picture, yes, you can use ODS HTML or similar to generate an HTML file with links pointing wherever you want.&amp;nbsp; If you're having problem with the link you're generating, I would start by checking your generated HTML file to see where the actual link is pointing.&amp;nbsp; And then play with that URL in your browser to see if you can figure out a URL that works. But I don't think it will be a URL that points to a .sas file.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 16:03:41 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-09-25T16:03:41Z</dc:date>
    <item>
      <title>Can you create a hyperlinklink in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-create-a-hyperlinklink-in-SAS/m-p/895675#M353886</link>
      <description>&lt;P&gt;OK, So I had an issue the other day getting SAS to generate HTML code. After a lot of trial and error, I got that working.&amp;nbsp; Now as I loop through my list of companies, I need to be able to pass a link to edit them. The sas file is in the same directory as my other code so it should be straight forward to link to it but I keep getting file not found.&amp;nbsp; My latest attempt looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;put "&amp;lt;td&amp;gt;&amp;lt;a href=""/sas/config/Lev1/SASApp/SASEnvironment/SASCode/csg/Edit_Company.sas?id=" ID """&amp;gt;Edit&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is actual path to the file on the server but this is part of the storedProcess so does that cahnge how this link should look?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 15:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-create-a-hyperlinklink-in-SAS/m-p/895675#M353886</guid>
      <dc:creator>RustyOwens</dc:creator>
      <dc:date>2023-09-25T15:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a hyperlinklink in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-create-a-hyperlinklink-in-SAS/m-p/895707#M353894</link>
      <description>&lt;P&gt;I'm confused.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your SAS code running as a stored process on a SAS 9 BI server or some other similar environment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you are creating a link that points to a .sas file. Why would that be useful?&amp;nbsp; Do you want the user to be able to display sas code in a browser window? Or do you want that SAS code to be executed when they click the link?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a stored process setting, you can use SAS to return an HTML page which has links to other stored processes that run more SAS code.&amp;nbsp; So "chaining" stored processes.&amp;nbsp; But that link would point to a stored process stored on the metadata server, not a .sas file.&amp;nbsp; On my server, the links look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://servername.com/SASStoredProcess/do?&amp;amp;_program=/MetadataPath/StoredProcessName&lt;/PRE&gt;
&lt;P&gt;Big picture, yes, you can use ODS HTML or similar to generate an HTML file with links pointing wherever you want.&amp;nbsp; If you're having problem with the link you're generating, I would start by checking your generated HTML file to see where the actual link is pointing.&amp;nbsp; And then play with that URL in your browser to see if you can figure out a URL that works. But I don't think it will be a URL that points to a .sas file.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 16:03:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-create-a-hyperlinklink-in-SAS/m-p/895707#M353894</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-09-25T16:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a hyperlinklink in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-create-a-hyperlinklink-in-SAS/m-p/895726#M353902</link>
      <description>&lt;P&gt;So the reason I will state here but TLDR I have been given a SAS solution to use as a solution for a customer grouping problem. The other solution uses a bunch of if statements to do the clean up. My idea was essentially to have a mapping table to use to update the main table. But I want to give the users the ability to add records to this table so the developers don't haver to change the code each time they find another exception. I have tried a half dozen attempts.&amp;nbsp; I have a table which displays all the records find if I go to it directly (SASStoredProcess/do?_action=form,properties,execute,nobanner,newwindow&amp;amp;_program=%2FStored_Processes%2Fcsg%2FManage_Companies.sas)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full explanation&amp;nbsp; is here if you want to see where I am coming from.&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895329#M353732" target="_blank"&gt;Re: Can you write html code with SAS - SAS Support Communities&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 17:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-create-a-hyperlinklink-in-SAS/m-p/895726#M353902</guid>
      <dc:creator>RustyOwens</dc:creator>
      <dc:date>2023-09-25T17:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a hyperlinklink in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-create-a-hyperlinklink-in-SAS/m-p/895900#M353965</link>
      <description>&lt;P&gt;Yes, I saw your earlier post, and suggested Data Controller so you don't have to hand-code this.&amp;nbsp; But I'll admit for little stuff I've hand-coded a few stored processes to allow users to maintain a simple table with a list of items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like at this point you have a stored process (?) Manage_Companies that works if you use your browser to go to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://servername.com/SASStoredProcess/do?_action=form,properties,execute,nobanner,newwindow&amp;amp;_program=%2FStored_Processes%2Fcsg%2FManage_Companies.sas
&lt;/PRE&gt;
&lt;P&gt;And I think you're creating a new stored process Edit_Company.&amp;nbsp; Is that stored process working?&amp;nbsp; Do you have a URL you can go to manually that works, something like:&lt;/P&gt;
&lt;PRE&gt;https://servername.com/SASStoredProcess/do?_action=execute,nobanner,newwindow&amp;amp;_program=%2FStored_Processes%2Fcsg%2Edit_Company.sas?ID=3
&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;First I would get it to the point where you have working URLs for both ManageCompany and EditCompany. For the EditCompany you can hardcode the value for the ID parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the next step is to work on having SAS generate a link with a URL to EditCompany.&amp;nbsp; So you could have a PROC REPORT step or whatever, that has rows for each company, and a column with a link that displays as "Edit" which when clicked will run the EditCompany stored process, passing it the appropriate ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But before trying to get SAS to generate the URL to run EditCompany, you need to know the exact URL you want to generate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 13:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-create-a-hyperlinklink-in-SAS/m-p/895900#M353965</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-09-26T13:57:05Z</dc:date>
    </item>
  </channel>
</rss>

