Hi
In my job i am producing two rejectfiles with same filename for both the rejectfiles. The file write mode for both of them is Append.
The data to the two reject files varies.
In the end it seems like i am missing some data in the final reject file.
once I have given the different file name for both the reject files then i could see the data.the problem is only when i write the two rejects to a single file with append mode.
Any help would be appreciated
Regards
reject file
Moderators: chulett, rschirm, roy
On any platform, any programming language, or any tool, its a big no no to have multiple processes write to the same file, results are unexpected as you have experienced. Sometimes it will, outright, blow up. So avoid it.
Continue writing to seperate files and in the after job subroutine, you can pass an OS level cat command to combine the files
Continue writing to seperate files and in the after job subroutine, you can pass an OS level cat command to combine the files
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.