Two files using matching records have opposite Sequence entries (position 18 of the File specifications): A (ascending) and D (descending). The Sequence entry of the subsequent file using matching records defaults to the Sequence entry of the first file that uses matching records.
Specify identical Sequence entries (position 18). Compile again.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.