We use use chrontab to schedule lots of sas programs to run. We think we know the answer to this question, but we want to make sure. Since those jobs use one user account, when you run PROC DATASETS kill, could it inadvertently 'kill' other datasets for another program that is running? Our assumption is that each instance that the user uses to run is another work folder; however, we just want to make sure.
Additionally, do you think it's best to run the kill option at the beginning of the program or at the end? Just curious what others are doing.
>Our assumption is that each instance that the user uses to run is another work folder; however, we just want to make sure.
Each scheduled SAS session has its own WORK space
>Do you think it's best to run the kill option at the beginning of the program or at the end?
Neither.
There is nothing to delete when a session starts, and everything is automatically deleted when a session ends.
This option is normally used to make room in the WORK library mid-process.
>Our assumption is that each instance that the user uses to run is another work folder; however, we just want to make sure.
Each scheduled SAS session has its own WORK space
>Do you think it's best to run the kill option at the beginning of the program or at the end?
Neither.
There is nothing to delete when a session starts, and everything is automatically deleted when a session ends.
This option is normally used to make room in the WORK library mid-process.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.