Hello Community,
I am working in SAS Studio (Viya 4), on a Oracle machine, and I have the following problem i.e. a small consecutive flow of three programs, PGM1, 2 and 3, and I need to launch the second one in asynchronous mode, but I can't get my head around it.
What would be the best approach?
Thank you in advance.
Hi there @MMar , nice question.
Traditionally speaking, while not the most beautiful version, it works nicely: with SAS Connect sessions you can manage asynchronous and parallel sessions.
In Viya 4, if you would have Model Manager, you could launch programs in separate pods (models) and define the order or synchronicity from a much more elegant and production-like manner, although it has the cost of using SAS Model Manager and infrastructure for publishing the models as pods.
Thank you for you answer,
do you have, by chance, any examples related to the suggested solutions?
I forgot to add the fact, this flow will be launched via dedicated portal where users select various parameters and click a button to start the process.
I thought about using a job, equal to pgm2, with _action=background, as a way to launch it in asynchronous mode, but I do not how to include the job within the SAS program.
I will leave aside for now SAS Model Manager, as this would require some training, but please do feel free to check other articles in the communities or videos in Youtube. I will focus on SAS Connect.
In the documentation, you can find: https://documentation.sas.com/doc/en/pgmsascdc/v_056/viyaconnref/n0ib6u4iq5qgb6n18fjian12gove.htm
On the menu on the left you can find examples too.
Your idea might work. I think if you combine that idea with the rsubmit from SAS Studio, it would answer your needs, as it allows to include SAS code within SAS code, that would be launched separately.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!