SLEEP() will tell SAS to sleep for a specific amount of time. But how do you know if you need to wait or if it's ready? It sounds like you don't have a method of determining when the file will be complete. So, can you change the process that generates that file? Have it write a new record at the end, if successful, that you can then check to see if it's finished. Then you can loop your SAS process to wait a specific amount of time or until the file is ready - or a combination of both.
... View more