<?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 Stored Procedure in WRS in SAS Web Report Studio</title>
    <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30587#M473</link>
    <description>I have a stored procedure that is performing some basic ETL for a IM and a WRS report.&lt;BR /&gt;
&lt;BR /&gt;
I'm curious if I need to write a STP for each report or is there a way to get the name of the WRS report that I'm running from within the stored procedure?  Does WRS surface any information about the report to the Workspace Server?&lt;BR /&gt;
&lt;BR /&gt;
If I have the name - we can look up the parameters of the report in a control table to generalize the STP.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
John</description>
    <pubDate>Tue, 15 Mar 2011 21:17:25 GMT</pubDate>
    <dc:creator>jcbell</dc:creator>
    <dc:date>2011-03-15T21:17:25Z</dc:date>
    <item>
      <title>Stored Procedure in WRS</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30587#M473</link>
      <description>I have a stored procedure that is performing some basic ETL for a IM and a WRS report.&lt;BR /&gt;
&lt;BR /&gt;
I'm curious if I need to write a STP for each report or is there a way to get the name of the WRS report that I'm running from within the stored procedure?  Does WRS surface any information about the report to the Workspace Server?&lt;BR /&gt;
&lt;BR /&gt;
If I have the name - we can look up the parameters of the report in a control table to generalize the STP.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
John</description>
      <pubDate>Tue, 15 Mar 2011 21:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30587#M473</guid>
      <dc:creator>jcbell</dc:creator>
      <dc:date>2011-03-15T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in WRS</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30588#M474</link>
      <description>John,&lt;BR /&gt;
In the STPServer log (I found mine located in /sas92config/Lev1/Logs), the macro vars are displayed with values (similar to the debug output from IntrNet)... _program was listed in my log. There is also a macro variable ( _APSLIST ) which appears to contain a list of the macro vars.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps...&lt;BR /&gt;
&lt;BR /&gt;
Jay</description>
      <pubDate>Tue, 22 Mar 2011 17:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30588#M474</guid>
      <dc:creator>Jay_OAG</dc:creator>
      <dc:date>2011-03-22T17:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in WRS</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30589#M475</link>
      <description>Thanks everyone.  I've confirmed that there is no way to get the name of the WRS report that is running.&lt;BR /&gt;
&lt;BR /&gt;
Time for plan B.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
John</description>
      <pubDate>Tue, 22 Mar 2011 17:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30589#M475</guid>
      <dc:creator>jcbell</dc:creator>
      <dc:date>2011-03-22T17:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in WRS</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30590#M476</link>
      <description>Hi John,&lt;BR /&gt;
whats your plan b? I noticed that the web report name becomes part of the URL. is that a way?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
We are also looking at a STP that generates links dynamically using the browser language and the report that is actually using the STP. We dont want to generate hundreds of STPs so it would be good if some value from the WRS that uses it can be used as a parameter.</description>
      <pubDate>Wed, 30 Mar 2011 12:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30590#M476</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2011-03-30T12:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in WRS</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30591#M477</link>
      <description>I would suggest configuring STP in SAS Information Map Studio if you are planning to generalize the functionality.&lt;BR /&gt;
&lt;BR /&gt;
-Nithin</description>
      <pubDate>Tue, 05 Apr 2011 14:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30591#M477</guid>
      <dc:creator>Nithin</dc:creator>
      <dc:date>2011-04-05T14:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in WRS</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30592#M478</link>
      <description>we used some java script in a STP that is then inserted into a web report.&lt;BR /&gt;
thanksfully, the last part of the URL in web report studio or information delivery portal always contains the report name:&lt;BR /&gt;
var userLang = (navigator.language) ? navigator.language : navigator.userLanguage;&lt;BR /&gt;
var fullurl = document.location.href;&lt;BR /&gt;
var reportname =  fullurl.substring(fullurl.length -10);</description>
      <pubDate>Tue, 26 Apr 2011 14:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Stored-Procedure-in-WRS/m-p/30592#M478</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2011-04-26T14:13:57Z</dc:date>
    </item>
  </channel>
</rss>

