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
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.