We run a transaction processing system that uploads files from a unix server to a mainframe using NDM (Network DataMover).
The file uploads to a GDG base using a (+1), then it kicks off a job that copies it to another GDG base and then removes the initial one that was uploaded.
We are having a problem where we have two files get uploaded at the exact same second - in this case it appears that one file overwrites the other file.
One would think that the mainframe OS would see that one file was writing to the GDG base and hold the other one out or kick back a message that the GDG base is in use, and that does appear to be happening in some cases. In others it appears that it doesn't know and overwrites one file with the other.
Any suggestions on how to handle this. We have considered doing a round robin format and having more than one GDG base to upload to, but are looking for something less invasive as that would be a large coding effort.
Thanks!