<?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 soft code stored process drill down URL in Developers</title>
    <link>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/337473#M5259</link>
    <description>Thanks Vince.  Will file this under things I should have learned years ago. : )</description>
    <pubDate>Thu, 02 Mar 2017 17:50:53 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2017-03-02T17:50:53Z</dc:date>
    <item>
      <title>How to soft code stored process drill down URL</title>
      <link>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/336244#M5255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When a stored process called via SPWA will generate drill down URL's pointing to other stored processes, I know that instead of hardcoding the server name&amp;nbsp; and port:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;http://your.server:8080/SASStoredProcess/do?&lt;/PRE&gt;
&lt;P&gt;You can soft code it with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;http://&amp;amp;_srvname:&amp;amp;_srvport/SASStoredProcess/do?  &lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That obviously makes code more portable when you change servers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, is there an easy way to detect whether the session is using http or httpS ?&amp;nbsp;&amp;nbsp; I still have that part of my URL hard coded, which means when a server changed to https:, I had to update the code.&amp;nbsp; I would like to soft code the protocol as well as the server name and port.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;--Q.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 15:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/336244#M5255</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-02-27T15:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to soft code stored process drill down URL</title>
      <link>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/337103#M5256</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Can you get by with using the &lt;FONT face="courier new,courier"&gt;_URL&lt;/FONT&gt; reserved macro variable?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="verdana,geneva"&gt;Using Reserved Macro Variables&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/stpug/68399/HTML/default/viewer.htm#p184mqqbi9w6qjn1q0619x19eg02.htm" target="_self"&gt;http://support.sas.com/documentation/cdl/en/stpug/68399/HTML/default/viewer.htm#p184mqqbi9w6qjn1q0619x19eg02.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 19:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/337103#M5256</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-03-01T19:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to soft code stored process drill down URL</title>
      <link>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/337436#M5257</link>
      <description>&lt;P&gt;Thanks @Vince&amp;nbsp;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I looked in _URL, I expected so see something like:&lt;/P&gt;
&lt;PRE&gt;http://your.server:8080/SASStoredProcess/do?&lt;/PRE&gt;
&lt;P&gt;What I actually see is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/SASStoredProcess/do&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Okay, it just hit me.&amp;nbsp; Is that a relative URL, so no need to the http and server and port is not necessary?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I could I could use it as the "root" URL for chaining stored processes?&amp;nbsp; So tha's what I should have been using all along for chaining stored processes??? sigh.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 16:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/337436#M5257</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-03-02T16:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to soft code stored process drill down URL</title>
      <link>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/337447#M5258</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;It is "relative" to &lt;FONT face="courier new,courier"&gt;&lt;EM&gt;protocol&lt;/EM&gt;://&lt;EM&gt;server&lt;/EM&gt;:&lt;EM&gt;port&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;You can find some examples of using _URL here:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="verdana,geneva"&gt;Chaining Stored Processes&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/stpug/68399/HTML/default/viewer.htm#datapass.htm" target="_self"&gt;http://support.sas.com/documentation/cdl/en/stpug/68399/HTML/default/viewer.htm#datapass.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;For example:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;nexturl = "&amp;amp;_URL?_program=/WebApps/MyWebApp/Print Color" || '&amp;amp;fname=' || urlencode("&amp;amp;FNAME");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 16:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/337447#M5258</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-03-02T16:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to soft code stored process drill down URL</title>
      <link>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/337473#M5259</link>
      <description>Thanks Vince.  Will file this under things I should have learned years ago. : )</description>
      <pubDate>Thu, 02 Mar 2017 17:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-soft-code-stored-process-drill-down-URL/m-p/337473#M5259</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-03-02T17:50:53Z</dc:date>
    </item>
  </channel>
</rss>

