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 &.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.