Hi,
I have a question about whether it is possible to activate a job’s schedule via the REST API.
The scenario is that we are migrating 500+ jobs from Viya 3.5 to Viya 4 LTS 2025.03. The jobs are created via SAS Studio and scheduled through Environment Manager. Exporting/importing job definitions and job schedules via the SAS Viya CLI works well. However, the jobs end up in Viya 4 with their schedules paused. You can manually activate a job’s schedule by going to Environment Manager > Jobs and Flows > Schedules. But since we are importing many jobs, I’m wondering if anyone has an idea on how to do this in a way other than clicking through the interface.
This might do the trick?
SAS Help Center: Schedulers Commands
(job schedulers resume)
I've done some testing with "Job scheduler resume" and it seems to activate the whole scheduler from a paused state, but individual jobs remain inactive.
Hi @Moliis,
Hopefully, the suggestion from @LinusH will solve the issue. I checked with development and the scheduler API is not a public API. Their recommendation was to use the UI.
Join us for SAS Community Trivia
Ah, ok, thank you for input. Then it seems that the option to activate jobs outside of the interface is a feature we have to wait for
I've coincidentally post an remark in other post. But some users which much schedule jobs have no access to an CLI and must use an api. But SAS is at the moment this not making this officially possible since the api is not documented.
Since the CLI uses an api it's and microservice are at the core of Viya 4 it's somewhat curious SAS does not support this.
Making use of the UI instead of CLI is not a data-driven solution,
Is there an specific reason for this ?
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.