Your SAS programs, embedded in web apps and elsewhere

Invoking stored process with direct URL

Accepted Solution Solved
Reply
Contributor
Posts: 48
Accepted Solution

Invoking stored process with direct URL

I’ve created a stored process that allows users who do not have EG to still run a stored process by enabling a guest account (http://yourserver.com:8080/SASStoredProcess/guest). While this access is sufficient, I’m wondering if and how I can use a direct URL to invoke the stored process, instead of having the anonymous users drill down through the different folders until they find the stored process they are looking for. I’d like to be able to just sent these users a URL that bypasses that navigation. Again, these users do not have EG.


Accepted Solutions
Solution
‎02-27-2012 03:17 PM
Contributor
Posts: 48

Re: Invoking stored process with direct URL

Thought I'd share the answer with you all.

You can determine the URL by using the following approach.

(1) Invoke the SAS Stored Process Web Application using "_action=tree"

http://your.server:8080/SASStoredProcess/do?_action=tree

(2) Drill down and run a specific stored process.
Then, note the URL at the Top of your Web browser.
For example:

http://your.server:8080/SASStoredProcess/do?_program=/Teststp/Test1_stp&_action=form%2Cproperties%2C...

(3) If you want to run the stored process using the Guest account, then change the URL to specify
"/guest?" intead of "/do?".

http://your.server:8080/SASStoredProcess/guest?_program=/Teststp/Test1_stp&_action=form%2Cproperties...

View solution in original post


All Replies
Contributor
Posts: 55

Invoking stored process with direct URL

Using the stored process web application, browse to the stored process you want users to run and invoke it.  Take the URL from the address bar of the stored process you just ran and use it as a link for users.

Contributor
Posts: 48

Invoking stored process with direct URL

Should it build upon the URL that I included above? If so, it doesn't seem to be working. The only URL I can copy and paste is after running the stored process I can send out the URL with the results from my stored process.

Contributor
Posts: 55

Invoking stored process with direct URL

I just got to thinking, if you have a guest account set up, then that account probably would only have access to see one metadata folder so they wouln't need to drill down.  Otherwise, using the sample Hello World! strored process as an example, your url would be something like http://yourserver.com:8080/SASStoredProcess/do?_program=%2FProducts%2FSAS+Intelligence+Platform%2FSa....

Solution
‎02-27-2012 03:17 PM
Contributor
Posts: 48

Re: Invoking stored process with direct URL

Thought I'd share the answer with you all.

You can determine the URL by using the following approach.

(1) Invoke the SAS Stored Process Web Application using "_action=tree"

http://your.server:8080/SASStoredProcess/do?_action=tree

(2) Drill down and run a specific stored process.
Then, note the URL at the Top of your Web browser.
For example:

http://your.server:8080/SASStoredProcess/do?_program=/Teststp/Test1_stp&_action=form%2Cproperties%2C...

(3) If you want to run the stored process using the Guest account, then change the URL to specify
"/guest?" intead of "/do?".

http://your.server:8080/SASStoredProcess/guest?_program=/Teststp/Test1_stp&_action=form%2Cproperties...

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 578 views
  • 0 likes
  • 2 in conversation