What is the reason for a MERGE job to abend with a U0046?
The problem is not with MERGE, but with DFSORT. The sort capacity limit was exceeded which caused the abend.
ICE046A 0 SORT CAPACITY EXCEEDED - RECORD COUNT 146556
ICE253I 0 RECORDS SORTED - PROCESSED: 146556, EXPECTED: 389359
ICE098I 0 AVERAGE RECORD LENGTH - PROCESSED: 316, EXPECTED: 158
ICE751I 1 D8-I35396 D4-I35396 E8-I40659
ICE052I 0 END OF DFSORT
To address the issue, please increase your SORTWK allocation spacing and run your job again.