BookmarkSubscribeRSS Feed
Nietzsche
Lapis Lazuli | Level 10

Hi all,

 

Yesterday I ran a SAS program in SAS Enterprise Guide that ended up running for a couple of hours. This was my first time working with this dataset, so I didn’t really know how long it was supposed to take, but I was pretty sure it shouldn’t have taken that long.

 

While it was running, I checked the gear icon in the bottom-right corner of SAS Enterprise Guide, but all it showed was that it was “Running” and the start time—no other details or progress. I eventually cancelled the run, but then the program got stuck on “Stopping.” I had to force-close SAS Enterprise Guide using Task Manager.

 

After restarting SAS Enterprise Guide, I ran the same program again and it finished in about 16 minutes, so it looks like the first run had stalled or crashed.

For future runs, is there a good way to tell whether a SAS program is actually still running because it’s processing a large dataset, or if it’s become unresponsive or crashed? Any tips would be appreciated.

 

Thanks!

Passed SAS Base Programming (2022 Dec)
Preparing for SAS Advanced Programming (2026)
6 REPLIES 6
Ksharp
Super User
If your sas was setup under UNIX/Linux OS, you could try command 'DU' or 'DF' to check the disk storage , if it keep decreasing, then your sas is still running.
Or using command 'LS' to check sas session ,if its cpu occupation is not zero ,then your sas is still running .
Kurt_Bremser
Super User
You can log on to the server‘s commandline and use the ps command (or the Windows equivalent) to display the process status; by filtering for your username you can find your SAS session.
As admin, I provided a web page which ran such a command and displayed the top 10 processes in terms of CPU consumption, so it was easier for the SAS users to see if they had accidentally created a runaway process.
Nietzsche
Lapis Lazuli | Level 10

oh I found an easy way to tell if (at least for Data Step) if it is still running or not is to check the LCK file is getting larger or not.

Nietzsche_0-1775980983286.png

 

Passed SAS Base Programming (2022 Dec)
Preparing for SAS Advanced Programming (2026)
SASKiwi
PROC Star

Please note that when using a remote SAS server it can be quite normal to have large variations in run time with the same program and data. This is because you are sharing the server with other users and if it is heavily loaded then program run times can take a lot longer than usual. The way you are monitoring the size of your lck SAS files is a good one.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 847 views
  • 4 likes
  • 4 in conversation