And once you have shown us which sort product you use we can move the topic from JCL to the correct sort section. Also, have you tried searching (of course you have as it is a pre-requisite to posting)? You probably need joinkeys.
The problem I have is that people can explain things quickly but I can only comprehend slowly. Regards Nic