I know there is a method where you can call a stored process via the SAS Stored Process Web Application, but I was wondering if there is a method where i can call the stored process server directly.
The goal is to call a stored process which delivers data (via the _webout file?) to python, as efficiently as possible. So maybe it could reduce processing time by skipping the SAS Web Application.
I don't think it is possible with SASPy (seems to be using Workspace servers).
Regards.
There are 2 ways to call a stored process server in code, using the Java libraries and using the .NET libraries.
Personally, I have used .NET to create a command line application that calls the stored process and returns the stream to STDOUT. From Python, you just read that output. You can replicate this from Java (but the .NET libraries are easier to use).
The other method would be to use a library that allows you to call Java from your flavor of Python (or .NET if you are using the MS Python) and integrate it that way.
In the end, for most use cases, it is just easier to use the STP Web Application. You can log in once, store the authorization token, and pass that back, negating the overhead of re-logging in for each call.