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: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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