Identifies transactions which share the same docnum, and exits with message.
Changed exit on error to abort with message. This prints message to STDERR instead of SDTOUT.