Hello,
I have many sas programs that I need to execute on a unix server by sending the following command directly to the terminal windows (winscp)
If you want to make sure the jobs run in succession, do not run them in the background (that's what the & does).
To run the jobs in succession in the background, put them into a shell script (without the nohup and &), and run the script with nohup and &.
Remove the &.
If the list is large it might be easier with two files. One with the list of programs to run:
sas -sysparm '20230315#' -log 20230315.log /dwh_actuariat/.../HYFI_INTExpSF.sas sas -sysparm '20230415#' -log 20230415.log /dwh_actuariat/.../HYFI_INTExpSF.sas sas -sysparm '20230515#' -log 20230515.log /dwh_actuariat/.../HYFI_INTExpSF.sas
Then a second one that calls that file which could then use nohup to allow it to complete even if the shell that launched it is closed.
If you want to make sure the jobs run in succession, do not run them in the background (that's what the & does).
To run the jobs in succession in the background, put them into a shell script (without the nohup and &), and run the script with nohup and &.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.