How To Use the ABORT (?) Statement To Cancel a SAS Download in Process
Posted: 16 May 2012 11:23 AM   [ Ignore ]
Total Posts:  4
Joined  2011-09-27

Hello Joost,

I’m playing with some CRSP datasets and am in the process of accidentally downloading the wrong dataset (erdport2 instead of ermport2).

The download will take about 20 minutes to complete, so if possible I’d like to simply cancel the download so I can run the correct code instead.

I realize I will probably just have to wait this one out, but this isn’t the first time I’ve made this mistake… so I’d like to be able to correct it going forward!

I looked around a little online, but still struggle w/ SAS intuition and syntax.

Is it the ABORT statement?



Posted: 17 May 2012 03:30 PM   [ Ignore ]   [ # 1 ]
Total Posts:  901
Joined  2011-09-19

hi Matt,

Yes, you can abort by hitting the ‘break’ (exclamation mark in circle), select option ‘1. TCP send/recv task’ and then click ‘A to Abort All Active Communications’. (SAS may continue running the remainder of the script).

You might like this code though, , which you can use to download WRDS datasets (and create indices) for datasets you regularly use.

best regards,




To reply/post new questions: Please use the group WRDS/SAS on Google Groups!