Errors in record contents
If the output records do not appear to contain the same data as the input records, and either E15 or E35 has been used, check that your routine is handling register 1 correctly; especially, check that it is correct on return to DFSORT. If, for example, you first load register 1 and then restore all registers (including register 1), register 1 probably has the wrong contents.
Also, if you first restore all registers and then try to load register 1 from a changed base register, you might pass the wrong information to DFSORT.