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?

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1671 views
  • 2 likes
  • 3 in conversation