There is a limit on currentdatetime() based on the OS. If the system is multi-threaded and you do not have another parameter to make sure the file name is unique, you can get more than one map running in the same millisecond.
One solution was to have a card prior to the output card call a C function via EXIT to generate a unique value.
BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!