Hello,
Yes this would appear a very simple thing to achieve but I cannot seem to get this working. I want to use the REST api and pass a parameter via the webservice to SAS. The parameter value is stored in a macro variable. I can get this working when specifying the JSON endpoint.
However when I specify the REST endpoint I simply cannot get this to work. An error is returned Unsupported Media Type. I have no idea how to define the stored process, what content-type is the REST point expecting? I can get this working when providing the request using XML but I simply need to pass some parameters in. I need to use REST since I will be streaming output back to the client (with the JSON endpoint datastreams cannot be used as output).
What am I doing wrong? Any help very much appreciated!
I use the following url to request xml/rest and json. with appropriate headers
http://hostname:port/SASBIWS/rest/storedProcesses/stored/process/path
http://hostname:port//SASBIWS/json/storedProcesses/stored/process/path
And it works.
You can have the details here
https://documentation.sas.com/?cdcId=itechcdc&cdcVersion=9.4&docsetId=wbsvcdg&docsetTarget=p06ov8we7...
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.