Can you tell me how can I get my desired output?
You need to post the exact
specifics of your requirement.
It will be better if you add at least one more duplicate and show the complete content of the output vsam file after your process has run. For example - what should happen with input sequential data that does NOT have a matching key on the input vsam file? Is this to be bypassed or added to the output vsam file?
If there are any other "rules" you need to post these as well. Mention the dsorg and lrecl of the files.