Hi,
we want to know if is possible to call a Job Execution sending information as a json in the body of the call.
Thanks.
Hi @Luisghgfhdfvcbc,
The example in the API doc has JSON in the body. You can find an additional example in Step 5 of this use case from GitHub.
Join us for SAS Community Trivia
SAS Bowl XLIII, The New SAS Developer Portal
Wednesday, August 14, 2024, at 10 a.m. ET | #SASBowl
Hi @joeFurbee ,
thanks for your help.
Our point is, a customer application would call our job execution and they only are able to send information in the body of the call. We can't use parameters or form to call the web service.
Regards.
Not exactly what you asked, but the SASJobExecution webapp can also be used to run jobs with JSON data -
https://documentation.sas.com/doc/en/jobexeccdc/v_004/jobexecug/n0xd9wl7kwpg1nn1v9z3kpfslw9s.htm
HI @DeMer ,
thanks for your reply.
our problem is how the customer would call our job execution. Their application is only able to send information in the body of the call.
Regards.
The example on the doc page shows how to do a HTTP Post from JavaScript. I believe if you do any other kind of non-form Post request to /SASJobExecution, any data in the body ends up looking like a file upload to the job.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.