So you have a program that takes as input a filename X which contains a directory name (or set of directory names) that deletes files from those directories? So why not just make that program smart enough to NOT delete its input?
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!