BookmarkSubscribeRSS Feed
Luisghgfhdfvcbc
SAS Employee

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.

5 REPLIES 5
joeFurbee
Community Manager

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

Luisghgfhdfvcbc
SAS Employee

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.

DeMer
Obsidian | Level 7

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

Luisghgfhdfvcbc
SAS Employee

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.

DeMer
Obsidian | Level 7

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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 852 views
  • 1 like
  • 3 in conversation