BookmarkSubscribeRSS Feed
Mayt
Quartz | Level 8

Hi everyone

I want to call api to execute a job/flow in real-time. So think I may need to create a job definition to execute a job/flow first, then call the job definition through API. But I don't know how to write sas code in job definition to execute a job/flow.

If you guys have any recommendation, please let me know. Thank you in advance.

4 REPLIES 4
LinusH
Tourmaline | Level 20
Can you please give little more context, like are you referring to Viya jobs/flows or 9.4 metadata objects?
Data never sleeps
Mayt
Quartz | Level 8
It's Viya jobs.
MAGDN
Calcite | Level 5

 

See Compute – Compute API Reference (sas.com)

MAGDN_0-1706182867661.png

 

De body of the api to execute a job contains a reference to the job definition. In the job definition you put the code you want to execute

 

 

 

Mayt
Quartz | Level 8

Can we call a job flow within job definition?

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
  • 4 replies
  • 867 views
  • 2 likes
  • 3 in conversation