I have a program which I need to run daily. So, I scheduled a trial run for it on SAS EG, and it approximately usually takes 1 hour to run. It is 10 mins past the run start time now, and how do I now confirm whether the program is running at all or not?
I am using SAS EG on Unix server.
Thanks!
You need to log on to the server with SSH.
Then enter the command
crontab -e
which opens your crontab file with the vi editor.
There, enter your command as described in https://help.ubuntu.com/community/CronHowto#:~:text=A%20crontab%20file%20is%20a,them%20in%20the%20sy...
I would recommend to set up an infrastructure in your home directory, e.g.
sas log script
for SAS programs, logs and script files.
script files are simple text files that have their execute bit set (done with
chmod u+x $HOME/script/scriptfile
) and contain the SAS call, something like
/sas/Lev1/SASApp/BatchServer/sasbatch $HOME/sas/myprog.sas -log $HOME/log/myprog.log
so you then enter
0 5 * * * $HOME/script/scriptfile
in the crontab to run the program daily at 05:00.
Log on to the UNIX server via SSH (e.g. with PUtty). Use your Enterprise Guide credentials.
Run this:
ps -ef|grep userid
where userid is from your EG credentials.
Personally, I would do this differently:
that way you get a clear documentation of the executions (if a cron job fails, mail is sent to your UNIX user), and the scheduling does not rely on your desktop being switched on.
You need to log on to the server with SSH.
Then enter the command
crontab -e
which opens your crontab file with the vi editor.
There, enter your command as described in https://help.ubuntu.com/community/CronHowto#:~:text=A%20crontab%20file%20is%20a,them%20in%20the%20sy...
I would recommend to set up an infrastructure in your home directory, e.g.
sas log script
for SAS programs, logs and script files.
script files are simple text files that have their execute bit set (done with
chmod u+x $HOME/script/scriptfile
) and contain the SAS call, something like
/sas/Lev1/SASApp/BatchServer/sasbatch $HOME/sas/myprog.sas -log $HOME/log/myprog.log
so you then enter
0 5 * * * $HOME/script/scriptfile
in the crontab to run the program daily at 05:00.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.