Doing a series of Proc Logistics on multiple datasets (finally!).
SAS seems to have frozen after getting through around 7 datasets (of 59 total).
Trying everything I can think of to take a pulse to see if SAS is still alive.
Resource Monitor shows it's running, 31 threads, 6.24% of CPU.
Analyze Wait Chain says "One or more threads of sas.exe are waiting to finish network I/O." On a stand-alone machine?
Is there a better way to ascertain whether the patient is alive or dead?
Is it a good idea, or even possible, to 'flush' between iterations? In other words, before allowing SAS to proceed onto the next dataset, should I insist it visit the Ladies Room? How exactly do I do that?
Thanks!
Nicholas Kormanik
Some tricks I do when setting up long-running jobs:
For a Windows job already in motion where you haven't done these steps, use a tool like Process Explorer to monitor the open file handles to find signs of life.
Some tricks I do when setting up long-running jobs:
For a Windows job already in motion where you haven't done these steps, use a tool like Process Explorer to monitor the open file handles to find signs of life.
And maybe send all output to an ODS file destination instead of the default HTML results window. Depending on procedure and output it can take more time to make the "results" output display than to run the analysis.
If any SAS programs are running slowly then look through your SAS log. If Real Time taken for any step is a lot higher than the CPU Time then you can be pretty much guaranteed that your bottleneck is IO.
I'm assuming SAS is running your PC as you are looking at MS Task Manager. So where are you reading your data from and writing to? If you are using remote drives or file servers for your data these can be really slow. If all of your data is on local drives then you'll be limited by their bandwidth. How old is your PC? Solid State drives are way faster than traditional disk drives.
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.