I have some SAS Stored Processes. When i run the stored processes in SAS Enterprise Guide I get some HTML returned. What i would like to do is make my ASP .NET project connect to the Stored Process and return the HTML in my ASP .NET application. I know that i'm starting from zero, so is there some articles or guides I should follow to begin with?
I hope my question makes sense.
easy - you have to register your STP to have
_STREAMoutput (using SAS Management Console) then create your SAS code without the%stpbegin/%stpendmacros so that theyputyour HTML directly to the automatic_weboutfileref.Your ASP .NET project then simply needs to call the STP via the URL (using CURL or whatever).
An even easier way is to create the web service programmatically, eg:
More info on https://sasjs.io
It's worth pointing out that you may not even need ASP, as your web / browser client is also able to connect to SAS directly. This can be done via ajax, but for a consistent approach, I'd recommend the SASjs Data Adaptor. It's available on github here: https://github.com/sasjs/adapter