Running loops which take hours to finish. The window/panel is freezed, which is not big deal.
But like to check out some datasets in between to fathom any possible scenario.
How to do? Just sleep(3*60*1000) alike is fine?!
How to submit the job in batch mode/Windows PC?
Say my code is LoopIt.sas
under DOS prompt?!
If you're on Windows, yes. Obviously, adjust the paths as needed for both the sas.exe file and your program. Are you using SAS EG? Studio? Something else?
Also, are you simply trying to do other work in SAS while your program is running, or are you actually trying to look at the files being generated by this loop while the program is running? If you're trying to look at the files being generated by the loop while the program is running, and those files are temporary (i.e., in WORK), you will have to figure out where WORK is located on your file system and then proceed with caution in actually opening those files. Don't try to open anything that has an extension like ".lck"
The original codes takes lots of datasets at WORK directory.
I bet need additional codes to re-generate those datasets, if to run at batch mode, right?!
Something you might consider would be sharing an example of your code and/or describe what you program is doing in some detail. Often people less familiar with SAS will try to force an approach to some tasks that better done using other procedures in SAS.
Also "loops" and "files" in the same phrase could mean that you are doing a lot of disk IO that may not exactly be needed with a different approach.
too many sas code files. Sometime even myself losts track of what each part does. THanks, though.
Please post the code "taking hours to finish". Recent versions of SAS Enterprise Guide don't freeze while executing code, which client do you use?
I am using PC SAS. The code files invoke lots of PROC SGPLOT, thousands if exactly.
THe panel keeps freezed even hours after the code files all finish sucessfully [the output pic files have info on filenames to tell].
@hellohere wrote:
I am using PC SAS.
Display Manager or Enterprise Guide as interface?
Thanks erveryone. I do ran it at BATCH mode now, though still alot to catch up.
Any SAS PDF/DOC on btach mode, specially for any possible pitfalls?!
You will find answers to most of your questions in the SAS docs: https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostwin/p16esisc4nrd5sn1ps5l6u8f79k6.htm
Dive into keynotes, announcements and breakthroughs on demand.
Explore 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.