Hi,
usually, for this kind of logic, I think it better belongs to your scheduling tool. Most of them have file events that can trigger jobs depening on things like arrival.
That said, I also recognize the (weird?) fact that the User Written Transformation doesn't accept External Files.
Using Pre-code to the File RFeade is to little avail since almos no useful macros are defined here, especially not the file name.
Allthough, the User Written Code might work. For some reason, you get a lot of automatic macros here. So one way to wrap it up is to write a mcaro that you stored in a SASAUTOS location (typically configdir/SASApp/SASEnvironment/SASMAcro.
Then you need to instruct your users to simply add a call to that macro in the User Written Code Transformatino that is linked to the External File Object.
... View more